Skip to content

Commit 211ef36

Browse files
committed
Change scroller
1 parent 64d8157 commit 211ef36

File tree

2 files changed

+33
-18
lines changed

2 files changed

+33
-18
lines changed

SmartTimer/addalarmdialog.ui

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,18 @@
130130
<height>50</height>
131131
</size>
132132
</property>
133+
<property name="font">
134+
<font>
135+
<weight>75</weight>
136+
<bold>true</bold>
137+
</font>
138+
</property>
133139
<property name="text">
134140
<string>Alarm</string>
135141
</property>
142+
<property name="alignment">
143+
<set>Qt::AlignCenter</set>
144+
</property>
136145
</widget>
137146
</item>
138147
</layout>

SmartTimer/stylesheet.qss

Lines changed: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ QTabBar::tab:!selected {
6060
QWidget[blink=true] {
6161
color: white;
6262
font: 14pt ;
63-
background: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0.333333 rgba(149, 149, 149, 197), stop:1 rgba(255, 255, 255, 0));
63+
background: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0.373134 rgba(213, 126, 76, 208), stop:1 rgba(255, 255, 255, 0));
6464
border-bottom: 0px;
6565
border-top-left-radius: 20px;
6666
border-top-right-radius: 20px;
@@ -73,26 +73,32 @@ QWidget[blink=true] {
7373

7474

7575
QScrollBar:vertical {
76-
border: 0px;
77-
78-
background: solid rgb(116,116,116);
79-
width: 10px;
80-
margin: 22px 0 22px 0;
76+
border: 1px #c6c6c6;
77+
background: rgb(123,123,123);
78+
width: 13px;
79+
margin: 0px 0px 0px 0px;
8180
}
8281

82+
QScrollBar::handle:vertical {
83+
background: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(131, 131, 131, 0), stop:0.0625 rgba(213, 126, 76, 208), stop:0.517045 rgba(223, 136, 86, 208), stop:0.920455 rgba(213, 126, 76, 208), stop:1 rgba(158, 158, 158, 0));
84+
border: 1px grey;
85+
border-radius: 6px;
86+
min-height: 25px;
87+
}
88+
QScrollBar::add-line:vertical {
89+
height: 0px;
90+
subcontrol-position: bottom;
91+
subcontrol-origin: margin;
92+
}
93+
QScrollBar::sub-line:vertical {
94+
height: 0 px;
95+
subcontrol-position: top;
96+
subcontrol-origin: margin;
97+
}
8398

84-
QScrollBar::handle:vertical {
85-
background: rgba(223, 136, 86);
86-
border-radius: 5px;
87-
min-height: 20px;
88-
}
89-
90-
QScrollBar::up-arrow:vertical, QScrollBar::down-arrow:vertical {
91-
border: 0px;
92-
width: 0px;
93-
height: 0px;
94-
}
95-
99+
QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical {
100+
background: none;
101+
}
96102

97103

98104

0 commit comments

Comments
 (0)