|
6 | 6 | <rect> |
7 | 7 | <x>0</x> |
8 | 8 | <y>0</y> |
9 | | - <width>405</width> |
10 | | - <height>297</height> |
| 9 | + <width>400</width> |
| 10 | + <height>250</height> |
11 | 11 | </rect> |
12 | 12 | </property> |
| 13 | + <property name="font"> |
| 14 | + <font> |
| 15 | + <pointsize>15</pointsize> |
| 16 | + </font> |
| 17 | + </property> |
13 | 18 | <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> |
15 | 24 | </property> |
16 | | - <widget class="QWidget" name=""> |
| 25 | + <widget class="QWidget" name="widget" native="true"> |
17 | 26 | <property name="geometry"> |
18 | 27 | <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> |
23 | 32 | </rect> |
24 | 33 | </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> |
25 | 111 | <layout class="QVBoxLayout" name="verticalLayout_2"> |
26 | 112 | <item> |
27 | 113 | <layout class="QVBoxLayout" name="verticalLayout"> |
28 | 114 | <item> |
29 | 115 | <layout class="QHBoxLayout" name="horizontalLayout_2"> |
30 | 116 | <item> |
31 | 117 | <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> |
32 | 126 | <property name="text"> |
33 | | - <string>TextLabel</string> |
| 127 | + <string>Time:</string> |
34 | 128 | </property> |
35 | 129 | </widget> |
36 | 130 | </item> |
|
48 | 142 | </spacer> |
49 | 143 | </item> |
50 | 144 | <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> |
52 | 153 | </item> |
53 | 154 | </layout> |
54 | 155 | </item> |
55 | 156 | <item> |
56 | 157 | <layout class="QHBoxLayout" name="horizontalLayout_3"> |
57 | 158 | <item> |
58 | 159 | <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> |
59 | 168 | <property name="text"> |
60 | | - <string>TextLabel</string> |
| 169 | + <string>Name:</string> |
61 | 170 | </property> |
62 | 171 | </widget> |
63 | 172 | </item> |
|
75 | 184 | </spacer> |
76 | 185 | </item> |
77 | 186 | <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> |
79 | 195 | </item> |
80 | 196 | </layout> |
81 | 197 | </item> |
|
85 | 201 | <layout class="QHBoxLayout" name="horizontalLayout"> |
86 | 202 | <item> |
87 | 203 | <widget class="QPushButton" name="createButton"> |
| 204 | + <property name="minimumSize"> |
| 205 | + <size> |
| 206 | + <width>0</width> |
| 207 | + <height>50</height> |
| 208 | + </size> |
| 209 | + </property> |
88 | 210 | <property name="text"> |
89 | 211 | <string>Create</string> |
90 | 212 | </property> |
91 | 213 | </widget> |
92 | 214 | </item> |
93 | 215 | <item> |
94 | 216 | <widget class="QPushButton" name="cancelButton"> |
| 217 | + <property name="minimumSize"> |
| 218 | + <size> |
| 219 | + <width>0</width> |
| 220 | + <height>50</height> |
| 221 | + </size> |
| 222 | + </property> |
95 | 223 | <property name="text"> |
96 | 224 | <string>Cancel</string> |
97 | 225 | </property> |
|
102 | 230 | </layout> |
103 | 231 | </widget> |
104 | 232 | </widget> |
105 | | - <resources/> |
| 233 | + <resources> |
| 234 | + <include location="resources.qrc"/> |
| 235 | + </resources> |
106 | 236 | <connections/> |
107 | 237 | </ui> |
0 commit comments