diff options
author | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2018-10-27 13:23:46 -0400 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2018-11-08 09:14:39 +0100 |
commit | e9f5fce4e514bd15094e8588e835325e5027c80a (patch) | |
tree | 0d1e46d52175a8259cb37fe5522df90d1e1e9f44 /vcl | |
parent | a64bb41e2180818187563f92e0134eac459584fe (diff) |
custom widgets: rework colors and cleanup
Use ColorData for custom widget themes to
make it more readable and consistent.
Renamed and split out colors to be more accurately
named and representative of how they are used.
Fixed a number of inconsistencies in how colors
were used across widgets.
Change-Id: I1cbb5f19223bd55107379b049beccaf1de4e26b2
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/headless/CustomWidgetDraw.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/headless/CustomWidgetDraw.cxx b/vcl/headless/CustomWidgetDraw.cxx index c428213c6000..38d52dedcfa2 100644 --- a/vcl/headless/CustomWidgetDraw.cxx +++ b/vcl/headless/CustomWidgetDraw.cxx @@ -334,7 +334,7 @@ bool CustomWidgetDraw::updateSettings(AllSettings& rSettings) aStyleSet.SetDialogTextColor(aStyle.maDialogTextColor); aStyleSet.SetWorkspaceColor(Color(0xDF, 0xDF, 0xDE)); aStyleSet.SetMonoColor(Color(COL_BLACK)); - aStyleSet.SetFieldColor(Color(COL_WHITE)); + aStyleSet.SetFieldColor(Color(aStyle.maFaceColor)); aStyleSet.SetFieldTextColor(Color(COL_BLACK)); aStyleSet.SetFieldRolloverTextColor(Color(COL_BLACK)); aStyleSet.SetActiveColor(Color(COL_BLUE)); @@ -349,10 +349,10 @@ bool CustomWidgetDraw::updateSettings(AllSettings& rSettings) aStyleSet.SetMenuBorderColor(Color(COL_LIGHTGRAY)); aStyleSet.SetMenuTextColor(Color(COL_BLACK)); aStyleSet.SetMenuBarTextColor(Color(COL_BLACK)); - aStyleSet.SetMenuBarRolloverTextColor(Color(COL_WHITE)); - aStyleSet.SetMenuBarHighlightTextColor(Color(COL_WHITE)); + aStyleSet.SetMenuBarRolloverTextColor(Color(COL_BLACK)); + aStyleSet.SetMenuBarHighlightTextColor(Color(COL_BLACK)); aStyleSet.SetMenuHighlightColor(aStyle.maHighlightColor); - aStyleSet.SetMenuHighlightTextColor(Color(COL_WHITE)); + aStyleSet.SetMenuHighlightTextColor(Color(COL_BLACK)); aStyleSet.SetHighlightColor(aStyle.maHighlightColor); aStyleSet.SetHighlightTextColor(aStyle.maHighlightTextColor); aStyleSet.SetActiveTabColor(aStyle.maActiveTabColor); |