Skip to content

Commit 80fbd0c

Browse files
Make button take on Button color from QPalette
1 parent 64a1780 commit 80fbd0c

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

runmanager/main.ui

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -452,14 +452,12 @@ subprocess</string>
452452
<property name="styleSheet">
453453
<string notr="true">QToolButton {
454454
border: none;
455-
background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
456-
stop: 0 palette(light), stop: 1 palette(window));
457-
padding: 2px;
455+
background-color: palette(Button);
458456
}
459457

460458
QToolButton:hover {
461459
background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
462-
stop: 0 palette(light), stop: 1 palette(window));
460+
stop: 0 palette(window), stop: 1 palette(light));
463461
border: 1px solid palette(dark);
464462
border-radius: 3px;
465463
}
@@ -555,8 +553,7 @@ subprocess</string>
555553
<property name="styleSheet">
556554
<string notr="true">QToolButton {
557555
border: none;
558-
background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
559-
stop: 0 palette(light), stop: 1 palette(window));
556+
background-color: palette(Button);
560557
padding: 2px;
561558
}
562559

0 commit comments

Comments
 (0)