aboutsummaryrefslogtreecommitdiff
path: root/gui/themes/scummremastered/remastered_gfx.stx
diff options
context:
space:
mode:
authorBastien Bouclet2019-11-13 21:09:21 +0100
committerBastien Bouclet2019-11-24 14:06:25 +0100
commit2c812a6b7a0b24b9012379118867fb4f64f32c14 (patch)
tree6f4225127305dbdae8f3a0dc7dfe61e51af51b1a /gui/themes/scummremastered/remastered_gfx.stx
parent3db6aed4e474d5b16639ee4958d1cd13504d12fb (diff)
downloadscummvm-rg350-2c812a6b7a0b24b9012379118867fb4f64f32c14.tar.gz
scummvm-rg350-2c812a6b7a0b24b9012379118867fb4f64f32c14.tar.bz2
scummvm-rg350-2c812a6b7a0b24b9012379118867fb4f64f32c14.zip
GUI: Add DropdownButtonWidget and use it in the launcher for mass add
DropdownButtonWidget is a button split in two parts vertically. Clicking the left part triggers a default action. Clicking the right part shows a list of other actions the user can choose from. Using this widget on the launcher lets 'Mass add' be a secondary action of the 'Add' button, removing the necessity of pressing the shift key to access the feature.
Diffstat (limited to 'gui/themes/scummremastered/remastered_gfx.stx')
-rw-r--r--gui/themes/scummremastered/remastered_gfx.stx316
1 files changed, 300 insertions, 16 deletions
diff --git a/gui/themes/scummremastered/remastered_gfx.stx b/gui/themes/scummremastered/remastered_gfx.stx
index 76b722c5d5..c18a8bf358 100644
--- a/gui/themes/scummremastered/remastered_gfx.stx
+++ b/gui/themes/scummremastered/remastered_gfx.stx
@@ -36,13 +36,13 @@
rgb = '180, 39, 9'
/>
- <color name = 'button_pressed'
+ <color name = 'button_pressed'
rgb = '190, 39, 9'
/>
- <color name = 'button_disabled'
- rgb = '96, 96, 96'
- />
+ <color name = 'button_disabled'
+ rgb = '96, 96, 96'
+ />
<!-- Dialog background -->
<color name = 'dialog_background'
@@ -57,7 +57,7 @@
rgb = '0, 204, 51'
/>
- <color name = 'paleyellow'
+ <color name = 'paleyellow'
rgb = '247, 228, 166'
/>
@@ -73,6 +73,9 @@
<color name = 'darkgray'
rgb = '176, 168, 144'
/>
+ <color name = 'darkgray2'
+ rgb = '192, 192, 192'
+ />
<color name = 'lightgray'
rgb = '210, 200, 170'
/>
@@ -81,8 +84,8 @@
/>
- <!-- Older/Unused? -->
- <color name = 'brightredborder'
+ <!-- Older/Unused? -->
+ <color name = 'brightredborder'
rgb = '238, 213, 207'
/>
@@ -128,7 +131,7 @@
scalable_file = 'FreeSansBold.ttf'
/>
<font resolution = 'y<400'
- id = 'text_default'
+ id = 'text_default'
file = 'clR6x12.bdf'
scalable_file = 'FreeSans.ttf'
point_size = '11'
@@ -138,7 +141,7 @@
scalable_file = 'FreeSansBold.ttf'
/>
<font resolution = 'y<400'
- id = 'text_button'
+ id = 'text_button'
file = 'clR6x12.bdf'
scalable_file = 'FreeSans.ttf'
point_size = '11'
@@ -148,7 +151,7 @@
scalable_file = 'FreeSans.ttf'
/>
<font resolution = 'y<400'
- id = 'text_normal'
+ id = 'text_normal'
file = 'clR6x12.bdf'
scalable_file = 'FreeSans.ttf'
point_size = '11'
@@ -209,7 +212,7 @@
/>
<text_color id = 'color_alternative_disabled'
- color = '192, 192, 192'
+ color = 'darkgray2'
/>
<text_color id = 'color_button'
@@ -217,7 +220,7 @@
/>
<text_color id = 'color_button_disabled'
- color = '192, 192, 192'
+ color = 'darkgray2'
/>
</fonts>
@@ -287,7 +290,7 @@
stroke = '1'
radius = '10'
fill = 'gradient'
- fg_color = 'blandyellow'
+ fg_color = 'blandyellow'
gradient_start = 'button_hover'
gradient_end = 'button_hover'
/>
@@ -298,7 +301,7 @@
stroke = '1'
radius = '10'
fill = 'gradient'
- fg_color = 'blandyellow'
+ fg_color = 'blandyellow'
gradient_start = 'button_idle'
gradient_end = 'button_idle'
/>
@@ -807,7 +810,7 @@
fill = 'background'
shadow = '2'
fg_color = 'darkredborder'
- bg_color = 'button_idle'
+ bg_color = 'button_idle'
bevel = '0'
bevel_color = 'brightredborder'
/>
@@ -826,7 +829,7 @@
fill = 'background'
shadow = '2'
fg_color = 'darkredborder'
- bg_color = 'button_hover'
+ bg_color = 'button_hover'
bevel = '0'
bevel_color = 'brightredborder'
/>
@@ -852,6 +855,287 @@
/>
</drawdata>
+ <!-- Dropdown button widget -->
+ <drawdata id = 'dropdown_button_idle' cache = 'false' resolution = 'y>399'>
+ <text font = 'text_button'
+ text_color = 'color_button'
+ vertical_align = 'center'
+ horizontal_align = 'center'
+ />
+ <drawstep func = 'roundedsq'
+ radius = '5'
+ fill = 'foreground'
+ shadow = '2'
+ fg_color = 'button_idle'
+ />
+ <drawstep func = 'triangle'
+ fg_color = 'white'
+ fill = 'foreground'
+ width = '8'
+ height = '6'
+ xpos = 'right'
+ ypos = 'center'
+ padding = '0,0,2,0'
+ orientation = 'bottom'
+ />
+ </drawdata>
+ <drawdata id = 'dropdown_button_idle' cache = 'false' resolution = 'y<400'>
+ <text font = 'text_button'
+ text_color = 'color_button'
+ vertical_align = 'center'
+ horizontal_align = 'center'
+ />
+ <drawstep func = 'roundedsq'
+ radius = '5'
+ fill = 'foreground'
+ shadow = '2'
+ fg_color = 'button_idle'
+ />
+ <drawstep func = 'triangle'
+ fg_color = 'white'
+ fill = 'foreground'
+ width = '6'
+ height = '6'
+ xpos = 'right'
+ ypos = 'center'
+ padding = '0,0,0,0'
+ orientation = 'bottom'
+ />
+ </drawdata>
+
+ <drawdata id = 'dropdown_button_hover_left' cache = 'false' resolution = 'y>399'>
+ <text font = 'text_button'
+ text_color = 'color_button'
+ vertical_align = 'center'
+ horizontal_align = 'center'
+ />
+ <drawstep func = 'roundedsq'
+ radius = '5'
+ fill = 'foreground'
+ fg_color = 'button_hover'
+ clip = '0,0,-13,0'
+ />
+ <drawstep func = 'triangle'
+ fg_color = 'white'
+ fill = 'foreground'
+ width = '8'
+ height = '6'
+ xpos = 'right'
+ ypos = 'center'
+ padding = '0,0,2,0'
+ orientation = 'bottom'
+ />
+ </drawdata>
+ <drawdata id = 'dropdown_button_hover_left' cache = 'false' resolution = 'y<400'>
+ <text font = 'text_button'
+ text_color = 'color_button'
+ vertical_align = 'center'
+ horizontal_align = 'center'
+ />
+ <drawstep func = 'roundedsq'
+ radius = '5'
+ fill = 'foreground'
+ fg_color = 'button_hover'
+ clip = '0,0,-7,0'
+ />
+ <drawstep func = 'triangle'
+ fg_color = 'white'
+ fill = 'foreground'
+ width = '6'
+ height = '6'
+ xpos = 'right'
+ ypos = 'center'
+ padding = '0,0,0,0'
+ orientation = 'bottom'
+ />
+ </drawdata>
+
+ <drawdata id = 'dropdown_button_hover_right' cache = 'false' resolution = 'y>399'>
+ <text font = 'text_button'
+ text_color = 'color_button'
+ vertical_align = 'center'
+ horizontal_align = 'center'
+ />
+ <drawstep func = 'roundedsq'
+ radius = '5'
+ fill = 'foreground'
+ fg_color = 'button_hover'
+ clip = '-13,0,0,0'
+ />
+ <drawstep func = 'triangle'
+ fg_color = 'white'
+ fill = 'foreground'
+ width = '8'
+ height = '6'
+ xpos = 'right'
+ ypos = 'center'
+ padding = '0,0,2,0'
+ orientation = 'bottom'
+ />
+ </drawdata>
+ <drawdata id = 'dropdown_button_hover_right' cache = 'false' resolution = 'y<400'>
+ <text font = 'text_button'
+ text_color = 'color_button'
+ vertical_align = 'center'
+ horizontal_align = 'center'
+ />
+ <drawstep func = 'roundedsq'
+ radius = '5'
+ fill = 'foreground'
+ fg_color = 'button_hover'
+ clip = '-7,0,0,0'
+ />
+ <drawstep func = 'triangle'
+ fg_color = 'white'
+ fill = 'foreground'
+ width = '6'
+ height = '6'
+ xpos = 'right'
+ ypos = 'center'
+ padding = '0,0,0,0'
+ orientation = 'bottom'
+ />
+ </drawdata>
+
+ <drawdata id = 'dropdown_button_disabled' cache = 'false' resolution = 'y>399'>
+ <text font = 'text_button'
+ text_color = 'color_button_disabled'
+ vertical_align = 'center'
+ horizontal_align = 'center'
+ />
+ <drawstep func = 'roundedsq'
+ radius = '5'
+ fill = 'foreground'
+ fg_color = 'button_disabled'
+ />
+ <drawstep func = 'triangle'
+ fg_color = 'darkgray2'
+ fill = 'foreground'
+ width = '8'
+ height = '6'
+ xpos = 'right'
+ ypos = 'center'
+ padding = '0,0,2,0'
+ orientation = 'bottom'
+ />
+ </drawdata>
+ <drawdata id = 'dropdown_button_disabled' cache = 'false' resolution = 'y<400'>
+ <text font = 'text_button'
+ text_color = 'color_button_disabled'
+ vertical_align = 'center'
+ horizontal_align = 'center'
+ />
+ <drawstep func = 'roundedsq'
+ radius = '5'
+ fill = 'foreground'
+ fg_color = 'button_disabled'
+ />
+ <drawstep func = 'triangle'
+ fg_color = 'darkgray2'
+ fill = 'foreground'
+ width = '6'
+ height = '6'
+ xpos = 'right'
+ ypos = 'center'
+ padding = '0,0,0,0'
+ orientation = 'bottom'
+ />
+ </drawdata>
+
+ <drawdata id = 'dropdown_button_pressed_left' cache = 'false' resolution = 'y>399'>
+ <text font = 'text_button'
+ text_color = 'color_button'
+ vertical_align = 'center'
+ horizontal_align = 'center'
+ />
+ <drawstep func = 'roundedsq'
+ radius = '5'
+ fill = 'foreground'
+ fg_color = 'button_pressed'
+ clip = '0,0,-13,0'
+ />
+ <drawstep func = 'triangle'
+ fg_color = 'white'
+ fill = 'foreground'
+ width = '8'
+ height = '6'
+ xpos = 'right'
+ ypos = 'center'
+ padding = '0,0,2,0'
+ orientation = 'bottom'
+ />
+ </drawdata>
+ <drawdata id = 'dropdown_button_pressed_left' cache = 'false' resolution = 'y<400'>
+ <text font = 'text_button'
+ text_color = 'color_button'
+ vertical_align = 'center'
+ horizontal_align = 'center'
+ />
+ <drawstep func = 'roundedsq'
+ radius = '5'
+ fill = 'foreground'
+ fg_color = 'button_pressed'
+ clip = '0,0,-7,0'
+ />
+ <drawstep func = 'triangle'
+ fg_color = 'white'
+ fill = 'foreground'
+ width = '6'
+ height = '6'
+ xpos = 'right'
+ ypos = 'center'
+ padding = '0,0,0,0'
+ orientation = 'bottom'
+ />
+ </drawdata>
+
+ <drawdata id = 'dropdown_button_pressed_right' cache = 'false' resolution = 'y>399'>
+ <text font = 'text_button'
+ text_color = 'color_button'
+ vertical_align = 'center'
+ horizontal_align = 'center'
+ />
+ <drawstep func = 'roundedsq'
+ radius = '5'
+ fill = 'foreground'
+ fg_color = 'button_pressed'
+ clip = '-13,0,0,0'
+ />
+ <drawstep func = 'triangle'
+ fg_color = 'white'
+ fill = 'foreground'
+ width = '8'
+ height = '6'
+ xpos = 'right'
+ ypos = 'center'
+ padding = '0,0,2,0'
+ orientation = 'bottom'
+ />
+ </drawdata>
+ <drawdata id = 'dropdown_button_pressed_right' cache = 'false' resolution = 'y<400'>
+ <text font = 'text_button'
+ text_color = 'color_button'
+ vertical_align = 'center'
+ horizontal_align = 'center'
+ />
+ <drawstep func = 'roundedsq'
+ radius = '5'
+ fill = 'foreground'
+ fg_color = 'button_pressed'
+ clip = '-7,0,0,0'
+ />
+ <drawstep func = 'triangle'
+ fg_color = 'white'
+ fill = 'foreground'
+ width = '6'
+ height = '6'
+ xpos = 'right'
+ ypos = 'center'
+ padding = '0,0,0,0'
+ orientation = 'bottom'
+ />
+ </drawdata>
+
<!-- Disabled checkbox -->
<drawdata id = 'checkbox_disabled' cache = 'false'>
<text font = 'text_default'