Made the hardcoded values of ExpandableComponent themable

CURA-5785
This commit is contained in:
Jaime van Kessel 2018-11-15 14:11:46 +01:00
parent 3629e3b604
commit 6dd6f5ecc7
2 changed files with 5 additions and 4 deletions

View file

@ -17,10 +17,10 @@ Item
property var popupItem
// The background color of the popup
property color popupBackgroundColor: "white"
property color popupBackgroundColor: UM.Theme.getColor("action_button")
property color headerBackgroundColor: "white"
property color headerHoverColor: "white"
property color headerBackgroundColor: UM.Theme.getColor("action_button")
property color headerHoverColor: UM.Theme.getColor("action_button_hovered")
// How much spacing is needed around the popupItem
property alias popupPadding: popup.padding

View file

@ -75,6 +75,7 @@
"lining": [192, 193, 194, 255],
"viewport_overlay": [0, 0, 0, 192],
"primary": [50, 130, 255, 255],
"primary_hover": [48, 182, 231, 255],
"primary_text": [255, 255, 255, 255],
@ -157,7 +158,7 @@
"action_button": [255, 255, 255, 255],
"action_button_text": [0, 0, 0, 255],
"action_button_border": [127, 127, 127, 255],
"action_button_hovered": [255, 255, 255, 255],
"action_button_hovered": [232, 242, 252, 255],
"action_button_hovered_text": [31, 36, 39, 255],
"action_button_hovered_border": [50, 130, 255, 255],
"action_button_active": [255, 255, 255, 255],