better appearance of tool button
This commit is contained in:
parent
19b1d042c0
commit
4eac9756cd
2
NEWS.md
2
NEWS.md
|
@ -2,7 +2,7 @@ Version 0.6.8
|
||||||
- enhancement: add link to cppreference in the help menu
|
- enhancement: add link to cppreference in the help menu
|
||||||
- fix: add mutex lock to prevent editor crash in rare conditions
|
- fix: add mutex lock to prevent editor crash in rare conditions
|
||||||
- fix: In the create project dialog, the browser button doesn't work
|
- fix: In the create project dialog, the browser button doesn't work
|
||||||
- change: use QStyle to implement the dark style
|
- enhancement: use QStyle to implement the dark style, and better control of the style's look and feel
|
||||||
|
|
||||||
Version 0.6.7
|
Version 0.6.7
|
||||||
- fix: messages send to the gdb process's standard error are not received
|
- fix: messages send to the gdb process's standard error are not received
|
||||||
|
|
|
@ -283,7 +283,7 @@
|
||||||
<enum>QTabWidget::South</enum>
|
<enum>QTabWidget::South</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="currentIndex">
|
<property name="currentIndex">
|
||||||
<number>2</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QWidget" name="tabIssues">
|
<widget class="QWidget" name="tabIssues">
|
||||||
<attribute name="icon">
|
<attribute name="icon">
|
||||||
|
|
|
@ -709,7 +709,7 @@ void DarkFusionStyle::drawPrimitive(PrimitiveElement elem, const QStyleOption *o
|
||||||
|
|
||||||
QLinearGradient gradient = qt_fusion_gradient(rect, (isEnabled && option->state & State_MouseOver ) ? buttonColor : buttonColor.darker(104));
|
QLinearGradient gradient = qt_fusion_gradient(rect, (isEnabled && option->state & State_MouseOver ) ? buttonColor : buttonColor.darker(104));
|
||||||
p->setPen(Qt::transparent);
|
p->setPen(Qt::transparent);
|
||||||
p->setBrush(isDown ? QBrush(buttonColor.darker(110)) : gradient);
|
p->setBrush(isDown ? QBrush(buttonColor.lighter(250)) : gradient);
|
||||||
p->drawRoundedRect(r, 2.0, 2.0);
|
p->drawRoundedRect(r, 2.0, 2.0);
|
||||||
p->setBrush(Qt::NoBrush);
|
p->setBrush(Qt::NoBrush);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue