Skip to content

Commit c9f9d11

Browse files
committed
Change add alarm dialog style
1 parent 9312990 commit c9f9d11

File tree

1 file changed

+143
-13
lines changed

1 file changed

+143
-13
lines changed

SmartTimer/addalarmdialog.ui

Lines changed: 143 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,31 +6,125 @@
66
<rect>
77
<x>0</x>
88
<y>0</y>
9-
<width>405</width>
10-
<height>297</height>
9+
<width>400</width>
10+
<height>250</height>
1111
</rect>
1212
</property>
13+
<property name="font">
14+
<font>
15+
<pointsize>15</pointsize>
16+
</font>
17+
</property>
1318
<property name="windowTitle">
14-
<string>Dialog</string>
19+
<string>Add new alarm</string>
20+
</property>
21+
<property name="windowIcon">
22+
<iconset resource="resources.qrc">
23+
<normaloff>:/icons/add-icon.png</normaloff>:/icons/add-icon.png</iconset>
1524
</property>
16-
<widget class="QWidget" name="">
25+
<widget class="QWidget" name="widget" native="true">
1726
<property name="geometry">
1827
<rect>
19-
<x>20</x>
20-
<y>10</y>
21-
<width>351</width>
22-
<height>271</height>
28+
<x>0</x>
29+
<y>0</y>
30+
<width>400</width>
31+
<height>250</height>
2332
</rect>
2433
</property>
34+
<property name="styleSheet">
35+
<string notr="true">QWidget {
36+
37+
background-color: rgb(113, 113, 113);
38+
39+
}
40+
41+
QLabel {
42+
color: rgb(238, 238, 236);
43+
font: bold;
44+
margin-left: 3px;
45+
}
46+
47+
QPushButton {
48+
background-color: rgb(113, 113, 113);
49+
border: 2px solid rgb(200,200,200);
50+
border-radius: 8px;
51+
52+
font: 14pt bold;
53+
color: rgb(230,230,230);
54+
}
55+
56+
QPushButton#createButton {
57+
58+
background-color: rgb(213, 126, 76);
59+
}
60+
61+
QPushButton#createButton:hover {
62+
background-color: rgb(220, 136, 86);
63+
}
64+
65+
QPushButton#cancelButton:hover {
66+
background-color: rgb(123, 123, 123);
67+
}
68+
69+
QLineEdit {
70+
border-radius: 10px;
71+
color: rgb(238, 238, 236);
72+
background-color: rgb(255, 204, 157,10);
73+
}
74+
75+
QTimeEdit {
76+
border-radius: 10px;
77+
color: rgb(238, 238, 236);
78+
font: 19pt bold;
79+
background-color: rgb(255, 204, 157,10);
80+
}
81+
82+
QTimeEdit::up-button {
83+
subcontrol-origin: border;
84+
subcontrol-position: top right;
85+
86+
background-color: rgb(213, 126, 76);
87+
width: 25px;
88+
height: 25px;
89+
border-width: 3px;
90+
border-color: rgb(85, 87, 83);
91+
border-radius: 4px;
92+
93+
margin-bottom: 2px;
94+
}
95+
96+
QTimeEdit::down-button {
97+
subcontrol-origin: border;
98+
subcontrol-position: bottom right;
99+
100+
background-color: rgb(213, 126, 76);
101+
width: 25px;
102+
height: 25px;
103+
border-width: 3px;
104+
border-color: rgb(85, 87, 83);
105+
border-radius: 4px;
106+
margin-top: 2px;
107+
}
108+
109+
</string>
110+
</property>
25111
<layout class="QVBoxLayout" name="verticalLayout_2">
26112
<item>
27113
<layout class="QVBoxLayout" name="verticalLayout">
28114
<item>
29115
<layout class="QHBoxLayout" name="horizontalLayout_2">
30116
<item>
31117
<widget class="QLabel" name="label">
118+
<property name="font">
119+
<font>
120+
<pointsize>16</pointsize>
121+
<weight>75</weight>
122+
<italic>false</italic>
123+
<bold>true</bold>
124+
</font>
125+
</property>
32126
<property name="text">
33-
<string>TextLabel</string>
127+
<string>Time:</string>
34128
</property>
35129
</widget>
36130
</item>
@@ -48,16 +142,31 @@
48142
</spacer>
49143
</item>
50144
<item>
51-
<widget class="QTimeEdit" name="alarmTime"/>
145+
<widget class="QTimeEdit" name="alarmTime">
146+
<property name="minimumSize">
147+
<size>
148+
<width>259</width>
149+
<height>50</height>
150+
</size>
151+
</property>
152+
</widget>
52153
</item>
53154
</layout>
54155
</item>
55156
<item>
56157
<layout class="QHBoxLayout" name="horizontalLayout_3">
57158
<item>
58159
<widget class="QLabel" name="label_2">
160+
<property name="font">
161+
<font>
162+
<pointsize>16</pointsize>
163+
<weight>75</weight>
164+
<italic>false</italic>
165+
<bold>true</bold>
166+
</font>
167+
</property>
59168
<property name="text">
60-
<string>TextLabel</string>
169+
<string>Name:</string>
61170
</property>
62171
</widget>
63172
</item>
@@ -75,7 +184,14 @@
75184
</spacer>
76185
</item>
77186
<item>
78-
<widget class="QLineEdit" name="alarmName"/>
187+
<widget class="QLineEdit" name="alarmName">
188+
<property name="minimumSize">
189+
<size>
190+
<width>260</width>
191+
<height>50</height>
192+
</size>
193+
</property>
194+
</widget>
79195
</item>
80196
</layout>
81197
</item>
@@ -85,13 +201,25 @@
85201
<layout class="QHBoxLayout" name="horizontalLayout">
86202
<item>
87203
<widget class="QPushButton" name="createButton">
204+
<property name="minimumSize">
205+
<size>
206+
<width>0</width>
207+
<height>50</height>
208+
</size>
209+
</property>
88210
<property name="text">
89211
<string>Create</string>
90212
</property>
91213
</widget>
92214
</item>
93215
<item>
94216
<widget class="QPushButton" name="cancelButton">
217+
<property name="minimumSize">
218+
<size>
219+
<width>0</width>
220+
<height>50</height>
221+
</size>
222+
</property>
95223
<property name="text">
96224
<string>Cancel</string>
97225
</property>
@@ -102,6 +230,8 @@
102230
</layout>
103231
</widget>
104232
</widget>
105-
<resources/>
233+
<resources>
234+
<include location="resources.qrc"/>
235+
</resources>
106236
<connections/>
107237
</ui>

0 commit comments

Comments
 (0)