Make fancy tabbar background color configurable

This commit is contained in:
Jonas Kvinge
2019-08-08 23:16:45 +02:00
parent 61253b5551
commit 4f52ceb3e0
6 changed files with 180 additions and 51 deletions

View File

@@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>674</width>
<height>627</height>
<height>755</height>
</rect>
</property>
<property name="windowTitle">
@@ -39,7 +39,7 @@
<item>
<widget class="QLabel" name="select_foreground_color_label">
<property name="enabled">
<bool>false</bool>
<bool>true</bool>
</property>
<property name="text">
<string>Select foreground color:</string>
@@ -63,7 +63,7 @@
<item>
<widget class="QLabel" name="select_background_color_label">
<property name="enabled">
<bool>false</bool>
<bool>true</bool>
</property>
<property name="text">
<string>Select background color:</string>
@@ -85,6 +85,60 @@
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupbox_tabbar_colors">
<property name="title">
<string>Tabbar colors</string>
</property>
<layout class="QVBoxLayout" name="layout_tabbar_colors">
<item>
<widget class="QRadioButton" name="tabbar_system_color">
<property name="text">
<string>&amp;Use the system default color</string>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="tabbar_custom_color">
<property name="text">
<string>Use custom color</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="tabbar_gradient">
<property name="text">
<string>Use gradient background</string>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="layout_tabbar_color">
<item>
<widget class="QLabel" name="label_tabbar_color">
<property name="enabled">
<bool>true</bool>
</property>
<property name="text">
<string>Select tabbar color:</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="select_tabbar_color">
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</item>
<item>
<widget class="Line" name="line_1">
<property name="orientation">
@@ -427,22 +481,6 @@
</hint>
</hints>
</connection>
<connection>
<sender>use_a_custom_color_set</sender>
<signal>toggled(bool)</signal>
<receiver>select_background_color_label</receiver>
<slot>setEnabled(bool)</slot>
<hints>
<hint type="sourcelabel">
<x>301</x>
<y>72</y>
</hint>
<hint type="destinationlabel">
<x>162</x>
<y>139</y>
</hint>
</hints>
</connection>
<connection>
<sender>use_a_custom_color_set</sender>
<signal>toggled(bool)</signal>
@@ -459,21 +497,5 @@
</hint>
</hints>
</connection>
<connection>
<sender>use_a_custom_color_set</sender>
<signal>toggled(bool)</signal>
<receiver>select_foreground_color_label</receiver>
<slot>setEnabled(bool)</slot>
<hints>
<hint type="sourcelabel">
<x>301</x>
<y>72</y>
</hint>
<hint type="destinationlabel">
<x>162</x>
<y>104</y>
</hint>
</hints>
</connection>
</connections>
</ui>