From 07cb5f46a13296cd9c84ddbbff161e5a81dd52ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Toma=C5=BE=20Vajngerl?= Date: Tue, 19 Feb 2019 14:38:49 +0100 Subject: [PATCH] Add spinbox SVG buttons, but use a definition draw for now MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Iff40c7c315ed2473e7a5bd84a6449aedcf646e2f Reviewed-on: https://gerrit.libreoffice.org/68753 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl --- vcl/Package_theme_definitions.mk | 2 ++ vcl/source/gdi/FileDefinitionWidgetDraw.cxx | 2 +- vcl/uiconfig/theme_definitions/definition.xml | 23 +++++++++++++++++++ .../theme_definitions/spinbox-left.svgx | 4 ++++ .../theme_definitions/spinbox-right.svgx | 4 ++++ 5 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 vcl/uiconfig/theme_definitions/spinbox-left.svgx create mode 100644 vcl/uiconfig/theme_definitions/spinbox-right.svgx diff --git a/vcl/Package_theme_definitions.mk b/vcl/Package_theme_definitions.mk index 2e0ffa688fae..e28ae0911733 100644 --- a/vcl/Package_theme_definitions.mk +++ b/vcl/Package_theme_definitions.mk @@ -23,6 +23,8 @@ $(eval $(call gb_Package_add_files,vcl_theme_definitions,$(LIBO_SHARE_FOLDER)/th tick-on.svgx \ tick-on-pressed.svgx \ tick-on-disabled.svgx \ + spinbox-left.svgx \ + spinbox-right.svgx \ )) # vim: set noet sw=4 ts=4: diff --git a/vcl/source/gdi/FileDefinitionWidgetDraw.cxx b/vcl/source/gdi/FileDefinitionWidgetDraw.cxx index f2db60e4b5f0..fc86eb547f0c 100644 --- a/vcl/source/gdi/FileDefinitionWidgetDraw.cxx +++ b/vcl/source/gdi/FileDefinitionWidgetDraw.cxx @@ -534,7 +534,7 @@ bool FileDefinitionWidgetDraw::getNativeControlRegion( { case ControlType::Spinbox: { - Size aButtonSize(44, 26); + Size aButtonSize(32, 32); Point aLocation(rBoundingControlRegion.TopLeft()); if (ePart == ControlPart::ButtonUp) diff --git a/vcl/uiconfig/theme_definitions/definition.xml b/vcl/uiconfig/theme_definitions/definition.xml index 13859cfa3833..308bec61f614 100644 --- a/vcl/uiconfig/theme_definitions/definition.xml +++ b/vcl/uiconfig/theme_definitions/definition.xml @@ -140,6 +140,29 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/vcl/uiconfig/theme_definitions/spinbox-left.svgx b/vcl/uiconfig/theme_definitions/spinbox-left.svgx new file mode 100644 index 000000000000..3f98280a106b --- /dev/null +++ b/vcl/uiconfig/theme_definitions/spinbox-left.svgx @@ -0,0 +1,4 @@ + + + + diff --git a/vcl/uiconfig/theme_definitions/spinbox-right.svgx b/vcl/uiconfig/theme_definitions/spinbox-right.svgx new file mode 100644 index 000000000000..07ce83c388db --- /dev/null +++ b/vcl/uiconfig/theme_definitions/spinbox-right.svgx @@ -0,0 +1,4 @@ + + + +