forked from qt-creator/qt-creator
TextEditor: Hide controls in scheme editor for builtin schemes
Show a label instead with a link that copies the current color scheme. Fixes: QTCREATORBUG-21874 Change-Id: I74083bac8d7124341b4b63d8e172172235c5e184 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -155,6 +155,7 @@ ColorSchemeEdit::ColorSchemeEdit(QWidget *parent) :
|
|||||||
m_ui->detailsScrollArea->viewport()->setAutoFillBackground(false);
|
m_ui->detailsScrollArea->viewport()->setAutoFillBackground(false);
|
||||||
m_ui->scrollAreaWidgetContents->setAutoFillBackground(false);
|
m_ui->scrollAreaWidgetContents->setAutoFillBackground(false);
|
||||||
m_ui->itemList->setModel(m_formatsModel);
|
m_ui->itemList->setModel(m_formatsModel);
|
||||||
|
m_ui->builtinSchemeLabel->setVisible(m_readOnly);
|
||||||
|
|
||||||
populateUnderlineStyleComboBox();
|
populateUnderlineStyleComboBox();
|
||||||
|
|
||||||
@@ -186,6 +187,7 @@ ColorSchemeEdit::ColorSchemeEdit(QWidget *parent) :
|
|||||||
this, &ColorSchemeEdit::eraseUnderlineColor);
|
this, &ColorSchemeEdit::eraseUnderlineColor);
|
||||||
connect(m_ui->underlineComboBox, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged),
|
connect(m_ui->underlineComboBox, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged),
|
||||||
this, &ColorSchemeEdit::changeUnderlineStyle);
|
this, &ColorSchemeEdit::changeUnderlineStyle);
|
||||||
|
connect(m_ui->builtinSchemeLabel, &QLabel::linkActivated, this, &ColorSchemeEdit::copyScheme);
|
||||||
}
|
}
|
||||||
|
|
||||||
ColorSchemeEdit::~ColorSchemeEdit()
|
ColorSchemeEdit::~ColorSchemeEdit()
|
||||||
@@ -214,31 +216,9 @@ void ColorSchemeEdit::setReadOnly(bool readOnly)
|
|||||||
|
|
||||||
m_readOnly = readOnly;
|
m_readOnly = readOnly;
|
||||||
|
|
||||||
const bool enabled = !readOnly;
|
m_ui->detailsScrollArea->setVisible(!readOnly);
|
||||||
m_ui->foregroundLabel->setEnabled(enabled);
|
m_ui->builtinSchemeLabel->setVisible(readOnly);
|
||||||
m_ui->foregroundToolButton->setEnabled(enabled);
|
updateControls();
|
||||||
m_ui->backgroundLabel->setEnabled(enabled);
|
|
||||||
m_ui->backgroundToolButton->setEnabled(enabled);
|
|
||||||
m_ui->eraseBackgroundToolButton->setEnabled(enabled);
|
|
||||||
m_ui->eraseForegroundToolButton->setEnabled(enabled);
|
|
||||||
m_ui->relativeForegroundHeadline->setEnabled(enabled);
|
|
||||||
m_ui->foregroundSaturationLabel->setEnabled(enabled);
|
|
||||||
m_ui->foregroundLightnessLabel->setEnabled(enabled);
|
|
||||||
m_ui->foregroundSaturationSpinBox->setEnabled(enabled);
|
|
||||||
m_ui->foregroundLightnessSpinBox->setEnabled(enabled);
|
|
||||||
m_ui->relativeBackgroundHeadline->setEnabled(enabled);
|
|
||||||
m_ui->backgroundSaturationLabel->setEnabled(enabled);
|
|
||||||
m_ui->backgroundLightnessLabel->setEnabled(enabled);
|
|
||||||
m_ui->backgroundSaturationSpinBox->setEnabled(enabled);
|
|
||||||
m_ui->backgroundLightnessSpinBox->setEnabled(enabled);
|
|
||||||
m_ui->fontHeadline->setEnabled(enabled);
|
|
||||||
m_ui->boldCheckBox->setEnabled(enabled);
|
|
||||||
m_ui->italicCheckBox->setEnabled(enabled);
|
|
||||||
m_ui->underlineHeadline->setEnabled(enabled);
|
|
||||||
m_ui->underlineLabel->setEnabled(enabled);
|
|
||||||
m_ui->underlineColorToolButton->setEnabled(enabled);
|
|
||||||
m_ui->eraseUnderlineColorToolButton->setEnabled(enabled);
|
|
||||||
m_ui->underlineComboBox->setEnabled(enabled);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ColorSchemeEdit::setColorScheme(const ColorScheme &colorScheme)
|
void ColorSchemeEdit::setColorScheme(const ColorScheme &colorScheme)
|
||||||
@@ -278,7 +258,8 @@ void ColorSchemeEdit::updateForegroundControls()
|
|||||||
const auto &formatDescription = m_descriptions[m_curItem];
|
const auto &formatDescription = m_descriptions[m_curItem];
|
||||||
const Format &format = m_scheme.formatFor(formatDescription.id());
|
const Format &format = m_scheme.formatFor(formatDescription.id());
|
||||||
|
|
||||||
bool isVisible = formatDescription.showControl(FormatDescription::ShowForegroundControl);
|
bool isVisible = !m_readOnly
|
||||||
|
&& formatDescription.showControl(FormatDescription::ShowForegroundControl);
|
||||||
|
|
||||||
m_ui->relativeForegroundHeadline->setEnabled(isVisible);
|
m_ui->relativeForegroundHeadline->setEnabled(isVisible);
|
||||||
m_ui->foregroundLabel->setVisible(isVisible);
|
m_ui->foregroundLabel->setVisible(isVisible);
|
||||||
@@ -297,7 +278,8 @@ void ColorSchemeEdit::updateBackgroundControls()
|
|||||||
const auto formatDescription = m_descriptions[m_curItem];
|
const auto formatDescription = m_descriptions[m_curItem];
|
||||||
const Format &format = m_scheme.formatFor(formatDescription.id());
|
const Format &format = m_scheme.formatFor(formatDescription.id());
|
||||||
|
|
||||||
bool isVisible = formatDescription.showControl(FormatDescription::ShowBackgroundControl);
|
bool isVisible = !m_readOnly
|
||||||
|
&& formatDescription.showControl(FormatDescription::ShowBackgroundControl);
|
||||||
|
|
||||||
m_ui->relativeBackgroundHeadline->setVisible(isVisible);
|
m_ui->relativeBackgroundHeadline->setVisible(isVisible);
|
||||||
m_ui->backgroundLabel->setVisible(isVisible);
|
m_ui->backgroundLabel->setVisible(isVisible);
|
||||||
@@ -319,7 +301,8 @@ void ColorSchemeEdit::updateRelativeForegroundControls()
|
|||||||
QSignalBlocker saturationSignalBlocker(m_ui->foregroundSaturationSpinBox);
|
QSignalBlocker saturationSignalBlocker(m_ui->foregroundSaturationSpinBox);
|
||||||
QSignalBlocker lightnessSignalBlocker(m_ui->foregroundLightnessSpinBox);
|
QSignalBlocker lightnessSignalBlocker(m_ui->foregroundLightnessSpinBox);
|
||||||
|
|
||||||
bool isVisible = formatDescription.showControl(FormatDescription::ShowRelativeForegroundControl);
|
bool isVisible = !m_readOnly
|
||||||
|
&& formatDescription.showControl(FormatDescription::ShowRelativeForegroundControl);
|
||||||
|
|
||||||
m_ui->relativeForegroundHeadline->setVisible(isVisible);
|
m_ui->relativeForegroundHeadline->setVisible(isVisible);
|
||||||
m_ui->foregroundSaturationLabel->setVisible(isVisible);
|
m_ui->foregroundSaturationLabel->setVisible(isVisible);
|
||||||
@@ -350,7 +333,8 @@ void ColorSchemeEdit::updateRelativeBackgroundControls()
|
|||||||
QSignalBlocker saturationSignalBlocker(m_ui->backgroundSaturationSpinBox);
|
QSignalBlocker saturationSignalBlocker(m_ui->backgroundSaturationSpinBox);
|
||||||
QSignalBlocker lightnessSignalBlocker(m_ui->backgroundLightnessSpinBox);
|
QSignalBlocker lightnessSignalBlocker(m_ui->backgroundLightnessSpinBox);
|
||||||
|
|
||||||
bool isVisible = formatDescription.showControl(FormatDescription::ShowRelativeBackgroundControl);
|
bool isVisible = !m_readOnly
|
||||||
|
&& formatDescription.showControl(FormatDescription::ShowRelativeBackgroundControl);
|
||||||
|
|
||||||
m_ui->relativeBackgroundHeadline->setVisible(isVisible);
|
m_ui->relativeBackgroundHeadline->setVisible(isVisible);
|
||||||
m_ui->backgroundSaturationLabel->setVisible(isVisible);
|
m_ui->backgroundSaturationLabel->setVisible(isVisible);
|
||||||
@@ -381,7 +365,8 @@ void ColorSchemeEdit::updateFontControls()
|
|||||||
QSignalBlocker boldSignalBlocker(m_ui->boldCheckBox);
|
QSignalBlocker boldSignalBlocker(m_ui->boldCheckBox);
|
||||||
QSignalBlocker italicSignalBlocker(m_ui->italicCheckBox);
|
QSignalBlocker italicSignalBlocker(m_ui->italicCheckBox);
|
||||||
|
|
||||||
bool isVisible= formatDescription.showControl(FormatDescription::ShowFontControls);
|
bool isVisible = !m_readOnly
|
||||||
|
&& formatDescription.showControl(FormatDescription::ShowFontControls);
|
||||||
|
|
||||||
m_ui->fontHeadline->setVisible(isVisible);
|
m_ui->fontHeadline->setVisible(isVisible);
|
||||||
m_ui->boldCheckBox->setVisible(isVisible);
|
m_ui->boldCheckBox->setVisible(isVisible);
|
||||||
@@ -401,7 +386,8 @@ void ColorSchemeEdit::updateUnderlineControls()
|
|||||||
|
|
||||||
QSignalBlocker comboBoxSignalBlocker(m_ui->underlineComboBox);
|
QSignalBlocker comboBoxSignalBlocker(m_ui->underlineComboBox);
|
||||||
|
|
||||||
bool isVisible= formatDescription.showControl(FormatDescription::ShowUnderlineControl);
|
bool isVisible = !m_readOnly
|
||||||
|
&& formatDescription.showControl(FormatDescription::ShowUnderlineControl);
|
||||||
|
|
||||||
m_ui->underlineHeadline->setVisible(isVisible);
|
m_ui->underlineHeadline->setVisible(isVisible);
|
||||||
m_ui->underlineLabel->setVisible(isVisible);
|
m_ui->underlineLabel->setVisible(isVisible);
|
||||||
|
@@ -59,6 +59,9 @@ public:
|
|||||||
void setColorScheme(const ColorScheme &colorScheme);
|
void setColorScheme(const ColorScheme &colorScheme);
|
||||||
const ColorScheme &colorScheme() const;
|
const ColorScheme &colorScheme() const;
|
||||||
|
|
||||||
|
signals:
|
||||||
|
void copyScheme();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void currentItemChanged(const QModelIndex &index);
|
void currentItemChanged(const QModelIndex &index);
|
||||||
void changeForeColor();
|
void changeForeColor();
|
||||||
|
@@ -6,7 +6,7 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>462</width>
|
<width>513</width>
|
||||||
<height>416</height>
|
<height>416</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
@@ -39,6 +39,16 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="builtinSchemeLabel">
|
||||||
|
<property name="text">
|
||||||
|
<string><p align='center'><b>Builtin color schemes need to be <a href="copy">copied</a><br/> before they can be changed</b></p></string>
|
||||||
|
</property>
|
||||||
|
<property name="scaledContents">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QScrollArea" name="detailsScrollArea">
|
<widget class="QScrollArea" name="detailsScrollArea">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
@@ -87,36 +97,68 @@
|
|||||||
<property name="verticalSpacing">
|
<property name="verticalSpacing">
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<item row="5" column="0" colspan="3">
|
<item row="30" column="0" colspan="3">
|
||||||
<widget class="QLabel" name="relativeForegroundHeadline">
|
<spacer name="spacer">
|
||||||
<property name="font">
|
<property name="orientation">
|
||||||
<font>
|
<enum>Qt::Vertical</enum>
|
||||||
<weight>75</weight>
|
|
||||||
<bold>true</bold>
|
|
||||||
</font>
|
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="sizeHint" stdset="0">
|
||||||
<string>Relative Foreground</string>
|
<size>
|
||||||
|
<width>200</width>
|
||||||
|
<height>0</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
<item row="3" 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>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="0">
|
<item row="1" column="1">
|
||||||
<widget class="QLabel" name="foregroundLabel">
|
<widget class="QToolButton" name="foregroundToolButton">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Fixed" vsizetype="Preferred">
|
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
||||||
<horstretch>0</horstretch>
|
<horstretch>0</horstretch>
|
||||||
<verstretch>0</verstretch>
|
<verstretch>0</verstretch>
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Foreground:</string>
|
<string/>
|
||||||
</property>
|
|
||||||
<property name="buddy">
|
|
||||||
<cstring>foregroundToolButton</cstring>
|
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="10" column="0" colspan="3">
|
<item row="10" 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="11" column="0" colspan="3">
|
||||||
<widget class="QWidget" name="relativeForegroundSpacer3" native="true">
|
<widget class="QWidget" name="relativeForegroundSpacer3" native="true">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
||||||
@@ -138,251 +180,7 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="9" column="0">
|
<item row="8" 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">
|
<widget class="QLabel" name="foregroundSaturationLabel">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||||||
@@ -395,14 +193,7 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="19" column="0">
|
<item row="19" column="0" colspan="3">
|
||||||
<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">
|
<widget class="QWidget" name="fontSpacer1" native="true">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
||||||
@@ -424,73 +215,7 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="12" column="0" colspan="3">
|
<item row="23" 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">
|
<widget class="QWidget" name="underlineSpacer1" native="true">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
||||||
@@ -512,20 +237,23 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="23" column="1">
|
<item row="1" column="0">
|
||||||
<widget class="QToolButton" name="underlineColorToolButton">
|
<widget class="QLabel" name="foregroundLabel">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
<sizepolicy hsizetype="Fixed" vsizetype="Preferred">
|
||||||
<horstretch>0</horstretch>
|
<horstretch>0</horstretch>
|
||||||
<verstretch>0</verstretch>
|
<verstretch>0</verstretch>
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string/>
|
<string>Foreground:</string>
|
||||||
|
</property>
|
||||||
|
<property name="buddy">
|
||||||
|
<cstring>foregroundToolButton</cstring>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="21" column="0">
|
<item row="22" column="0">
|
||||||
<widget class="QLabel" name="underlineHeadline">
|
<widget class="QLabel" name="underlineHeadline">
|
||||||
<property name="font">
|
<property name="font">
|
||||||
<font>
|
<font>
|
||||||
@@ -538,23 +266,122 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="23" column="0">
|
<item row="6" column="0" colspan="3">
|
||||||
<widget class="QLabel" name="underlineLabel">
|
<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="7" column="0" colspan="3">
|
||||||
|
<widget class="QWidget" name="relativeForegroundSpacer1" native="true">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Fixed" vsizetype="Preferred">
|
<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="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="4" 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="13" 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="4" column="1">
|
||||||
|
<widget class="QToolButton" name="backgroundToolButton">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
||||||
<horstretch>0</horstretch>
|
<horstretch>0</horstretch>
|
||||||
<verstretch>0</verstretch>
|
<verstretch>0</verstretch>
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Color:</string>
|
<string/>
|
||||||
</property>
|
|
||||||
<property name="buddy">
|
|
||||||
<cstring>backgroundToolButton</cstring>
|
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="11" column="0" colspan="3">
|
<item row="16" 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="12" column="0" colspan="3">
|
||||||
<widget class="QLabel" name="relativeBackgroundHeadline">
|
<widget class="QLabel" name="relativeBackgroundHeadline">
|
||||||
<property name="font">
|
<property name="font">
|
||||||
<font>
|
<font>
|
||||||
@@ -567,7 +394,173 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="20" column="0" colspan="3">
|
<item row="18" 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="14" 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="14" 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="24" 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="26" column="0" colspan="3">
|
||||||
|
<widget class="QComboBox" name="underlineComboBox"/>
|
||||||
|
</item>
|
||||||
|
<item row="1" 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="15" 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="20" column="0">
|
||||||
|
<widget class="QCheckBox" name="boldCheckBox">
|
||||||
|
<property name="text">
|
||||||
|
<string>Bold</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="17" 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="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="25" 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="21" column="0" colspan="3">
|
||||||
<widget class="QWidget" name="fontSpacer2" native="true">
|
<widget class="QWidget" name="fontSpacer2" native="true">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
||||||
@@ -589,8 +582,8 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="15" column="1" colspan="2">
|
<item row="10" column="1" colspan="2">
|
||||||
<widget class="QDoubleSpinBox" name="backgroundLightnessSpinBox">
|
<widget class="QDoubleSpinBox" name="foregroundLightnessSpinBox">
|
||||||
<property name="minimum">
|
<property name="minimum">
|
||||||
<double>-1.000000000000000</double>
|
<double>-1.000000000000000</double>
|
||||||
</property>
|
</property>
|
||||||
@@ -602,42 +595,20 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="3" column="1">
|
<item row="8" column="1" colspan="2">
|
||||||
<widget class="QToolButton" name="backgroundToolButton">
|
<widget class="QDoubleSpinBox" name="foregroundSaturationSpinBox">
|
||||||
<property name="sizePolicy">
|
<property name="minimum">
|
||||||
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
<double>-1.000000000000000</double>
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="maximum">
|
||||||
<string/>
|
<double>1.000000000000000</double>
|
||||||
|
</property>
|
||||||
|
<property name="singleStep">
|
||||||
|
<double>0.050000000000000</double>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="23" column="2">
|
<item row="9" column="0" colspan="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="0" colspan="3">
|
|
||||||
<widget class="QComboBox" name="underlineComboBox"/>
|
|
||||||
</item>
|
|
||||||
<item row="8" column="0" colspan="3">
|
|
||||||
<widget class="QWidget" name="relativeForegroundSpacer2" native="true">
|
<widget class="QWidget" name="relativeForegroundSpacer2" native="true">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
||||||
@@ -659,8 +630,47 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="0" colspan="3">
|
<item row="24" column="0">
|
||||||
<widget class="QWidget" name="foregroundSpacer" native="true">
|
<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="4" 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="20" column="1" colspan="2">
|
||||||
|
<widget class="QCheckBox" name="italicCheckBox">
|
||||||
|
<property name="text">
|
||||||
|
<string>Italic</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="5" column="0" colspan="3">
|
||||||
|
<widget class="QWidget" name="backgroundSpacer" native="true">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
||||||
<horstretch>0</horstretch>
|
<horstretch>0</horstretch>
|
||||||
@@ -670,13 +680,13 @@
|
|||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>0</width>
|
<width>0</width>
|
||||||
<height>6</height>
|
<height>18</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="maximumSize">
|
<property name="maximumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>16777215</width>
|
<width>16777215</width>
|
||||||
<height>6</height>
|
<height>18</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
|
@@ -377,6 +377,8 @@ QWidget *FontSettingsPage::widget()
|
|||||||
this, &FontSettingsPage::colorSchemeSelected);
|
this, &FontSettingsPage::colorSchemeSelected);
|
||||||
connect(d_ptr->m_ui->copyButton, &QPushButton::clicked,
|
connect(d_ptr->m_ui->copyButton, &QPushButton::clicked,
|
||||||
this, &FontSettingsPage::openCopyColorSchemeDialog);
|
this, &FontSettingsPage::openCopyColorSchemeDialog);
|
||||||
|
connect(d_ptr->m_ui->schemeEdit, &ColorSchemeEdit::copyScheme,
|
||||||
|
this, &FontSettingsPage::openCopyColorSchemeDialog);
|
||||||
connect(d_ptr->m_ui->deleteButton, &QPushButton::clicked,
|
connect(d_ptr->m_ui->deleteButton, &QPushButton::clicked,
|
||||||
this, &FontSettingsPage::confirmDeleteColorScheme);
|
this, &FontSettingsPage::confirmDeleteColorScheme);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user