summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
authorAshod Nakashian <ashod.nakashian@collabora.co.uk>2019-01-19 07:49:24 -0500
committerTomaž Vajngerl <quikee@gmail.com>2019-11-09 17:35:21 +0100
commit8a425fbd9c6b75b09672e0ce18f43162d9eda360 (patch)
tree7f862bf2c494aeef555eb5fb612908c94f81b6eb /toolkit
parenta0ebc6f898992dbc0da9f252911da867dfdfd741 (diff)
custom widgets: support custom action button text colors
Change-Id: I314183a1d6434c043183a600740c786e22a67503 Reviewed-on: https://gerrit.libreoffice.org/82276 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/source/awt/stylesettings.cxx41
-rw-r--r--toolkit/source/awt/stylesettings.hxx6
2 files changed, 47 insertions, 0 deletions
diff --git a/toolkit/source/awt/stylesettings.cxx b/toolkit/source/awt/stylesettings.cxx
index 136832dce5bf..eb76209040b8 100644
--- a/toolkit/source/awt/stylesettings.cxx
+++ b/toolkit/source/awt/stylesettings.cxx
@@ -239,6 +239,20 @@ namespace toolkit
}
+ ::sal_Int32 SAL_CALL WindowStyleSettings::getActionButtonRolloverTextColor()
+ {
+ StyleMethodGuard aGuard( *m_pData );
+ return lcl_getStyleColor( *m_pData, &StyleSettings::GetActionButtonRolloverTextColor );
+ }
+
+
+ void SAL_CALL WindowStyleSettings::setActionButtonRolloverTextColor( ::sal_Int32 _buttonrollovertextcolor )
+ {
+ StyleMethodGuard aGuard( *m_pData );
+ lcl_setStyleColor( *m_pData, &StyleSettings::SetActionButtonRolloverTextColor, _buttonrollovertextcolor );
+ }
+
+
::sal_Int32 SAL_CALL WindowStyleSettings::getButtonTextColor()
{
StyleMethodGuard aGuard( *m_pData );
@@ -252,6 +266,33 @@ namespace toolkit
lcl_setStyleColor( *m_pData, &StyleSettings::SetButtonTextColor, _buttontextcolor );
}
+ ::sal_Int32 SAL_CALL WindowStyleSettings::getDefaultActionButtonTextColor()
+ {
+ StyleMethodGuard aGuard( *m_pData );
+ return lcl_getStyleColor( *m_pData, &StyleSettings::GetDefaultActionButtonTextColor );
+ }
+
+
+ void SAL_CALL WindowStyleSettings::setDefaultActionButtonTextColor( ::sal_Int32 _buttontextcolor )
+ {
+ StyleMethodGuard aGuard( *m_pData );
+ lcl_setStyleColor( *m_pData, &StyleSettings::SetDefaultActionButtonTextColor, _buttontextcolor );
+ }
+
+
+ ::sal_Int32 SAL_CALL WindowStyleSettings::getActionButtonTextColor()
+ {
+ StyleMethodGuard aGuard( *m_pData );
+ return lcl_getStyleColor( *m_pData, &StyleSettings::GetActionButtonTextColor );
+ }
+
+
+ void SAL_CALL WindowStyleSettings::setActionButtonTextColor( ::sal_Int32 _buttontextcolor )
+ {
+ StyleMethodGuard aGuard( *m_pData );
+ lcl_setStyleColor( *m_pData, &StyleSettings::SetActionButtonTextColor, _buttontextcolor );
+ }
+
::sal_Int32 SAL_CALL WindowStyleSettings::getCheckedColor()
{
diff --git a/toolkit/source/awt/stylesettings.hxx b/toolkit/source/awt/stylesettings.hxx
index 0bc28cd1dad4..9799119b2a83 100644
--- a/toolkit/source/awt/stylesettings.hxx
+++ b/toolkit/source/awt/stylesettings.hxx
@@ -62,8 +62,14 @@ namespace toolkit
virtual void SAL_CALL setActiveTextColor( ::sal_Int32 _activetextcolor ) override;
virtual ::sal_Int32 SAL_CALL getButtonRolloverTextColor() override;
virtual void SAL_CALL setButtonRolloverTextColor( ::sal_Int32 _buttonrollovertextcolor ) override;
+ virtual ::sal_Int32 SAL_CALL getActionButtonRolloverTextColor() override;
+ virtual void SAL_CALL setActionButtonRolloverTextColor( ::sal_Int32 _buttonrollovertextcolor ) override;
virtual ::sal_Int32 SAL_CALL getButtonTextColor() override;
virtual void SAL_CALL setButtonTextColor( ::sal_Int32 _buttontextcolor ) override;
+ virtual ::sal_Int32 SAL_CALL getDefaultActionButtonTextColor() override;
+ virtual void SAL_CALL setDefaultActionButtonTextColor( ::sal_Int32 _buttontextcolor ) override;
+ virtual ::sal_Int32 SAL_CALL getActionButtonTextColor() override;
+ virtual void SAL_CALL setActionButtonTextColor( ::sal_Int32 _buttontextcolor ) override;
virtual ::sal_Int32 SAL_CALL getCheckedColor() override;
virtual void SAL_CALL setCheckedColor( ::sal_Int32 _checkedcolor ) override;
virtual ::sal_Int32 SAL_CALL getDarkShadowColor() override;