diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2019-03-15 22:40:10 +0800 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2019-03-16 00:27:38 +0100 |
commit | 30ae10c92d52ad7c6cdc569c87228d7f9adaadf5 (patch) | |
tree | 728d76d628ce6876a6a086c735916bee3e84f87c /vcl/uiconfig | |
parent | ac12cd5f6813bf740417a4d732f7b0a1761bd3e7 (diff) |
ios widget theme: draw focus rectangles for widgets
Change-Id: I92d42d100c515cbe744d13050a424b7f584a7adb
Reviewed-on: https://gerrit.libreoffice.org/69315
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'vcl/uiconfig')
3 files changed, 35 insertions, 0 deletions
diff --git a/vcl/uiconfig/theme_definitions/ios/common-rect-focus-slim.svgx b/vcl/uiconfig/theme_definitions/ios/common-rect-focus-slim.svgx new file mode 100644 index 000000000000..8bc97ef330ef --- /dev/null +++ b/vcl/uiconfig/theme_definitions/ios/common-rect-focus-slim.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="none" stroke="#79b9ff"/> +</svg> diff --git a/vcl/uiconfig/theme_definitions/ios/common-rect-focus.svgx b/vcl/uiconfig/theme_definitions/ios/common-rect-focus.svgx new file mode 100644 index 000000000000..4eff277fe8f7 --- /dev/null +++ b/vcl/uiconfig/theme_definitions/ios/common-rect-focus.svgx @@ -0,0 +1,3 @@ +<svg version="1.1" viewBox="0 0 44 26" xmlns="http://www.w3.org/2000/svg"> + <rect x="1.5" y="1.5" width="41" height="23" rx="2" ry="2" fill="none" stroke="#79b9ff" stroke-width="3"/> +</svg> diff --git a/vcl/uiconfig/theme_definitions/ios/definition.xml b/vcl/uiconfig/theme_definitions/ios/definition.xml index 763967d9ede1..ffe6a29786ac 100644 --- a/vcl/uiconfig/theme_definitions/ios/definition.xml +++ b/vcl/uiconfig/theme_definitions/ios/definition.xml @@ -77,6 +77,11 @@ <external source="pushbutton-disabled.svgx" /> </state> </part> + <part value="Focus"> + <state> + <external source="common-rect-focus.svgx" /> + </state> + </part> </pushbutton> <radiobutton> @@ -100,6 +105,11 @@ <image source="tick-on-disabled.svgx" /> </state> </part> + <part value="Focus"> + <state> + <external source="common-rect-focus-slim.svgx" /> + </state> + </part> </radiobutton> <checkbox> @@ -123,6 +133,11 @@ <image source="switch-on-disabled.svgx" /> </state> </part> + <part value="Focus"> + <state> + <external source="common-rect-focus-slim.svgx" /> + </state> + </part> </checkbox> <combobox> @@ -147,6 +162,11 @@ <image source="combobox-disabled.svgx" /> </state> </part> + <part value="Focus"> + <state> + <external source="common-rect-focus.svgx" /> + </state> + </part> </combobox> <editbox> @@ -157,6 +177,9 @@ <state enabled="false"> <external source="common-rect-disabled.svgx" /> </state> + <state focused="true"> + <external source="common-rect-focus.svgx" /> + </state> </part> </editbox> @@ -188,6 +211,7 @@ </part> <part value="Focus"> <state> + <external source="common-rect-focus.svgx" /> </state> </part> </listbox> @@ -227,6 +251,11 @@ <external source="spinbox-right-disabled.svgx" /> </state> </part> + <part value="Focus"> + <state> + <external source="common-rect-focus-slim.svgx" /> + </state> + </part> </spinbox> <scrollbar> |