MORE fixes to Combobox Style Sheets

This commit is contained in:
MikeTheWatchGuy 2018-12-12 22:20:40 -05:00
parent 542c39a76c
commit 1c5161fb56
1 changed files with 10 additions and 2 deletions

View File

@ -4618,7 +4618,14 @@ def PackFormIntoFrame(window, containing_frame, toplevel_win):
style += 'background-color: %s;' % element.BackgroundColor style += 'background-color: %s;' % element.BackgroundColor
style += 'border: {}px solid gray; '.format(border_depth) style += 'border: {}px solid gray; '.format(border_depth)
style += '}' style += '}'
# style += """QComboBox::on { border: 50px; width: 30px; height: 30px; }"""
style += 'QListView {'
if element.TextColor is not None and element.TextColor != COLOR_SYSTEM_DEFAULT:
style += 'color: %s;' % element.TextColor
if element.BackgroundColor is not None and element.BackgroundColor != COLOR_SYSTEM_DEFAULT:
style += 'background-color: %s;' % element.BackgroundColor
style += '}'
element.QT_ComboBox.setStyleSheet(style) element.QT_ComboBox.setStyleSheet(style)
@ -5470,9 +5477,10 @@ def StartupTK(window):
# window.QTWindow.setWindowFlags(Qt.WindowStaysOnTopHint) # window.QTWindow.setWindowFlags(Qt.WindowStaysOnTopHint)
style = '' style = 'QMainWindow {'
if window.BackgroundColor is not None and window.BackgroundColor != COLOR_SYSTEM_DEFAULT: if window.BackgroundColor is not None and window.BackgroundColor != COLOR_SYSTEM_DEFAULT:
style += 'background-color: %s;' % window.BackgroundColor style += 'background-color: %s;' % window.BackgroundColor
style += '}'
window.QT_QMainWindow.setStyleSheet(style) window.QT_QMainWindow.setStyleSheet(style)
if window.BackgroundImage is not None: if window.BackgroundImage is not None: