Commit 81272a9f authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh
Browse files

Theming: Set color for disabled widgets



Task-number: QTCREATORBUG-14528
Change-Id: I06032491470c40cd325eb2821af71becbcdd1b8a
Reviewed-by: default avatarThorben Kroeger <thorbenkroeger@gmail.com>
Reviewed-by: default avatarAlessandro Portale <alessandro.portale@theqtcompany.com>
parent 4caa37e7
......@@ -5,7 +5,7 @@ PreferredStyles=Fusion
[Palette]
shadowBackground=ff232323
text=ffe7e7e7
textDisabled=ffa0a0a4
textDisabled=ffa0a0a0
hoverBackground=ff515151
selectedBackground=ff151515
normalBackground=ff333333
......@@ -17,6 +17,7 @@ BackgroundColorAlternate=alternateBackground
BackgroundColorDark=shadowBackground
BackgroundColorHover=hoverBackground
BackgroundColorNormal=normalBackground
BackgroundColorDisabled=ff444444
BackgroundColorSelected=ff909090
BadgeLabelBackgroundColorChecked=normalBackground
BadgeLabelBackgroundColorUnchecked=selectedBackground
......
......@@ -12,6 +12,7 @@ BackgroundColorDark=ff232323
BackgroundColorHover=ff515151
BackgroundColorNormal=ffffffff
BackgroundColorSelected=ff151515
BackgroundColorDisabled=ffefebe7
BadgeLabelBackgroundColorChecked=ffe0e0e0
BadgeLabelBackgroundColorUnchecked=ff808080
BadgeLabelTextColorChecked=ff606060
......
......@@ -366,6 +366,10 @@ QPalette Theme::palette() const
pal.setColor(QPalette::ToolTipText, color(Theme::TextColorNormal));
pal.setColor(QPalette::Link, color(Theme::TextColorLink));
pal.setColor(QPalette::LinkVisited, color(Theme::TextColorLinkVisited));
pal.setColor(QPalette::Disabled, QPalette::Window, color(Theme::BackgroundColorDisabled));
pal.setBrush(QPalette::Disabled, QPalette::WindowText, color(Theme::TextColorDisabled));
pal.setColor(QPalette::Disabled, QPalette::Base, color(Theme::BackgroundColorDisabled));
pal.setBrush(QPalette::Disabled, QPalette::Text, color(Theme::TextColorDisabled));
return pal;
}
......
......@@ -63,6 +63,7 @@ public:
BackgroundColorHover,
BackgroundColorNormal,
BackgroundColorSelected,
BackgroundColorDisabled,
BadgeLabelBackgroundColorChecked,
BadgeLabelBackgroundColorUnchecked,
BadgeLabelTextColorChecked,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment