detailsdialog:provide customSchemeComboBox

pull/22/head
Michail Vourlakos 4 years ago
parent a9d0443489
commit 2be506912f

@ -102,7 +102,7 @@ void DetailsDialog::onReset()
void DetailsDialog::loadConfig()
{
m_windowSize = m_storage.readEntry("windowSize", QSize(535, 630));
m_windowSize = m_storage.readEntry("windowSize", QSize(560, 640));
}
void DetailsDialog::saveConfig()

@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>580</width>
<height>619</height>
<width>582</width>
<height>646</height>
</rect>
</property>
<property name="windowTitle">
@ -35,40 +35,39 @@
<item>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<layout class="QGridLayout" name="gridLayout" columnstretch="5,0,9">
<item row="4" column="2">
<spacer name="verticalSpacer_3">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>15</width>
<height>20</height>
</size>
</property>
</spacer>
<layout class="QGridLayout" name="gridLayout" columnstretch="5,0,0">
<item row="19" column="0">
<layout class="QHBoxLayout" name="horizontalLayout_5">
<item>
<spacer name="horizontalSpacer_5">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="behaviorLbl">
<property name="text">
<string>Behavior:</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="12" column="2">
<spacer name="verticalSpacer_4">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>15</width>
<height>20</height>
</size>
<item row="20" column="1" colspan="2">
<widget class="QCheckBox" name="borderlessChk">
<property name="text">
<string>Hide window borders for maximized windows</string>
</property>
</spacer>
</widget>
</item>
<item row="10" column="2">
<item row="12" column="2">
<layout class="QHBoxLayout" name="backgroundOptLayout">
<item>
<widget class="Latte::Settings::Widget::PatternWidget" name="backPatternWidget" native="true">
@ -95,26 +94,10 @@
</item>
</layout>
</item>
<item row="15" column="2">
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>15</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="1" column="0">
<layout class="QHBoxLayout" name="horizontalLayout_7">
<item row="3" column="0">
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
<spacer name="horizontalSpacer_11">
<spacer name="horizontalSpacer_3">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
@ -127,55 +110,14 @@
</spacer>
</item>
<item>
<widget class="QLabel" name="layoutLbl">
<widget class="QLabel" name="iconLbl">
<property name="text">
<string>Layout:</string>
<string>Icon:</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="8" column="2">
<spacer name="verticalSpacer_5">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>10</height>
</size>
</property>
</spacer>
</item>
<item row="5" column="1">
<widget class="QRadioButton" name="colorRadioBtn">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
<property name="text">
<string notr="true"/>
</property>
</widget>
</item>
<item row="1" column="2">
<layout class="QHBoxLayout" name="horizontalLayout_9">
<item>
@ -203,6 +145,19 @@
</item>
</layout>
</item>
<item row="19" column="1" colspan="2">
<widget class="QCheckBox" name="inMenuChk">
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>Show in layouts context menu when possible</string>
</property>
</widget>
</item>
<item row="2" column="2">
<spacer name="verticalSpacer_6">
<property name="orientation">
@ -219,20 +174,74 @@
</property>
</spacer>
</item>
<item row="5" column="2">
<layout class="QHBoxLayout" name="colorsOptLayout">
<item row="15" column="0">
<layout class="QHBoxLayout" name="horizontalLayout_8">
<item>
<widget class="Latte::Settings::Widget::PatternWidget" name="colorPatternWidget" native="true">
<property name="minimumSize">
<size>
<width>358</width>
<height>60</height>
</size>
<widget class="QLabel" name="popUpMarginLbl">
<property name="text">
<string>PopUp Margin:</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="13" column="2">
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<spacer name="horizontalSpacer_6">
<layout class="QHBoxLayout" name="horizontalLayout_6">
<item>
<widget class="QPushButton" name="backgroundBtn">
<property name="minimumSize">
<size>
<width>157</width>
<height>0</height>
</size>
</property>
<property name="text">
<string>Background...</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="textColorBtn">
<property name="minimumSize">
<size>
<width>157</width>
<height>0</height>
</size>
</property>
<property name="text">
<string>Text Color...</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="patternClearBtn">
<property name="minimumSize">
<size>
<width>30</width>
<height>5</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>30</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset theme="edit-clear">
<normaloff>.</normaloff>.</iconset>
</property>
</widget>
</item>
</layout>
</item>
<item>
<spacer name="horizontalSpacer_9">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
@ -246,14 +255,46 @@
</item>
</layout>
</item>
<item row="18" column="1" colspan="2">
<widget class="QCheckBox" name="borderlessChk">
<item row="6" column="2">
<spacer name="verticalSpacer_8">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>15</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="20" column="0">
<widget class="QLabel" name="behaviorSecRowLbl">
<property name="text">
<string>Hide window borders for maximized windows</string>
<string notr="true"/>
</property>
</widget>
</item>
<item row="7" column="2">
<item row="4" column="2">
<spacer name="verticalSpacer_3">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>15</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="9" column="2">
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QComboBox" name="colorsCmb">
@ -280,10 +321,20 @@
</item>
</layout>
</item>
<item row="17" column="0">
<layout class="QHBoxLayout" name="horizontalLayout_5">
<item row="5" column="2">
<layout class="QHBoxLayout" name="horizontalLayout_11">
<item>
<spacer name="horizontalSpacer_5">
<widget class="QComboBox" name="customSchemeCmb">
<property name="minimumSize">
<size>
<width>358</width>
<height>0</height>
</size>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_15">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
@ -295,185 +346,31 @@
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="behaviorLbl">
<property name="text">
<string>Behavior:</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="17" column="1" colspan="2">
<widget class="QCheckBox" name="inMenuChk">
<item row="12" column="1">
<widget class="QRadioButton" name="backRadioBtn">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
<width>20</width>
<height>20</height>
</size>
</property>
<property name="text">
<string>Show in layouts context menu when possible</string>
</property>
</widget>
</item>
<item row="3" column="2">
<layout class="QHBoxLayout" name="iconHorLayout">
<item>
<widget class="QPushButton" name="iconBtn">
<property name="minimumSize">
<size>
<width>40</width>
<height>40</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>40</width>
<height>40</height>
</size>
</property>
<property name="text">
<string notr="true"/>
</property>
<property name="icon">
<iconset theme="add">
<normaloff>.</normaloff>.</iconset>
</property>
<property name="iconSize">
<size>
<width>32</width>
<height>32</height>
</size>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="iconClearBtn">
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>30</width>
<height>50</height>
</size>
</property>
<property name="text">
<string notr="true"/>
</property>
<property name="icon">
<iconset theme="edit-clear">
<normaloff>.</normaloff>.</iconset>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_8">
<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 row="10" column="0">
<widget class="QLabel" name="backSecondRowLbl">
<property name="text">
<string notr="true"/>
</property>
</widget>
</item>
<item row="18" column="0">
<widget class="QLabel" name="behaviorSecRowLbl">
<property name="text">
<string notr="true"/>
</property>
</widget>
</item>
<item row="11" column="2">
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<layout class="QHBoxLayout" name="horizontalLayout_6">
<item>
<widget class="QPushButton" name="backgroundBtn">
<property name="minimumSize">
<size>
<width>157</width>
<height>0</height>
</size>
</property>
<property name="text">
<string>Background...</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="textColorBtn">
<property name="minimumSize">
<size>
<width>157</width>
<height>0</height>
</size>
</property>
<property name="text">
<string>Text Color...</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="patternClearBtn">
<property name="minimumSize">
<size>
<width>30</width>
<height>5</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>30</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset theme="edit-clear">
<normaloff>.</normaloff>.</iconset>
</property>
</widget>
</item>
</layout>
</item>
<item>
<spacer name="horizontalSpacer_9">
<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 row="3" column="0">
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item row="1" column="0">
<layout class="QHBoxLayout" name="horizontalLayout_7">
<item>
<spacer name="horizontalSpacer_3">
<spacer name="horizontalSpacer_11">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
@ -486,15 +383,15 @@
</spacer>
</item>
<item>
<widget class="QLabel" name="iconLbl">
<widget class="QLabel" name="layoutLbl">
<property name="text">
<string>Icon:</string>
<string>Layout:</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="5" column="0">
<item row="7" column="0">
<layout class="QHBoxLayout" name="horizontalLayout_4">
<item>
<spacer name="horizontalSpacer_4">
@ -524,14 +421,52 @@
</item>
</layout>
</item>
<item row="10" column="1">
<widget class="QRadioButton" name="backRadioBtn">
<item row="14" column="2">
<spacer name="verticalSpacer_4">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>15</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="10" column="2">
<spacer name="verticalSpacer_5">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>10</height>
</size>
</property>
</spacer>
</item>
<item row="7" column="1">
<widget class="QRadioButton" name="colorRadioBtn">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>20</width>
@ -543,31 +478,7 @@
</property>
</widget>
</item>
<item row="13" column="0">
<layout class="QHBoxLayout" name="horizontalLayout_8">
<item>
<spacer name="horizontalSpacer_13">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="popUpMarginLbl">
<property name="text">
<string>PopUp Margin:</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="13" column="2">
<item row="15" column="2">
<layout class="QHBoxLayout" name="horizontalLayout_10">
<item>
<widget class="QSpinBox" name="popUpMarginSpinBox">
@ -627,6 +538,149 @@
</item>
</layout>
</item>
<item row="17" column="2">
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>15</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="7" column="2">
<layout class="QHBoxLayout" name="colorsOptLayout">
<item>
<widget class="Latte::Settings::Widget::PatternWidget" name="colorPatternWidget" native="true">
<property name="minimumSize">
<size>
<width>358</width>
<height>60</height>
</size>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_6">
<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 row="3" column="2">
<layout class="QHBoxLayout" name="iconHorLayout">
<item>
<widget class="QPushButton" name="iconBtn">
<property name="minimumSize">
<size>
<width>40</width>
<height>40</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>40</width>
<height>40</height>
</size>
</property>
<property name="text">
<string notr="true"/>
</property>
<property name="icon">
<iconset theme="add">
<normaloff>.</normaloff>.</iconset>
</property>
<property name="iconSize">
<size>
<width>32</width>
<height>32</height>
</size>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="iconClearBtn">
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>30</width>
<height>50</height>
</size>
</property>
<property name="text">
<string notr="true"/>
</property>
<property name="icon">
<iconset theme="edit-clear">
<normaloff>.</normaloff>.</iconset>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_8">
<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 row="12" column="0">
<widget class="QLabel" name="backSecondRowLbl">
<property name="text">
<string notr="true"/>
</property>
</widget>
</item>
<item row="5" column="0">
<layout class="QHBoxLayout" name="horizontalLayout_13">
<item>
<spacer name="horizontalSpacer_13">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="customSchemeLbl">
<property name="text">
<string>Custom Colors:</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item>
</layout>

Loading…
Cancel
Save