Addon Manager/Addon List: center addon icon in available space
This commit is contained in:
parent
2a498070f7
commit
93eb07ad8b
4 changed files with 11 additions and 3 deletions
|
@ -238,6 +238,11 @@
|
|||
y = "(screen_height / 2 - window_height / 2)"
|
||||
#enddef
|
||||
|
||||
#define GUI_CENTERED_IMAGE
|
||||
x = "(width / 2 - image_width / 2)"
|
||||
y = "(height / 2 - image_height / 2)"
|
||||
#enddef
|
||||
|
||||
#define GUI_HORIZONTAL_SPACER_LINE
|
||||
[row]
|
||||
grow_factor = 0
|
||||
|
|
|
@ -170,6 +170,8 @@
|
|||
name = "(text)"
|
||||
w = "(min(image_original_width, 72))"
|
||||
h = "(min(image_original_height, 72))"
|
||||
|
||||
{GUI_CENTERED_IMAGE}
|
||||
[/image]
|
||||
|
||||
[/draw]
|
||||
|
|
|
@ -55,8 +55,7 @@
|
|||
|
||||
[image]
|
||||
name = "(text)"
|
||||
x = "(width / 2 - image_width / 2)"
|
||||
y = "(height / 2 - image_height / 2)"
|
||||
{GUI_CENTERED_IMAGE}
|
||||
[/image]
|
||||
|
||||
[/draw]
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
grow_factor = 0
|
||||
border = "all"
|
||||
border_size = 5
|
||||
vertical_grow = "true"
|
||||
vertical_alignment = "top"
|
||||
horizontal_alignment = "left"
|
||||
|
||||
[drawing]
|
||||
|
@ -28,6 +28,8 @@
|
|||
name = "(text)"
|
||||
w = "(min(image_original_width, 72))"
|
||||
h = "(min(image_original_height, 72))"
|
||||
|
||||
{GUI_CENTERED_IMAGE}
|
||||
[/image]
|
||||
[/draw]
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue