Skip to content

Commit

Permalink
Pad labels to give dropdowns space
Browse files Browse the repository at this point in the history
A round-about solution to the problem.
  • Loading branch information
machinewrapped committed Jul 9, 2023
1 parent b4c2f00 commit 82bd2ca
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
1 change: 1 addition & 0 deletions GUI/Widgets/OptionsWidgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ class DropdownOptionWidget(OptionWidget):
def __init__(self, key, values, initial_value, tooltip = None):
super(DropdownOptionWidget, self).__init__(key, initial_value, tooltip=tooltip)
self.combo_box = QComboBox(self)
self.combo_box.setSizeAdjustPolicy(QComboBox.SizeAdjustPolicy.AdjustToContents)
for value in values:
self.combo_box.addItem(value)

Expand Down
18 changes: 15 additions & 3 deletions theme/subtrans.qss
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,32 @@ QWidget {

QLabel {
color: black;
padding-top: 2px;
padding-bottom: 6px;
}

QComboBox {
padding: 1px 18px 1px 3px;
min-width: 6em;
min-height: 1em;
}

QStatusBar {
color: black;
}

.MainToolbar, .ProjectToolbar {
background-color: #808080;
background-color: #a0a0a0;
border: none;
}

QTreeView:item {
border-radius: 12;
}

QTreeView:item:selected {
border: 2px solid #800000;
font-weight: bold;
border: 2px solid black;
border-radius: 12;
}

.MainWindow {
Expand Down

0 comments on commit 82bd2ca

Please sign in to comment.