Skip to content

Commit e34181a

Browse files
Merge pull request #2718 from pratyanj/Currency_Converter
update style of GUI
2 parents bb4ce28 + cecb779 commit e34181a

File tree

1 file changed

+101
-10
lines changed

1 file changed

+101
-10
lines changed

currency converter/gui.ui

Lines changed: 101 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,101 @@
66
<rect>
77
<x>0</x>
88
<y>0</y>
9-
<width>794</width>
10-
<height>365</height>
9+
<width>785</width>
10+
<height>362</height>
1111
</rect>
1212
</property>
1313
<property name="windowTitle">
1414
<string>MainWindow</string>
1515
</property>
16+
<property name="styleSheet">
17+
<string notr="true">QMainWindow {
18+
background-color: #2C2F33;
19+
}
20+
QLabel#label {
21+
color: #FFFFFF;
22+
font-family: 'Arial';
23+
font-size: 28px;
24+
font-weight: bold;
25+
background-color: transparent;
26+
padding: 10px;
27+
}
28+
QLabel#label_2, QLabel#label_3 {
29+
color: #7289DA;
30+
font-family: 'Arial';
31+
font-size: 20px;
32+
font-weight: normal;
33+
background-color: transparent;
34+
}
35+
QComboBox {
36+
background-color: #23272A;
37+
color: #FFFFFF;
38+
font-family: 'Arial';
39+
font-size: 16px;
40+
border-radius: 10px;
41+
padding: 10px;
42+
border: 1px solid #7289DA;
43+
}
44+
QComboBox:hover {
45+
border: 1px solid #677BC4;
46+
}
47+
QComboBox::drop-down {
48+
border: none;
49+
width: 20px;
50+
}
51+
QComboBox::down-arrow {
52+
image: url(:/icons/down_arrow.png);
53+
width: 12px;
54+
height: 12px;
55+
}
56+
QComboBox QAbstractItemView {
57+
background-color: #23272A;
58+
color: #FFFFFF;
59+
selection-background-color: #7289DA;
60+
selection-color: #FFFFFF;
61+
border: 1px solid #7289DA;
62+
border-radius: 5px;
63+
}
64+
QLineEdit {
65+
background-color: #23272A;
66+
color: #FFFFFF;
67+
font-family: 'Arial';
68+
font-size: 20px;
69+
border-radius: 10px;
70+
padding: 10px;
71+
border: 1px solid #7289DA;
72+
}
73+
QLineEdit:hover, QLineEdit:focus {
74+
border: 1px solid #677BC4;
75+
}
76+
QPushButton {
77+
background-color: #7289DA;
78+
color: #FFFFFF;
79+
font-family: 'Arial';
80+
font-size: 16px;
81+
font-weight: bold;
82+
border-radius: 10px;
83+
padding: 10px;
84+
border: none;
85+
}
86+
QPushButton:hover {
87+
background-color: #677BC4;
88+
}
89+
QPushButton:pressed {
90+
background-color: #5B6EAE;
91+
}
92+
QLCDNumber {
93+
background-color: #23272A;
94+
color: #43B581;
95+
border-radius: 10px;
96+
border: 1px solid #7289DA;
97+
padding: 10px;
98+
}
99+
QStatusBar {
100+
background-color: #23272A;
101+
color: #FFFFFF;
102+
}</string>
103+
</property>
16104
<widget class="QWidget" name="centralwidget">
17105
<widget class="QLabel" name="label">
18106
<property name="geometry">
@@ -25,8 +113,8 @@
25113
</property>
26114
<property name="font">
27115
<font>
28-
<family>Segoe Script</family>
29-
<pointsize>24</pointsize>
116+
<family>Arial</family>
117+
<pointsize>-1</pointsize>
30118
<weight>75</weight>
31119
<bold>true</bold>
32120
</font>
@@ -61,7 +149,7 @@
61149
<widget class="QPushButton" name="pushButton">
62150
<property name="geometry">
63151
<rect>
64-
<x>110</x>
152+
<x>100</x>
65153
<y>260</y>
66154
<width>571</width>
67155
<height>41</height>
@@ -92,9 +180,11 @@
92180
</property>
93181
<property name="font">
94182
<font>
95-
<family>Monotype Corsiva</family>
96-
<pointsize>20</pointsize>
183+
<family>Arial</family>
184+
<pointsize>-1</pointsize>
185+
<weight>50</weight>
97186
<italic>true</italic>
187+
<bold>false</bold>
98188
</font>
99189
</property>
100190
<property name="text">
@@ -112,9 +202,11 @@
112202
</property>
113203
<property name="font">
114204
<font>
115-
<family>Monotype Corsiva</family>
116-
<pointsize>20</pointsize>
205+
<family>Arial</family>
206+
<pointsize>-1</pointsize>
207+
<weight>50</weight>
117208
<italic>true</italic>
209+
<bold>false</bold>
118210
</font>
119211
</property>
120212
<property name="text">
@@ -132,7 +224,6 @@
132224
</property>
133225
</widget>
134226
</widget>
135-
<widget class="QStatusBar" name="statusbar"/>
136227
</widget>
137228
<resources/>
138229
<connections/>

0 commit comments

Comments
 (0)