Commit 5a973f13 authored by Krešimir Čohar's avatar Krešimir Čohar Committed by Björn Feber

[sddm-kcm] Adjust Background label and button

Summary:
This patch adjusts the "Background:" label (adds padding and changes its alignment) and button to align with the changes implemented in D19077. It also moves the background preview button to below its corresponding label.

(P.S. The padding above the Background: label is controlled by patch D19077 for the most part.)

Test Plan:
Before (with patch D19077 applied):
{F6628596}
After (with patch D19077 applied):
{F6628919}

For reference,
before (without patch D19077):
{F6628598}
after (without patch D19077):
{F6628916}

Reviewers: #vdg, #plasma, filipf, ngraham

Reviewed By: #vdg, filipf

Subscribers: GB_2, abetts, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D19209
parent f2f32ae8
......@@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>620</width>
<height>555</height>
<width>950</width>
<height>686</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
......@@ -49,14 +49,26 @@
</item>
<item>
<widget class="QGroupBox" name="customizeBox">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>450</width>
<height>0</height>
</size>
</property>
<property name="title">
<string>Customize theme</string>
<string notr="true"/>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QQuickWidget" name="quickWidget">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
......@@ -74,7 +86,16 @@
</item>
<item>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="1">
<property name="leftMargin">
<number>6</number>
</property>
<property name="topMargin">
<number>6</number>
</property>
<property name="bottomMargin">
<number>6</number>
</property>
<item row="1" column="0">
<widget class="SelectImageButton" name="selectBackgroundButton">
<property name="text">
<string>...</string>
......@@ -87,10 +108,26 @@
<string>Background:</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
</property>
<property name="margin">
<number>0</number>
</property>
</widget>
</item>
<item row="0" column="1">
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
......@@ -120,8 +157,7 @@
</property>
<property name="icon">
<iconset theme="delete">
<normaloff/>
</iconset>
<normaloff>.</normaloff>.</iconset>
</property>
</widget>
</item>
......@@ -145,8 +181,7 @@
</property>
<property name="icon">
<iconset theme="document-import">
<normaloff/>
</iconset>
<normaloff>.</normaloff>.</iconset>
</property>
</widget>
</item>
......@@ -157,8 +192,7 @@
</property>
<property name="icon">
<iconset theme="get-hot-new-stuff">
<normaloff/>
</iconset>
<normaloff>.</normaloff>.</iconset>
</property>
</widget>
</item>
......@@ -167,15 +201,16 @@
</layout>
</widget>
<customwidgets>
<customwidget>
<class>QQuickWidget</class>
<extends>QWidget</extends>
<header location="global">QtQuickWidgets/QQuickWidget</header>
</customwidget>
<customwidget>
<class>KMessageWidget</class>
<extends>QFrame</extends>
<header>kmessagewidget.h</header>
</customwidget>
<customwidget>
<class>QQuickWidget</class>
<extends>QWidget</extends>
<header>QtQuickWidgets/QQuickWidget</header>
<container>1</container>
</customwidget>
<customwidget>
<class>SelectImageButton</class>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment