Improve layout of Plasmoid appearance settings page

This commit is contained in:
Martchus 2020-01-11 21:42:25 +01:00
parent addba5a87c
commit e76d4afff5
1 changed files with 152 additions and 137 deletions

View File

@ -2,12 +2,6 @@
<ui version="4.0"> <ui version="4.0">
<class>Plasmoid::AppearanceOptionPage</class> <class>Plasmoid::AppearanceOptionPage</class>
<widget class="QWidget" name="Plasmoid::AppearanceOptionPage"> <widget class="QWidget" name="Plasmoid::AppearanceOptionPage">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="windowTitle"> <property name="windowTitle">
<string>Appearance</string> <string>Appearance</string>
</property> </property>
@ -17,137 +11,158 @@
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout"> <layout class="QVBoxLayout" name="verticalLayout">
<item> <item>
<layout class="QFormLayout" name="formLayout"> <widget class="QWidget" name="" native="true">
<item row="0" column="0"> <property name="sizePolicy">
<widget class="QLabel" name="sizeLabel"> <sizepolicy hsizetype="Preferred" vsizetype="Maximum">
<property name="text"> <horstretch>0</horstretch>
<string>Size of directory/device/download list</string> <verstretch>0</verstretch>
</property> </sizepolicy>
<property name="wordWrap"> </property>
<bool>true</bool> <layout class="QFormLayout" name="formLayout">
</property> <item row="0" column="0">
</widget> <widget class="QLabel" name="sizeLabel">
</item> <property name="text">
<item row="2" column="0"> <string>Size of directory/device/download list</string>
<widget class="QLabel" name="colorsLabel"> </property>
<property name="text"> <property name="wordWrap">
<string>Colors</string> <bool>true</bool>
</property> </property>
</widget> </widget>
</item> </item>
<item row="2" column="1"> <item row="2" column="0">
<widget class="QCheckBox" name="brightTextColorsCheckBox"> <widget class="QLabel" name="colorsLabel">
<property name="text"> <property name="text">
<string>Bright custom text colors (use for dark color scheme)</string> <string>Colors</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="1"> <item row="2" column="1">
<layout class="QVBoxLayout" name="sizeVerticalLayout"> <widget class="QCheckBox" name="brightTextColorsCheckBox">
<property name="spacing"> <property name="text">
<number>2</number> <string>Bright custom text colors (use for dark color scheme)</string>
</property> </property>
<item> </widget>
<layout class="QHBoxLayout" name="sizeHorizontalLayout"> </item>
<item> <item row="0" column="1">
<widget class="QSpinBox" name="widthSpinBox"> <layout class="QVBoxLayout" name="sizeVerticalLayout">
<property name="minimum"> <property name="spacing">
<number>0</number> <number>2</number>
</property> </property>
<property name="maximum"> <item>
<number>1000</number> <layout class="QHBoxLayout" name="sizeHorizontalLayout">
</property> <item>
<property name="singleStep"> <widget class="QSpinBox" name="widthSpinBox">
<number>1</number> <property name="minimum">
</property> <number>0</number>
<property name="value"> </property>
<number>25</number> <property name="maximum">
</property> <number>1000</number>
</widget> </property>
</item> <property name="singleStep">
<item> <number>1</number>
<widget class="QLabel" name="sizeTimesLabel"> </property>
<property name="sizePolicy"> <property name="value">
<sizepolicy hsizetype="Fixed" vsizetype="Preferred"> <number>25</number>
<horstretch>0</horstretch> </property>
<verstretch>0</verstretch> </widget>
</sizepolicy> </item>
</property> <item>
<property name="text"> <widget class="QLabel" name="sizeTimesLabel">
<string> x </string> <property name="sizePolicy">
</property> <sizepolicy hsizetype="Fixed" vsizetype="Preferred">
<property name="textFormat"> <horstretch>0</horstretch>
<enum>Qt::PlainText</enum> <verstretch>0</verstretch>
</property> </sizepolicy>
</widget> </property>
</item> <property name="text">
<item> <string> x </string>
<widget class="QSpinBox" name="heightSpinBox"> </property>
<property name="minimum"> <property name="textFormat">
<number>0</number> <enum>Qt::PlainText</enum>
</property> </property>
<property name="maximum"> </widget>
<number>1000</number> </item>
</property> <item>
<property name="singleStep"> <widget class="QSpinBox" name="heightSpinBox">
<number>1</number> <property name="minimum">
</property> <number>0</number>
<property name="value"> </property>
<number>25</number> <property name="maximum">
</property> <number>1000</number>
</widget> </property>
</item> <property name="singleStep">
<item> <number>1</number>
<widget class="QLabel" name="sizePxLabel"> </property>
<property name="text"> <property name="value">
<string> grid units</string> <number>25</number>
</property> </property>
<property name="textFormat"> </widget>
<enum>Qt::PlainText</enum> </item>
</property> <item>
</widget> <widget class="QLabel" name="sizePxLabel">
</item> <property name="text">
</layout> <string> grid units</string>
</item> </property>
<item> <property name="textFormat">
<widget class="QLabel" name="sizeNoteLabel"> <enum>Qt::PlainText</enum>
<property name="sizePolicy"> </property>
<sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding"> </widget>
<horstretch>0</horstretch> </item>
<verstretch>0</verstretch> </layout>
</sizepolicy> </item>
</property> <item>
<property name="text"> <widget class="QLabel" name="sizeNoteLabel">
<string>Note that the size is ignored when the Plasmoid is displayed on the desktop or in full screen mode. When displayed as entry of the system tray Plasmoid the size can not be changed (setting a high value just leads to the contents being clipped).</string> <property name="sizePolicy">
</property> <sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
<property name="wordWrap"> <horstretch>0</horstretch>
<bool>true</bool> <verstretch>0</verstretch>
</property> </sizepolicy>
</widget> </property>
</item> <property name="text">
</layout> <string>Note that the size is ignored when the Plasmoid is displayed on the desktop or in full screen mode. When displayed as entry of the system tray Plasmoid the size can not be changed (setting a high value just leads to the contents being clipped).</string>
</item> </property>
<item row="3" column="0"> <property name="wordWrap">
<widget class="QLabel" name="passiveLabel"> <bool>true</bool>
<property name="text"> </property>
<string>States to enable passive mode</string> </widget>
</property> </item>
<property name="wordWrap"> </layout>
<bool>true</bool> </item>
</property> <item row="3" column="0">
</widget> <widget class="QLabel" name="passiveLabel">
</item> <property name="text">
<item row="3" column="1"> <string>States to enable passive mode</string>
<widget class="QListView" name="passiveListView"> </property>
<property name="selectionMode"> <property name="wordWrap">
<enum>QAbstractItemView::NoSelection</enum> <bool>true</bool>
</property> </property>
<property name="layoutMode"> </widget>
<enum>QListView::Batched</enum> </item>
</property> <item row="3" column="1">
</widget> <widget class="QListView" name="passiveListView">
</item> <property name="selectionMode">
</layout> <enum>QAbstractItemView::NoSelection</enum>
</property>
<property name="layoutMode">
<enum>QListView::Batched</enum>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item> </item>
</layout> </layout>
</widget> </widget>