aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs
diff options
context:
space:
mode:
authorBrook Cronin <brook.cronin@qt.io>2020-04-16 17:03:08 +0200
committerThomas Hartmann <thomas.hartmann@qt.io>2020-05-05 08:33:35 +0000
commit8b16daf0ed5323f23ac675a34863d5109e7f4e31 (patch)
tree51377c42ea13ae0a4bfa47de5e6bd66144e7ae45 /src/libs
parentf574f478ebc1d78dc496356a6c45c33189de1cc7 (diff)
Theme: add design studio controls theming to theme color list
I've chosen to add the controls themes colors to the main color list for couple of reasons. 1.) Adding the colors to the main color list allows them to be used from the QML constants file that defines the controls color theme, in turn allowing us to customize the look and feel of all controls on a per theme basis. 2.) I have added new colors instead of using the existing ones because of the ripple effects of modifying existing colors in the themes, i.e that often when you want to change one particular color in the UI modifying the value of existing colors in the theme has the unintended consequence of changing other parts of the UI. Thus adding a specific set for the controls allows us to have a fine grained approach to modifying the controls in any theme without disturbing the other elements of the existing UI theme. Change-Id: I16fb0458c870d01f68ed626676a665117628c917 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Diffstat (limited to 'src/libs')
-rw-r--r--src/libs/utils/theme/theme.h38
1 files changed, 37 insertions, 1 deletions
diff --git a/src/libs/utils/theme/theme.h b/src/libs/utils/theme/theme.h
index 2bd1bd6845..e0f6e9cdb9 100644
--- a/src/libs/utils/theme/theme.h
+++ b/src/libs/utils/theme/theme.h
@@ -306,7 +306,43 @@ public:
QmlDesigner_BorderColor,
QmlDesigner_FormeditorBackgroundColor,
QmlDesigner_AlternateBackgroundColor,
- QmlDesigner_ScrollBarHandleColor
+ QmlDesigner_ScrollBarHandleColor,
+
+ /* Palette for DS Controls */
+
+ DScontrolBackground,
+ DScontrolOutline,
+ DStextColor,
+ DSdisabledTextColor,
+ DSpanelBackground,
+ DShoverHighlight,
+ DScolumnBackground,
+ DSfocusEdit,
+ DSfocusDrag,
+ DScontrolBackgroundPressed,
+ DScontrolBackgroundChecked,
+ DSinteraction,
+ DSsliderActiveTrack,
+ DSsliderInactiveTrack,
+ DSsliderHandle,
+ DSsliderActiveTrackHover,
+ DSsliderInactiveTrackHover,
+ DSsliderHandleHover,
+ DSsliderActiveTrackFocus,
+ DSsliderInactiveTrackFocus,
+ DSsliderHandleFocus,
+ DSerrorColor,
+ DScontrolBackgroundDisabled,
+ DScontrolOutlineDisabled,
+ DStextColorDisabled,
+ DStextSelectionColor,
+ DStextSelectedTextColor,
+ DSscrollBarTrack,
+ DSscrollBarHandle,
+ DScontrolBackgroundInteraction,
+ DStranslationIndicatorBorder,
+ DSsectionHeadBackground,
+ DSchangedStateText
};
enum Gradient {