Skip to content

Commit 9ed5741

Browse files
committed
Fixed tall combo lists (i.e. profile list) from auto closing after you click on it on GTK+ and Linux with the style: combobox-popup: 0;. Also includes a few other style fixes for Cosmic Dusk theme.
1 parent b2addfb commit 9ed5741

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

src/themes/cosmic/theme.py

+7
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,11 @@ def __init__(self, app):
274274
color: rgba(145, 195, 255, 0.4);
275275
}
276276
277+
QTabWidget#exportTabs QTabBar::tab,
278+
QTabWidget#tabCategories QTabBar::tab {
279+
margin-bottom: 10px;
280+
}
281+
277282
QTabBar::tab:selected {
278283
color: rgba(145, 195, 255, 1.0);
279284
}
@@ -343,6 +348,7 @@ def __init__(self, app):
343348
padding: 6px;
344349
padding-left: 8px;
345350
padding-right: 8px;
351+
combobox-popup: 0;
346352
}
347353
348354
QComboBox::drop-down {
@@ -416,6 +422,7 @@ def __init__(self, app):
416422
417423
QToolBox::tab {
418424
color: #91C3FF;
425+
border-top: 1px solid rgba(145, 195, 255, .2);
419426
}
420427
421428
QTabWidget QWidget#pageAdvancedOptions, QWidget#pageProfile, QWidget#pageImageSequenceSettings, QWidget#pageVideoSettings, QWidget#pageAudioSettings {

src/themes/humanity/theme.py

+8
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ def __init__(self, app):
4242
height: 24px;
4343
}
4444
45+
QComboBox {
46+
combobox-popup: 0;
47+
}
48+
4549
.property_value {
4650
foreground-color: #217dd4;
4751
background-color: #565656;
@@ -99,6 +103,10 @@ def __init__(self, app):
99103
QWidget#videoPreview {
100104
background-color: #dedede;
101105
}
106+
107+
QComboBox {
108+
combobox-popup: 0;
109+
}
102110
"""
103111

104112
def apply_theme(self):

src/windows/ui/export.ui

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
</layout>
7373
</item>
7474
<item row="1" column="0">
75-
<widget class="QTabWidget" name="tabWidget">
75+
<widget class="QTabWidget" name="exportTabs">
7676
<property name="sizePolicy">
7777
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
7878
<horstretch>0</horstretch>
@@ -1064,7 +1064,7 @@
10641064
<tabstop>txtFileName</tabstop>
10651065
<tabstop>txtExportFolder</tabstop>
10661066
<tabstop>btnBrowse</tabstop>
1067-
<tabstop>tabWidget</tabstop>
1067+
<tabstop>exportTabs</tabstop>
10681068
<tabstop>cboSimpleProjectType</tabstop>
10691069
<tabstop>cboSimpleTarget</tabstop>
10701070
<tabstop>cboSimpleVideoProfile</tabstop>

0 commit comments

Comments
 (0)