diff options
| author | Felix (xq) Queißner <git@mq32.de> | 2020-06-06 18:28:10 +0200 |
|---|---|---|
| committer | Felix (xq) Queißner <git@mq32.de> | 2020-06-06 18:28:10 +0200 |
| commit | cb69dca1dbf19ae854276803442e724045c4be81 (patch) | |
| tree | 8c3dd168d5ab337161a44246133bef98fb5be31c /settingsdialog.ui | |
| parent | 7772993ed5d65f10588f3d70961c429991fd7849 (diff) | |
| download | kristall-cb69dca1dbf19ae854276803442e724045c4be81.tar.gz | |
Adds color theming, adds automatic color theming with dark/light themes
Diffstat (limited to 'settingsdialog.ui')
| -rw-r--r-- | settingsdialog.ui | 514 |
1 files changed, 358 insertions, 156 deletions
diff --git a/settingsdialog.ui b/settingsdialog.ui index 935636a..1249b06 100644 --- a/settingsdialog.ui +++ b/settingsdialog.ui @@ -6,7 +6,7 @@ <rect> <x>0</x> <y>0</y> - <width>640</width> + <width>800</width> <height>480</height> </rect> </property> @@ -23,217 +23,419 @@ <attribute name="title"> <string>Style</string> </attribute> - <layout class="QFormLayout" name="formLayout"> - <item row="0" column="0"> - <widget class="QLabel" name="label"> - <property name="text"> - <string>Standard Font</string> + <layout class="QHBoxLayout" name="horizontalLayout_23"> + <item> + <layout class="QFormLayout" name="formLayout_3"> + <property name="leftMargin"> + <number>5</number> </property> - </widget> - </item> - <item row="0" column="1"> - <layout class="QHBoxLayout" name="horizontalLayout"> - <item> - <widget class="QLabel" name="std_preview"> + <item row="0" column="1"> + <layout class="QHBoxLayout" name="horizontalLayout_13"> + <item> + <widget class="QLabel" name="bg_preview"> + <property name="text"> + <string>&nbsp;</string> + </property> + <property name="textFormat"> + <enum>Qt::MarkdownText</enum> + </property> + </widget> + </item> + <item> + <widget class="QToolButton" name="bg_change_color"> + <property name="text"> + <string/> + </property> + <property name="icon"> + <iconset resource="icons.qrc"> + <normaloff>:/icons/palette.svg</normaloff>:/icons/palette.svg</iconset> + </property> + </widget> + </item> + </layout> + </item> + <item row="0" column="0"> + <widget class="QLabel" name="label_2"> <property name="text"> - <string>This text will be displayed for normal text.</string> + <string>Background Color</string> </property> </widget> </item> - <item> - <widget class="QToolButton" name="std_change_font"> + <item row="1" column="0"> + <widget class="QLabel" name="label"> <property name="text"> - <string/> - </property> - <property name="icon"> - <iconset resource="icons.qrc"> - <normaloff>:/icons/format-font.svg</normaloff>:/icons/format-font.svg</iconset> + <string>Standard Font</string> </property> </widget> </item> - <item> - <widget class="QToolButton" name="std_change_color"> + <item row="1" column="1"> + <layout class="QHBoxLayout" name="horizontalLayout_14"> + <item> + <widget class="QLabel" name="std_preview"> + <property name="frameShape"> + <enum>QFrame::NoFrame</enum> + </property> + <property name="text"> + <string>This text will be displayed for normal text.</string> + </property> + </widget> + </item> + <item> + <widget class="QToolButton" name="std_change_font"> + <property name="text"> + <string/> + </property> + <property name="icon"> + <iconset resource="icons.qrc"> + <normaloff>:/icons/format-font.svg</normaloff>:/icons/format-font.svg</iconset> + </property> + </widget> + </item> + <item> + <widget class="QToolButton" name="std_change_color"> + <property name="text"> + <string/> + </property> + <property name="icon"> + <iconset resource="icons.qrc"> + <normaloff>:/icons/palette.svg</normaloff>:/icons/palette.svg</iconset> + </property> + </widget> + </item> + </layout> + </item> + <item row="2" column="0"> + <widget class="QLabel" name="label_3"> <property name="text"> - <string/> - </property> - <property name="icon"> - <iconset resource="icons.qrc"> - <normaloff>:/icons/palette.svg</normaloff>:/icons/palette.svg</iconset> + <string>Preformatted Font</string> </property> </widget> </item> - </layout> - </item> - <item row="1" column="0"> - <widget class="QLabel" name="label"> - <property name="text"> - <string>Preformatted Font</string> - </property> - </widget> - </item> - <item row="1" column="1"> - <layout class="QHBoxLayout" name="horizontalLayout"> - <item> - <widget class="QLabel" name="pre_preview"> + <item row="2" column="1"> + <layout class="QHBoxLayout" name="horizontalLayout_15"> + <item> + <widget class="QLabel" name="pre_preview"> + <property name="frameShape"> + <enum>QFrame::NoFrame</enum> + </property> + <property name="text"> + <string>This text will be displayed for preformatted text.</string> + </property> + </widget> + </item> + <item> + <widget class="QToolButton" name="pre_change_font"> + <property name="text"> + <string/> + </property> + <property name="icon"> + <iconset resource="icons.qrc"> + <normaloff>:/icons/format-font.svg</normaloff>:/icons/format-font.svg</iconset> + </property> + </widget> + </item> + <item> + <widget class="QToolButton" name="pre_change_color"> + <property name="text"> + <string/> + </property> + <property name="icon"> + <iconset resource="icons.qrc"> + <normaloff>:/icons/palette.svg</normaloff>:/icons/palette.svg</iconset> + </property> + </widget> + </item> + </layout> + </item> + <item row="3" column="0"> + <widget class="QLabel" name="label_4"> <property name="text"> - <string>This text will be displayed for normal text.</string> + <string>H1 Font</string> </property> </widget> </item> - <item> - <widget class="QToolButton" name="pre_change_font"> + <item row="3" column="1"> + <layout class="QHBoxLayout" name="horizontalLayout_16"> + <item> + <widget class="QLabel" name="h1_preview"> + <property name="frameShape"> + <enum>QFrame::NoFrame</enum> + </property> + <property name="text"> + <string>This text will be displayed for a level 1 heading.</string> + </property> + </widget> + </item> + <item> + <widget class="QToolButton" name="h1_change_font"> + <property name="text"> + <string/> + </property> + <property name="icon"> + <iconset resource="icons.qrc"> + <normaloff>:/icons/format-font.svg</normaloff>:/icons/format-font.svg</iconset> + </property> + </widget> + </item> + <item> + <widget class="QToolButton" name="h1_change_color"> + <property name="text"> + <string/> + </property> + <property name="icon"> + <iconset resource="icons.qrc"> + <normaloff>:/icons/palette.svg</normaloff>:/icons/palette.svg</iconset> + </property> + </widget> + </item> + </layout> + </item> + <item row="4" column="0"> + <widget class="QLabel" name="label_5"> <property name="text"> - <string/> - </property> - <property name="icon"> - <iconset resource="icons.qrc"> - <normaloff>:/icons/format-font.svg</normaloff>:/icons/format-font.svg</iconset> + <string>H2 Font</string> </property> </widget> </item> - <item> - <widget class="QToolButton" name="pre_change_color"> + <item row="4" column="1"> + <layout class="QHBoxLayout" name="horizontalLayout_18"> + <item> + <widget class="QLabel" name="h2_preview"> + <property name="frameShape"> + <enum>QFrame::NoFrame</enum> + </property> + <property name="text"> + <string>This text will be displayed for a level 2 heading.</string> + </property> + </widget> + </item> + <item> + <widget class="QToolButton" name="h2_change_font"> + <property name="text"> + <string/> + </property> + <property name="icon"> + <iconset resource="icons.qrc"> + <normaloff>:/icons/format-font.svg</normaloff>:/icons/format-font.svg</iconset> + </property> + </widget> + </item> + <item> + <widget class="QToolButton" name="h2_change_color"> + <property name="text"> + <string/> + </property> + <property name="icon"> + <iconset resource="icons.qrc"> + <normaloff>:/icons/palette.svg</normaloff>:/icons/palette.svg</iconset> + </property> + </widget> + </item> + </layout> + </item> + <item row="5" column="0"> + <widget class="QLabel" name="label_6"> <property name="text"> - <string/> - </property> - <property name="icon"> - <iconset resource="icons.qrc"> - <normaloff>:/icons/palette.svg</normaloff>:/icons/palette.svg</iconset> + <string>H3 Font</string> </property> </widget> </item> - </layout> - </item> - <item row="2" column="0"> - <widget class="QLabel" name="label"> - <property name="text"> - <string>H1 Font</string> - </property> - </widget> - </item> - <item row="2" column="1"> - <layout class="QHBoxLayout" name="horizontalLayout"> - <item> - <widget class="QLabel" name="h1_preview"> + <item row="5" column="1"> + <layout class="QHBoxLayout" name="horizontalLayout_19"> + <item> + <widget class="QLabel" name="h3_preview"> + <property name="styleSheet"> + <string notr="true">border: 1px solid black;</string> + </property> + <property name="frameShape"> + <enum>QFrame::NoFrame</enum> + </property> + <property name="text"> + <string>This text will be displayed for a level 3 heading.</string> + </property> + <property name="textFormat"> + <enum>Qt::PlainText</enum> + </property> + </widget> + </item> + <item> + <widget class="QToolButton" name="h3_change_font"> + <property name="text"> + <string/> + </property> + <property name="icon"> + <iconset resource="icons.qrc"> + <normaloff>:/icons/format-font.svg</normaloff>:/icons/format-font.svg</iconset> + </property> + </widget> + </item> + <item> + <widget class="QToolButton" name="h3_change_color"> + <property name="text"> + <string/> + </property> + <property name="icon"> + <iconset resource="icons.qrc"> + <normaloff>:/icons/palette.svg</normaloff>:/icons/palette.svg</iconset> + </property> + </widget> + </item> + </layout> + </item> + <item row="6" column="0"> + <widget class="QLabel" name="label_7"> <property name="text"> - <string>This text will be displayed for a level 1 heading.</string> + <string>Local Link Color</string> </property> </widget> </item> - <item> - <widget class="QToolButton" name="h1_change_font"> + <item row="7" column="0"> + <widget class="QLabel" name="label_8"> <property name="text"> - <string/> - </property> - <property name="icon"> - <iconset resource="icons.qrc"> - <normaloff>:/icons/format-font.svg</normaloff>:/icons/format-font.svg</iconset> + <string>Foreign Link Color</string> </property> </widget> </item> - <item> - <widget class="QToolButton" name="h1_change_color"> + <item row="8" column="0"> + <widget class="QLabel" name="label_9"> <property name="text"> - <string/> - </property> - <property name="icon"> - <iconset resource="icons.qrc"> - <normaloff>:/icons/palette.svg</normaloff>:/icons/palette.svg</iconset> + <string>Cross-Scheme-Color</string> </property> </widget> </item> - </layout> - </item> - <item row="3" column="0"> - <widget class="QLabel" name="label"> - <property name="text"> - <string>H2 Font</string> - </property> - </widget> - </item> - <item row="3" column="1"> - <layout class="QHBoxLayout" name="horizontalLayout"> - <item> - <widget class="QLabel" name="h2_preview"> + <item row="9" column="0"> + <widget class="QLabel" name="label_10"> <property name="text"> - <string>This text will be displayed for a level 2 heading.</string> + <string>Local Link Prefix</string> </property> </widget> </item> - <item> - <widget class="QToolButton" name="h2_change_font"> + <item row="10" column="0"> + <widget class="QLabel" name="label_11"> <property name="text"> - <string/> - </property> - <property name="icon"> - <iconset resource="icons.qrc"> - <normaloff>:/icons/format-font.svg</normaloff>:/icons/format-font.svg</iconset> + <string>Extern Link Prefix</string> </property> </widget> </item> - <item> - <widget class="QToolButton" name="h2_change_color"> + <item row="10" column="1"> + <widget class="QLineEdit" name="link_foreign_prefix"> <property name="text"> - <string/> - </property> - <property name="icon"> - <iconset resource="icons.qrc"> - <normaloff>:/icons/palette.svg</normaloff>:/icons/palette.svg</iconset> + <string>⇒ </string> </property> </widget> </item> - </layout> - </item> - <item row="4" column="0"> - <widget class="QLabel" name="label"> - <property name="text"> - <string>H3 Font</string> - </property> - </widget> - </item> - <item row="4" column="1"> - <layout class="QHBoxLayout" name="horizontalLayout"> - <item> - <widget class="QLabel" name="h3_preview"> + <item row="9" column="1"> + <widget class="QLineEdit" name="link_local_prefix"> <property name="text"> - <string>This text will be displayed for a level 3 heading.</string> - </property> - <property name="textFormat"> - <enum>Qt::PlainText</enum> + <string>→ </string> </property> </widget> </item> - <item> - <widget class="QToolButton" name="h3_change_font"> + <item row="6" column="1"> + <layout class="QHBoxLayout" name="horizontalLayout_20"> + <item> + <widget class="QLabel" name="link_local_preview"> + <property name="text"> + <string>This is a local reference</string> + </property> + <property name="textFormat"> + <enum>Qt::MarkdownText</enum> + </property> + </widget> + </item> + <item> + <widget class="QToolButton" name="link_local_change_color"> + <property name="text"> + <string/> + </property> + <property name="icon"> + <iconset resource="icons.qrc"> + <normaloff>:/icons/palette.svg</normaloff>:/icons/palette.svg</iconset> + </property> + </widget> + </item> + </layout> + </item> + <item row="7" column="1"> + <layout class="QHBoxLayout" name="horizontalLayout_21"> + <item> + <widget class="QLabel" name="link_foreign_preview"> + <property name="text"> + <string>This is a foreign reference</string> + </property> + <property name="textFormat"> + <enum>Qt::MarkdownText</enum> + </property> + </widget> + </item> + <item> + <widget class="QToolButton" name="link_foreign_change_color"> + <property name="text"> + <string/> + </property> + <property name="icon"> + <iconset resource="icons.qrc"> + <normaloff>:/icons/palette.svg</normaloff>:/icons/palette.svg</iconset> + </property> + </widget> + </item> + </layout> + </item> + <item row="8" column="1"> + <layout class="QHBoxLayout" name="horizontalLayout_22"> + <item> + <widget class="QLabel" name="link_cross_preview"> + <property name="text"> + <string>This reference is cross-scheme</string> + </property> + <property name="textFormat"> + <enum>Qt::MarkdownText</enum> + </property> + </widget> + </item> + <item> + <widget class="QToolButton" name="link_cross_change_color"> + <property name="text"> + <string/> + </property> + <property name="icon"> + <iconset resource="icons.qrc"> + <normaloff>:/icons/palette.svg</normaloff>:/icons/palette.svg</iconset> + </property> + </widget> + </item> + </layout> + </item> + <item row="11" column="0"> + <widget class="QLabel" name="label_12"> <property name="text"> - <string/> - </property> - <property name="icon"> - <iconset resource="icons.qrc"> - <normaloff>:/icons/format-font.svg</normaloff>:/icons/format-font.svg</iconset> + <string>Auto-Theme Generation</string> </property> </widget> </item> + <item row="11" column="1"> + <widget class="QComboBox" name="auto_theme"/> + </item> + </layout> + </item> + <item> + <layout class="QVBoxLayout" name="verticalLayout_2"> <item> - <widget class="QToolButton" name="h3_change_color"> - <property name="text"> - <string/> + <widget class="QTextBrowser" name="style_preview"> + <property name="openLinks"> + <bool>false</bool> </property> - <property name="icon"> - <iconset resource="icons.qrc"> - <normaloff>:/icons/palette.svg</normaloff>:/icons/palette.svg</iconset> + </widget> + </item> + <item> + <widget class="QLineEdit" name="preview_url"> + <property name="placeholderText"> + <string>host.name</string> </property> </widget> </item> </layout> </item> - <item row="5" column="1"> - <widget class="QTextBrowser" name="style_preview"> - <property name="openLinks"> - <bool>false</bool> - </property> - </widget> - </item> </layout> </widget> <widget class="QWidget" name="generic"> @@ -261,32 +463,32 @@ <connections> <connection> <sender>buttonBox</sender> - <signal>accepted()</signal> + <signal>rejected()</signal> <receiver>SettingsDialog</receiver> - <slot>accept()</slot> + <slot>reject()</slot> <hints> <hint type="sourcelabel"> - <x>257</x> + <x>325</x> <y>470</y> </hint> <hint type="destinationlabel"> - <x>157</x> + <x>286</x> <y>274</y> </hint> </hints> </connection> <connection> <sender>buttonBox</sender> - <signal>rejected()</signal> + <signal>accepted()</signal> <receiver>SettingsDialog</receiver> - <slot>reject()</slot> + <slot>accept()</slot> <hints> <hint type="sourcelabel"> - <x>325</x> + <x>257</x> <y>470</y> </hint> <hint type="destinationlabel"> - <x>286</x> + <x>157</x> <y>274</y> </hint> </hints> |
