diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2019-03-10 22:26:42 +0100 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2019-03-11 08:11:52 +0100 |
commit | 5d535ffbe34b09a75f8e41fc46be1ed0eb1fbdfa (patch) | |
tree | 7762f6eb9cbfa30f0c7f7c356d2c050fd288fd38 | |
parent | f011a01d4b1fc6fd9cdd4178dd2651a51cd897dc (diff) |
widget theme: support disabled pushbutton
Change-Id: I8c6e019f5d1f12c85334f3440e09ef755ed6863d
Reviewed-on: https://gerrit.libreoffice.org/69022
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
-rw-r--r-- | vcl/Package_theme_definitions.mk | 1 | ||||
-rw-r--r-- | vcl/uiconfig/theme_definitions/definition.xml | 5 | ||||
-rw-r--r-- | vcl/uiconfig/theme_definitions/pushbutton-disabled.svgx | 3 |
3 files changed, 8 insertions, 1 deletions
diff --git a/vcl/Package_theme_definitions.mk b/vcl/Package_theme_definitions.mk index 143152d7327a..a30ca8179850 100644 --- a/vcl/Package_theme_definitions.mk +++ b/vcl/Package_theme_definitions.mk @@ -35,6 +35,7 @@ $(eval $(call gb_Package_add_files,vcl_theme_definitions,$(LIBO_SHARE_FOLDER)/th common-rect-disabled.svgx \ pushbutton-default.svgx \ pushbutton-rollover.svgx \ + pushbutton-disabled.svgx \ tabitem-first.svgx \ tabitem-middle.svgx \ tabitem-last.svgx \ diff --git a/vcl/uiconfig/theme_definitions/definition.xml b/vcl/uiconfig/theme_definitions/definition.xml index 4789b9a844ed..a4394de98ec5 100644 --- a/vcl/uiconfig/theme_definitions/definition.xml +++ b/vcl/uiconfig/theme_definitions/definition.xml @@ -67,12 +67,15 @@ <pushbutton> <part value="Entire"> - <state> + <state enabled="true"> <external source="pushbutton-default.svgx" /> </state> <state enabled="true" rollover="true"> <external source="pushbutton-rollover.svgx" /> </state> + <state enabled="false"> + <external source="pushbutton-disabled.svgx" /> + </state> </part> </pushbutton> diff --git a/vcl/uiconfig/theme_definitions/pushbutton-disabled.svgx b/vcl/uiconfig/theme_definitions/pushbutton-disabled.svgx new file mode 100644 index 000000000000..e4c1f63599d7 --- /dev/null +++ b/vcl/uiconfig/theme_definitions/pushbutton-disabled.svgx @@ -0,0 +1,3 @@ +<svg version="1.1" viewBox="0 0 44 26" xmlns="http://www.w3.org/2000/svg"> + <rect x=".5" y=".5" width="43" height="25" rx="2" ry="2" fill="#fff" stroke="#8e8e93"/> +</svg> |