Skip to content

Commit 34e3056

Browse files
authored
Merge pull request #5371 from DelazJ/colorspace
Optimize spacing in Color settings dialog
2 parents bb522b3 + 432ef1a commit 34e3056

File tree

1 file changed

+23
-5
lines changed

1 file changed

+23
-5
lines changed

src/ui/qgscompoundcolorwidget.ui

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
<rect>
77
<x>0</x>
88
<y>0</y>
9-
<width>620</width>
10-
<height>402</height>
9+
<width>597</width>
10+
<height>329</height>
1111
</rect>
1212
</property>
1313
<layout class="QVBoxLayout" name="verticalLayout_2">
@@ -256,7 +256,7 @@
256256
<property name="sizeHint" stdset="0">
257257
<size>
258258
<width>20</width>
259-
<height>40</height>
259+
<height>0</height>
260260
</size>
261261
</property>
262262
</spacer>
@@ -430,7 +430,7 @@
430430
<property name="sizeHint" stdset="0">
431431
<size>
432432
<width>20</width>
433-
<height>40</height>
433+
<height>0</height>
434434
</size>
435435
</property>
436436
</spacer>
@@ -440,6 +440,18 @@
440440
</item>
441441
<item row="1" column="0">
442442
<widget class="QWidget" name="mPreviewWidget" native="true">
443+
<property name="sizePolicy">
444+
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
445+
<horstretch>0</horstretch>
446+
<verstretch>0</verstretch>
447+
</sizepolicy>
448+
</property>
449+
<property name="maximumSize">
450+
<size>
451+
<width>16777215</width>
452+
<height>80</height>
453+
</size>
454+
</property>
443455
<layout class="QGridLayout" name="gridLayout" columnstretch="0,1,0">
444456
<item row="0" column="0">
445457
<widget class="QLabel" name="label_3">
@@ -464,7 +476,7 @@
464476
<item row="0" column="2" rowspan="2">
465477
<widget class="QPushButton" name="mAddCustomColorButton">
466478
<property name="sizePolicy">
467-
<sizepolicy hsizetype="Minimum" vsizetype="Expanding">
479+
<sizepolicy hsizetype="Minimum" vsizetype="Preferred">
468480
<horstretch>0</horstretch>
469481
<verstretch>0</verstretch>
470482
</sizepolicy>
@@ -535,6 +547,12 @@
535547
</item>
536548
<item row="1" column="1">
537549
<widget class="QWidget" name="mSwatchesWidget" native="true">
550+
<property name="sizePolicy">
551+
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
552+
<horstretch>0</horstretch>
553+
<verstretch>0</verstretch>
554+
</sizepolicy>
555+
</property>
538556
<layout class="QGridLayout" name="gridLayout_4">
539557
<property name="spacing">
540558
<number>1</number>

0 commit comments

Comments
 (0)