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
|
||||
- fix: add mutex lock to prevent editor crash in rare conditions
|
||||
- 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
|
||||
- fix: messages send to the gdb process's standard error are not received
|
||||
|
|
|
@ -283,7 +283,7 @@
|
|||
<enum>QTabWidget::South</enum>
|
||||
</property>
|
||||
<property name="currentIndex">
|
||||
<number>2</number>
|
||||
<number>0</number>
|
||||
</property>
|
||||
<widget class="QWidget" name="tabIssues">
|
||||
<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));
|
||||
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->setBrush(Qt::NoBrush);
|
||||
|
||||
|
|
Loading…
Reference in New Issue