Commit 73289b95 authored by Jens Bache-Wiig's avatar Jens Bache-Wiig
Browse files

Fixes: Fix highcontrast themes

Details:
We need to force the background and foreground
colors to make dark color themes work with the
style sheet.
I also changed the selected tab-button not to
be sunken and the menu highlight to be slightly
lighter.
parent 3f7b3df9
......@@ -214,7 +214,7 @@ void StyleHelper::menuGradient(QPainter *painter, const QRect &spanRect, const Q
}
QLinearGradient grad(spanRect.topLeft(), spanRect.bottomLeft());
QColor menuColor = mergedColors(StyleHelper::baseColor(), QColor(240, 240, 240), 25);
QColor menuColor = mergedColors(StyleHelper::baseColor(), QColor(244, 244, 244), 25);
grad.setColorAt(0, menuColor.lighter(112));
grad.setColorAt(1, menuColor);
p->fillRect(rect, grad);
......
......@@ -21,9 +21,16 @@ QToolButton, QPushButton, QComboBox {
padding: 0px 6px;
font-size: 12px;
font-family: lucida sans, dejavu sans, sans serif;
}
*{
color: black;
}
QComboBox QAbstractItemView {
background-color:white;
}
QComboBox::down-arrow {
image: url(:/core/images/welcomemode/combobox_arrow.png);
}
......@@ -41,7 +48,7 @@ QToolButton:hover, QPushButton:hover, QComboBox:hover {
border-image: url(:/core/images/welcomemode/btn_26_hover.png) 4;
}
QToolButton:disabled, QPushButton:disabled {
QToolButton:disabled, QPushButton:disabled, QComboBox::disabled {
color:gray;
}
......@@ -187,8 +194,8 @@ QToolButton:pressed, QPushButton:pressed{
stop: 0.401 #636363,
stop: 1 #4a4a4a);
border: 0px solid black;
border-top: 1px solid black;
border-bottom: 1px solid black;
border-top: 1px solid #303030;
border-bottom: 1px solid #202020;
color: white;
height:20px;
}
......@@ -202,7 +209,7 @@ QToolButton:hover {
stop: 1 #555555);
}
QToolButton:checked {
QToolButton:checked, QToolButton:checked:pressed {
border-image:none;
background-color: qlineargradient(x1: 0, y1: 0, x2: 0.0, y2: 1.0,
stop: 0 #ffffff,
......@@ -885,6 +892,9 @@ QToolButton:pressed {
<property name="text">
<string>Create New Project...</string>
</property>
<property name="flat">
<bool>true</bool>
</property>
</widget>
</item>
<item row="4" column="0">
......
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