TitleBar: new options for subtitle and icon rotation

This commit is contained in:
poire-z
2022-01-10 19:14:45 +01:00
parent a6b09c2981
commit 2d7d6fe088
2 changed files with 68 additions and 28 deletions

View File

@@ -15,6 +15,7 @@ local Screen = Device.screen
local IconButton = InputContainer:new{
icon = "notice-warning",
icon_rotation_angle = 0,
dimen = nil,
-- show_parent is used for UIManager:setDirty, so we can trigger repaint
show_parent = nil,
@@ -33,6 +34,7 @@ local IconButton = InputContainer:new{
function IconButton:init()
self.image = IconWidget:new{
icon = self.icon,
rotation_angle = self.icon_rotation_angle,
width = self.width,
height = self.height,
}