diff options
author | Eike Ziller <eike.ziller@qt.io> | 2018-12-18 16:24:14 +0100 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2018-12-20 07:51:08 +0000 |
commit | e1a25c6923cc460403451aecdcf88aa0009d508b (patch) | |
tree | a4c695537a4035c3941da12700ef24feef5b4e91 | |
parent | b1aef444e234faa888e4a71731bf888281a62358 (diff) | |
download | qt-creator-e1a25c6923cc460403451aecdcf88aa0009d508b.tar.gz |
Color scheme: Reduce minimum size and add scroll area to details
First thing that should happen when reducing the size of the preferences
dialog is to add a vertical scroll bar to the color scheme details, not
to the whole settings page.
Change-Id: Ifaa6d21627f26ec1a6426cdae2477f6143454c57
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
-rw-r--r-- | src/plugins/texteditor/colorschemeedit.cpp | 2 | ||||
-rw-r--r-- | src/plugins/texteditor/colorschemeedit.ui | 1237 | ||||
-rw-r--r-- | src/plugins/texteditor/fontsettingspage.ui | 4 |
3 files changed, 647 insertions, 596 deletions
diff --git a/src/plugins/texteditor/colorschemeedit.cpp b/src/plugins/texteditor/colorschemeedit.cpp index 8049c191a3..ff5bc543cb 100644 --- a/src/plugins/texteditor/colorschemeedit.cpp +++ b/src/plugins/texteditor/colorschemeedit.cpp @@ -152,6 +152,8 @@ ColorSchemeEdit::ColorSchemeEdit(QWidget *parent) : { setContentsMargins(0, layoutSpacing, 0, 0); m_ui->setupUi(this); + m_ui->detailsScrollArea->viewport()->setAutoFillBackground(false); + m_ui->scrollAreaWidgetContents->setAutoFillBackground(false); m_ui->itemList->setModel(m_formatsModel); populateUnderlineStyleComboBox(); diff --git a/src/plugins/texteditor/colorschemeedit.ui b/src/plugins/texteditor/colorschemeedit.ui index fa31aa590d..e9bb34596b 100644 --- a/src/plugins/texteditor/colorschemeedit.ui +++ b/src/plugins/texteditor/colorschemeedit.ui @@ -7,10 +7,10 @@ <x>0</x> <y>0</y> <width>462</width> - <height>389</height> + <height>416</height> </rect> </property> - <layout class="QGridLayout" name="gridLayout" columnstretch="1,0,0,0"> + <layout class="QHBoxLayout" name="horizontalLayout"> <property name="leftMargin"> <number>0</number> </property> @@ -23,296 +23,11 @@ <property name="bottomMargin"> <number>0</number> </property> - <property name="verticalSpacing"> - <number>0</number> - </property> - <item row="5" column="1" colspan="3"> - <widget class="QLabel" name="relativeForegroundHeadline"> - <property name="font"> - <font> - <weight>75</weight> - <bold>true</bold> - </font> - </property> - <property name="text"> - <string>Relative Foreground</string> - </property> - </widget> - </item> - <item row="0" column="1"> - <widget class="QLabel" name="foregroundLabel"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Preferred"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string>Foreground:</string> - </property> - <property name="buddy"> - <cstring>foregroundToolButton</cstring> - </property> - </widget> - </item> - <item row="10" column="1" colspan="3"> - <widget class="QWidget" name="relativeForegroundSpacer3" native="true"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>0</width> - <height>18</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>16777215</width> - <height>18</height> - </size> - </property> - </widget> - </item> - <item row="9" column="1"> - <widget class="QLabel" name="foregroundLightnessLabel"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string>Lightness:</string> - </property> - </widget> - </item> - <item row="0" column="2"> - <widget class="QToolButton" name="foregroundToolButton"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string/> - </property> - </widget> - </item> - <item row="26" column="1" colspan="3"> - <spacer name="spacer"> - <property name="orientation"> - <enum>Qt::Vertical</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>200</width> - <height>0</height> - </size> - </property> - </spacer> - </item> - <item row="3" column="3"> - <widget class="QToolButton" name="eraseBackgroundToolButton"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="toolTip"> - <string>Erase background.</string> - </property> - <property name="text"> - <string>x</string> - </property> - <property name="arrowType"> - <enum>Qt::LeftArrow</enum> - </property> - </widget> - </item> - <item row="14" column="1" colspan="3"> - <widget class="QWidget" name="relativeBackgroundSpacer2" native="true"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>0</width> - <height>6</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>16777215</width> - <height>6</height> - </size> - </property> - </widget> - </item> - <item row="7" column="2" colspan="2"> - <widget class="QDoubleSpinBox" name="foregroundSaturationSpinBox"> - <property name="minimum"> - <double>-1.000000000000000</double> - </property> - <property name="maximum"> - <double>1.000000000000000</double> - </property> - <property name="singleStep"> - <double>0.050000000000000</double> - </property> - </widget> - </item> - <item row="15" column="1"> - <widget class="QLabel" name="backgroundLightnessLabel"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string>Lightness:</string> - </property> - </widget> - </item> - <item row="0" column="3"> - <widget class="QToolButton" name="eraseForegroundToolButton"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="toolTip"> - <string>Erase foreground.</string> - </property> - <property name="text"> - <string>x</string> - </property> - <property name="arrowType"> - <enum>Qt::LeftArrow</enum> - </property> - </widget> - </item> - <item row="13" column="1"> - <widget class="QLabel" name="backgroundSaturationLabel"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string>Saturation:</string> - </property> - </widget> - </item> - <item row="19" column="2" colspan="2"> - <widget class="QCheckBox" name="italicCheckBox"> - <property name="text"> - <string>Italic</string> - </property> - </widget> - </item> - <item row="9" column="2" colspan="2"> - <widget class="QDoubleSpinBox" name="foregroundLightnessSpinBox"> - <property name="minimum"> - <double>-1.000000000000000</double> - </property> - <property name="maximum"> - <double>1.000000000000000</double> - </property> - <property name="singleStep"> - <double>0.050000000000000</double> - </property> - </widget> - </item> - <item row="6" column="1" colspan="3"> - <widget class="QWidget" name="relativeForegroundSpacer1" native="true"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>0</width> - <height>6</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>16777215</width> - <height>6</height> - </size> - </property> - </widget> - </item> - <item row="13" column="2" colspan="2"> - <widget class="QDoubleSpinBox" name="backgroundSaturationSpinBox"> - <property name="minimum"> - <double>-1.000000000000000</double> - </property> - <property name="maximum"> - <double>1.000000000000000</double> - </property> - <property name="singleStep"> - <double>0.050000000000000</double> - </property> - </widget> - </item> - <item row="3" column="1"> - <widget class="QLabel" name="backgroundLabel"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Preferred"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string>Background:</string> - </property> - <property name="buddy"> - <cstring>backgroundToolButton</cstring> - </property> - </widget> - </item> - <item row="4" column="1" colspan="3"> - <widget class="QWidget" name="backgroundSpacer" native="true"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>0</width> - <height>18</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>16777215</width> - <height>18</height> - </size> - </property> - </widget> - </item> - <item row="0" column="0" rowspan="27"> + <item> <widget class="QListView" name="itemList"> <property name="sizePolicy"> <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> - <horstretch>1</horstretch> + <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> @@ -324,316 +39,650 @@ </property> </widget> </item> - <item row="17" column="1"> - <widget class="QLabel" name="fontHeadline"> - <property name="font"> - <font> - <weight>75</weight> - <bold>true</bold> - </font> - </property> - <property name="text"> - <string>Font</string> - </property> - </widget> - </item> - <item row="7" column="1"> - <widget class="QLabel" name="foregroundSaturationLabel"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string>Saturation:</string> - </property> - </widget> - </item> - <item row="19" column="1"> - <widget class="QCheckBox" name="boldCheckBox"> - <property name="text"> - <string>Bold</string> - </property> - </widget> - </item> - <item row="18" column="1" colspan="3"> - <widget class="QWidget" name="fontSpacer1" native="true"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>0</width> - <height>6</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>16777215</width> - <height>6</height> - </size> - </property> - </widget> - </item> - <item row="12" column="1" colspan="3"> - <widget class="QWidget" name="relativeBackgroundSpacer1" native="true"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>0</width> - <height>6</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>16777215</width> - <height>6</height> - </size> - </property> - </widget> - </item> - <item row="16" column="1" colspan="3"> - <widget class="QWidget" name="relativeBackgroundSpacer3" native="true"> + <item> + <widget class="QScrollArea" name="detailsScrollArea"> <property name="sizePolicy"> - <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> + <sizepolicy hsizetype="Fixed" vsizetype="Expanding"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> - <property name="minimumSize"> - <size> - <width>0</width> - <height>18</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>16777215</width> - <height>18</height> - </size> - </property> - </widget> - </item> - <item row="24" column="1" colspan="3"> - <widget class="QWidget" name="underlineSpacer2" native="true"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>0</width> - <height>6</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>16777215</width> - <height>6</height> - </size> - </property> - </widget> - </item> - <item row="22" column="1" colspan="3"> - <widget class="QWidget" name="underlineSpacer1" native="true"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>0</width> - <height>6</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>16777215</width> - <height>6</height> - </size> - </property> - </widget> - </item> - <item row="23" column="2"> - <widget class="QToolButton" name="underlineColorToolButton"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string/> - </property> - </widget> - </item> - <item row="21" column="1"> - <widget class="QLabel" name="underlineHeadline"> - <property name="font"> - <font> - <weight>75</weight> - <bold>true</bold> - </font> - </property> - <property name="text"> - <string>Underline</string> - </property> - </widget> - </item> - <item row="23" column="1"> - <widget class="QLabel" name="underlineLabel"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Preferred"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string>Color:</string> - </property> - <property name="buddy"> - <cstring>backgroundToolButton</cstring> - </property> - </widget> - </item> - <item row="11" column="1" colspan="3"> - <widget class="QLabel" name="relativeBackgroundHeadline"> - <property name="font"> - <font> - <weight>75</weight> - <bold>true</bold> - </font> - </property> - <property name="text"> - <string>Relative Background</string> - </property> - </widget> - </item> - <item row="20" column="1" colspan="3"> - <widget class="QWidget" name="fontSpacer2" native="true"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>0</width> - <height>18</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>16777215</width> - <height>18</height> - </size> - </property> - </widget> - </item> - <item row="15" column="2" colspan="2"> - <widget class="QDoubleSpinBox" name="backgroundLightnessSpinBox"> - <property name="minimum"> - <double>-1.000000000000000</double> - </property> - <property name="maximum"> - <double>1.000000000000000</double> - </property> - <property name="singleStep"> - <double>0.050000000000000</double> - </property> - </widget> - </item> - <item row="3" column="2"> - <widget class="QToolButton" name="backgroundToolButton"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string/> - </property> - </widget> - </item> - <item row="23" column="3"> - <widget class="QToolButton" name="eraseUnderlineColorToolButton"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="toolTip"> - <string>Erase background.</string> - </property> - <property name="text"> - <string>x</string> - </property> - <property name="arrowType"> - <enum>Qt::LeftArrow</enum> - </property> - </widget> - </item> - <item row="25" column="1" colspan="3"> - <widget class="QComboBox" name="underlineComboBox"/> - </item> - <item row="8" column="1" colspan="3"> - <widget class="QWidget" name="relativeForegroundSpacer2" native="true"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>0</width> - <height>6</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>16777215</width> - <height>6</height> - </size> - </property> - </widget> - </item> - <item row="2" column="1" colspan="3"> - <widget class="QWidget" name="foregroundSpacer" native="true"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>0</width> - <height>6</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>16777215</width> - <height>6</height> - </size> - </property> + <property name="frameShape"> + <enum>QFrame::NoFrame</enum> + </property> + <property name="frameShadow"> + <enum>QFrame::Plain</enum> + </property> + <property name="horizontalScrollBarPolicy"> + <enum>Qt::ScrollBarAlwaysOff</enum> + </property> + <property name="sizeAdjustPolicy"> + <enum>QAbstractScrollArea::AdjustToContents</enum> + </property> + <widget class="QWidget" name="scrollAreaWidgetContents"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>212</width> + <height>390</height> + </rect> + </property> + <layout class="QGridLayout" name="gridLayout" columnstretch="1,0,0"> + <property name="sizeConstraint"> + <enum>QLayout::SetFixedSize</enum> + </property> + <property name="leftMargin"> + <number>0</number> + </property> + <property name="topMargin"> + <number>0</number> + </property> + <property name="rightMargin"> + <number>20</number> + </property> + <property name="bottomMargin"> + <number>0</number> + </property> + <property name="verticalSpacing"> + <number>0</number> + </property> + <item row="5" column="0" colspan="3"> + <widget class="QLabel" name="relativeForegroundHeadline"> + <property name="font"> + <font> + <weight>75</weight> + <bold>true</bold> + </font> + </property> + <property name="text"> + <string>Relative Foreground</string> + </property> + </widget> + </item> + <item row="0" column="0"> + <widget class="QLabel" name="foregroundLabel"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Preferred"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Foreground:</string> + </property> + <property name="buddy"> + <cstring>foregroundToolButton</cstring> + </property> + </widget> + </item> + <item row="10" column="0" colspan="3"> + <widget class="QWidget" name="relativeForegroundSpacer3" native="true"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>0</width> + <height>18</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>16777215</width> + <height>18</height> + </size> + </property> + </widget> + </item> + <item row="9" column="0"> + <widget class="QLabel" name="foregroundLightnessLabel"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Lightness:</string> + </property> + </widget> + </item> + <item row="0" column="1"> + <widget class="QToolButton" name="foregroundToolButton"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string/> + </property> + </widget> + </item> + <item row="26" column="0" colspan="3"> + <spacer name="spacer"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>200</width> + <height>0</height> + </size> + </property> + </spacer> + </item> + <item row="3" column="2"> + <widget class="QToolButton" name="eraseBackgroundToolButton"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="toolTip"> + <string>Erase background.</string> + </property> + <property name="text"> + <string>x</string> + </property> + <property name="arrowType"> + <enum>Qt::LeftArrow</enum> + </property> + </widget> + </item> + <item row="14" column="0" colspan="3"> + <widget class="QWidget" name="relativeBackgroundSpacer2" native="true"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>0</width> + <height>6</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>16777215</width> + <height>6</height> + </size> + </property> + </widget> + </item> + <item row="7" column="1" colspan="2"> + <widget class="QDoubleSpinBox" name="foregroundSaturationSpinBox"> + <property name="minimum"> + <double>-1.000000000000000</double> + </property> + <property name="maximum"> + <double>1.000000000000000</double> + </property> + <property name="singleStep"> + <double>0.050000000000000</double> + </property> + </widget> + </item> + <item row="15" column="0"> + <widget class="QLabel" name="backgroundLightnessLabel"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Lightness:</string> + </property> + </widget> + </item> + <item row="0" column="2"> + <widget class="QToolButton" name="eraseForegroundToolButton"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="toolTip"> + <string>Erase foreground.</string> + </property> + <property name="text"> + <string>x</string> + </property> + <property name="arrowType"> + <enum>Qt::LeftArrow</enum> + </property> + </widget> + </item> + <item row="13" column="0"> + <widget class="QLabel" name="backgroundSaturationLabel"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Saturation:</string> + </property> + </widget> + </item> + <item row="19" column="1" colspan="2"> + <widget class="QCheckBox" name="italicCheckBox"> + <property name="text"> + <string>Italic</string> + </property> + </widget> + </item> + <item row="9" column="1" colspan="2"> + <widget class="QDoubleSpinBox" name="foregroundLightnessSpinBox"> + <property name="minimum"> + <double>-1.000000000000000</double> + </property> + <property name="maximum"> + <double>1.000000000000000</double> + </property> + <property name="singleStep"> + <double>0.050000000000000</double> + </property> + </widget> + </item> + <item row="6" column="0" colspan="3"> + <widget class="QWidget" name="relativeForegroundSpacer1" native="true"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>0</width> + <height>6</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>16777215</width> + <height>6</height> + </size> + </property> + </widget> + </item> + <item row="13" column="1" colspan="2"> + <widget class="QDoubleSpinBox" name="backgroundSaturationSpinBox"> + <property name="minimum"> + <double>-1.000000000000000</double> + </property> + <property name="maximum"> + <double>1.000000000000000</double> + </property> + <property name="singleStep"> + <double>0.050000000000000</double> + </property> + </widget> + </item> + <item row="3" column="0"> + <widget class="QLabel" name="backgroundLabel"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Preferred"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Background:</string> + </property> + <property name="buddy"> + <cstring>backgroundToolButton</cstring> + </property> + </widget> + </item> + <item row="4" column="0" colspan="3"> + <widget class="QWidget" name="backgroundSpacer" native="true"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>0</width> + <height>18</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>16777215</width> + <height>18</height> + </size> + </property> + </widget> + </item> + <item row="17" column="0"> + <widget class="QLabel" name="fontHeadline"> + <property name="font"> + <font> + <weight>75</weight> + <bold>true</bold> + </font> + </property> + <property name="text"> + <string>Font</string> + </property> + </widget> + </item> + <item row="7" column="0"> + <widget class="QLabel" name="foregroundSaturationLabel"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Saturation:</string> + </property> + </widget> + </item> + <item row="19" column="0"> + <widget class="QCheckBox" name="boldCheckBox"> + <property name="text"> + <string>Bold</string> + </property> + </widget> + </item> + <item row="18" column="0" colspan="3"> + <widget class="QWidget" name="fontSpacer1" native="true"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>0</width> + <height>6</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>16777215</width> + <height>6</height> + </size> + </property> + </widget> + </item> + <item row="12" column="0" colspan="3"> + <widget class="QWidget" name="relativeBackgroundSpacer1" native="true"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>0</width> + <height>6</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>16777215</width> + <height>6</height> + </size> + </property> + </widget> + </item> + <item row="16" column="0" colspan="3"> + <widget class="QWidget" name="relativeBackgroundSpacer3" native="true"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>0</width> + <height>18</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>16777215</width> + <height>18</height> + </size> + </property> + </widget> + </item> + <item row="24" column="0" colspan="3"> + <widget class="QWidget" name="underlineSpacer2" native="true"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>0</width> + <height>6</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>16777215</width> + <height>6</height> + </size> + </property> + </widget> + </item> + <item row="22" column="0" colspan="3"> + <widget class="QWidget" name="underlineSpacer1" native="true"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>0</width> + <height>6</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>16777215</width> + <height>6</height> + </size> + </property> + </widget> + </item> + <item row="23" column="1"> + <widget class="QToolButton" name="underlineColorToolButton"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string/> + </property> + </widget> + </item> + <item row="21" column="0"> + <widget class="QLabel" name="underlineHeadline"> + <property name="font"> + <font> + <weight>75</weight> + <bold>true</bold> + </font> + </property> + <property name="text"> + <string>Underline</string> + </property> + </widget> + </item> + <item row="23" column="0"> + <widget class="QLabel" name="underlineLabel"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Preferred"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Color:</string> + </property> + <property name="buddy"> + <cstring>backgroundToolButton</cstring> + </property> + </widget> + </item> + <item row="11" column="0" colspan="3"> + <widget class="QLabel" name="relativeBackgroundHeadline"> + <property name="font"> + <font> + <weight>75</weight> + <bold>true</bold> + </font> + </property> + <property name="text"> + <string>Relative Background</string> + </property> + </widget> + </item> + <item row="20" column="0" colspan="3"> + <widget class="QWidget" name="fontSpacer2" native="true"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>0</width> + <height>18</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>16777215</width> + <height>18</height> + </size> + </property> + </widget> + </item> + <item row="15" column="1" colspan="2"> + <widget class="QDoubleSpinBox" name="backgroundLightnessSpinBox"> + <property name="minimum"> + <double>-1.000000000000000</double> + </property> + <property name="maximum"> + <double>1.000000000000000</double> + </property> + <property name="singleStep"> + <double>0.050000000000000</double> + </property> + </widget> + </item> + <item row="3" column="1"> + <widget class="QToolButton" name="backgroundToolButton"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string/> + </property> + </widget> + </item> + <item row="23" column="2"> + <widget class="QToolButton" name="eraseUnderlineColorToolButton"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="toolTip"> + <string>Erase background.</string> + </property> + <property name="text"> + <string>x</string> + </property> + <property name="arrowType"> + <enum>Qt::LeftArrow</enum> + </property> + </widget> + </item> + <item row="25" column="0" colspan="3"> + <widget class="QComboBox" name="underlineComboBox"/> + </item> + <item row="8" column="0" colspan="3"> + <widget class="QWidget" name="relativeForegroundSpacer2" native="true"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>0</width> + <height>6</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>16777215</width> + <height>6</height> + </size> + </property> + </widget> + </item> + <item row="2" column="0" colspan="3"> + <widget class="QWidget" name="foregroundSpacer" native="true"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>0</width> + <height>6</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>16777215</width> + <height>6</height> + </size> + </property> + </widget> + </item> + </layout> + </widget> </widget> </item> </layout> diff --git a/src/plugins/texteditor/fontsettingspage.ui b/src/plugins/texteditor/fontsettingspage.ui index c47c4eb940..8c3a0baa50 100644 --- a/src/plugins/texteditor/fontsettingspage.ui +++ b/src/plugins/texteditor/fontsettingspage.ui @@ -6,7 +6,7 @@ <rect> <x>0</x> <y>0</y> - <width>614</width> + <width>639</width> <height>306</height> </rect> </property> @@ -173,7 +173,7 @@ <item row="1" column="0" colspan="3"> <widget class="TextEditor::Internal::ColorSchemeEdit" name="schemeEdit" native="true"> <property name="sizePolicy"> - <sizepolicy hsizetype="Preferred" vsizetype="MinimumExpanding"> + <sizepolicy hsizetype="Preferred" vsizetype="Expanding"> <horstretch>0</horstretch> <verstretch>1</verstretch> </sizepolicy> |