Skip to content

Commit 8fcdae1

Browse files
metsmaiannaska
authored andcommitted
Adjust layout on window resize (#487)
IB-5806 Signed-off-by: Raul Metsma <[email protected]>
1 parent 17f5b1f commit 8fcdae1

File tree

1 file changed

+13
-17
lines changed

1 file changed

+13
-17
lines changed

client/MainWindow.ui

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<widget class="QWidget" name="topBar" native="true">
4040
<property name="minimumSize">
4141
<size>
42-
<width>1024</width>
42+
<width>0</width>
4343
<height>65</height>
4444
</size>
4545
</property>
@@ -49,19 +49,7 @@
4949
<height>65</height>
5050
</size>
5151
</property>
52-
<property name="styleSheet">
53-
<string notr="true">QWidget {
54-
background-color: #ffffff;
55-
}
56-
QPushButton:hover, QPushButton:focus {
57-
background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #F1C157, stop:0.28 #FADF91, stop:1 #EBA927);
58-
color: #00355F;
59-
}
60-
QPushButton:disabled {
61-
background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #A3AFC0, stop: 0.75 #80909D);
62-
}</string>
63-
</property>
64-
<layout class="QHBoxLayout" name="topBarLayout">
52+
<layout class="QHBoxLayout" name="topBarLayout" stretch="0,1,0">
6553
<property name="spacing">
6654
<number>0</number>
6755
</property>
@@ -123,8 +111,7 @@ border: solid rgba(255, 255, 255, 0.1); border-width: 0px 0px 1px 0px</string>
123111
</size>
124112
</property>
125113
<property name="styleSheet">
126-
<string notr="true">background-color: #FFFFFF;
127-
</string>
114+
<string notr="true">background-color: #FFFFFF;</string>
128115
</property>
129116
<widget class="QWidget" name="idSelector" native="true">
130117
<property name="geometry">
@@ -228,8 +215,17 @@ border: solid rgba(255, 255, 255, 0.1); border-width: 0px 0px 1px 0px</string>
228215
</item>
229216
<item>
230217
<widget class="QWidget" name="tbButtonWidget" native="true">
218+
<property name="minimumSize">
219+
<size>
220+
<width>125</width>
221+
<height>0</height>
222+
</size>
223+
</property>
231224
<property name="styleSheet">
232-
<string notr="true">QToolButton {
225+
<string notr="true">QWidget {
226+
background-color: #FFFFFF;
227+
}
228+
QToolButton {
233229
border: none;
234230
color: #75787B;
235231
font-size: 11px;

0 commit comments

Comments
 (0)