Example Text in ApperanceDialog
This commit is contained in:
parent
01989be2fb
commit
6c5ac3aa90
|
@ -180,6 +180,10 @@ void AppearanceDialog::on_editBackgroundColor_textChanged(const QString & arg1)
|
||||||
emit Config()->colorsUpdated();
|
emit Config()->colorsUpdated();
|
||||||
GuiUpdateAllViews();
|
GuiUpdateAllViews();
|
||||||
}
|
}
|
||||||
|
if(QColor(ui->editColor->text()).isValid())
|
||||||
|
ui->exampleText->setStyleSheet(QString("color: %1").arg(ui->editColor->text()));
|
||||||
|
else
|
||||||
|
ui->exampleText->setStyleSheet(QString("color: black"));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -201,6 +205,10 @@ void AppearanceDialog::on_editBackgroundColor_textChanged(const QString & arg1)
|
||||||
if(colorMap->contains(id))
|
if(colorMap->contains(id))
|
||||||
ui->buttonSave->setEnabled(false); //we cannot save with an invalid color
|
ui->buttonSave->setEnabled(false); //we cannot save with an invalid color
|
||||||
}
|
}
|
||||||
|
if(QColor(ui->editColor->text()).isValid())
|
||||||
|
ui->exampleText->setStyleSheet(QString("color: %1; background-color: %2").arg(ui->editColor->text()).arg(arg1));
|
||||||
|
else
|
||||||
|
ui->exampleText->setStyleSheet(QString("color: black; background-color: %1").arg(arg1));
|
||||||
}
|
}
|
||||||
ui->buttonBackgroundColor->setStyleSheet(styleSheet);
|
ui->buttonBackgroundColor->setStyleSheet(styleSheet);
|
||||||
}
|
}
|
||||||
|
@ -232,6 +240,10 @@ void AppearanceDialog::on_editColor_textChanged(const QString & arg1)
|
||||||
emit Config()->colorsUpdated();
|
emit Config()->colorsUpdated();
|
||||||
GuiUpdateAllViews();
|
GuiUpdateAllViews();
|
||||||
}
|
}
|
||||||
|
if(QColor(ui->editBackgroundColor->text()).isValid())
|
||||||
|
ui->exampleText->setStyleSheet(QString("color: %1; background-color: %2").arg(arg1).arg(ui->editBackgroundColor->text()));
|
||||||
|
else
|
||||||
|
ui->exampleText->setStyleSheet(QString("color: %1").arg(arg1));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>522</width>
|
<width>522</width>
|
||||||
<height>401</height>
|
<height>429</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
|
@ -26,7 +26,7 @@
|
||||||
<x>2</x>
|
<x>2</x>
|
||||||
<y>2</y>
|
<y>2</y>
|
||||||
<width>521</width>
|
<width>521</width>
|
||||||
<height>361</height>
|
<height>391</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="currentIndex">
|
<property name="currentIndex">
|
||||||
|
@ -603,7 +603,7 @@ border-width: 1px 2px 2px 1px;</string>
|
||||||
<x>10</x>
|
<x>10</x>
|
||||||
<y>10</y>
|
<y>10</y>
|
||||||
<width>341</width>
|
<width>341</width>
|
||||||
<height>311</height>
|
<height>351</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="title">
|
<property name="title">
|
||||||
|
@ -618,7 +618,7 @@ border-width: 1px 2px 2px 1px;</string>
|
||||||
<x>10</x>
|
<x>10</x>
|
||||||
<y>20</y>
|
<y>20</y>
|
||||||
<width>321</width>
|
<width>321</width>
|
||||||
<height>281</height>
|
<height>321</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="verticalScrollBarPolicy">
|
<property name="verticalScrollBarPolicy">
|
||||||
|
@ -629,9 +629,23 @@ border-width: 1px 2px 2px 1px;</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</widget>
|
</widget>
|
||||||
|
<widget class="QLabel" name="exampleText">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>370</x>
|
||||||
|
<y>330</y>
|
||||||
|
<width>131</width>
|
||||||
|
<height>20</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Example Text</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
<zorder>groupBackgroundColor</zorder>
|
<zorder>groupBackgroundColor</zorder>
|
||||||
<zorder>groupColor</zorder>
|
<zorder>groupColor</zorder>
|
||||||
<zorder>groupProperties</zorder>
|
<zorder>groupProperties</zorder>
|
||||||
|
<zorder>exampleText</zorder>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QWidget" name="tabFont">
|
<widget class="QWidget" name="tabFont">
|
||||||
<attribute name="title">
|
<attribute name="title">
|
||||||
|
@ -1717,7 +1731,7 @@ border-width: 1px 2px 2px 1px;</string>
|
||||||
<x>10</x>
|
<x>10</x>
|
||||||
<y>250</y>
|
<y>250</y>
|
||||||
<width>500</width>
|
<width>500</width>
|
||||||
<height>34</height>
|
<height>56</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="fontRestartRequiredLayout">
|
<layout class="QVBoxLayout" name="fontRestartRequiredLayout">
|
||||||
|
@ -1764,7 +1778,7 @@ border-width: 1px 2px 2px 1px;</string>
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>440</x>
|
<x>440</x>
|
||||||
<y>370</y>
|
<y>400</y>
|
||||||
<width>75</width>
|
<width>75</width>
|
||||||
<height>23</height>
|
<height>23</height>
|
||||||
</rect>
|
</rect>
|
||||||
|
@ -1777,7 +1791,7 @@ border-width: 1px 2px 2px 1px;</string>
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>360</x>
|
<x>360</x>
|
||||||
<y>370</y>
|
<y>400</y>
|
||||||
<width>75</width>
|
<width>75</width>
|
||||||
<height>23</height>
|
<height>23</height>
|
||||||
</rect>
|
</rect>
|
||||||
|
|
Loading…
Reference in New Issue