Skip to content

Commit

Permalink
Fix combobox dropdown list padding issue with themes
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Jan 1, 2019
1 parent 015508c commit 43f8b46
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
14 changes: 13 additions & 1 deletion resources/themes/Blend of Gray/style.qss
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ QComboBox {
border-style: solid;
border: 1px solid #1e1e1e;
border-radius: 0.2em;
padding: 0.1em;
padding: 0.1em 1em 0.1em 0.1em;
}


Expand Down Expand Up @@ -241,6 +241,18 @@ QComboBox::down-arrow
height: 1.2em;
}

QComboBox:item {
padding-left: 1.5em;
height:1.2em;
}
QComboBox:item:selected {
padding-left: 1.5em;
height:1.2em;
}
QComboBox:item:checked {
padding-left: 1.5em;
height:1.2em;
}

QLineEdit:focus
{
Expand Down
14 changes: 13 additions & 1 deletion resources/themes/Night Mapping/style.qss
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ QComboBox {
border-style: solid;
border: 1px solid #1e1e1e;
border-radius: 0px;
padding: 0.1em;
padding: 0.1em 1em 0.1em 0.1em;
}


Expand Down Expand Up @@ -250,6 +250,18 @@ QComboBox::down-arrow
height: 1.2em;
}

QComboBox:item {
padding-left: 1.5em;
height:1.2em;
}
QComboBox:item:selected {
padding-left: 1.5em;
height:1.2em;
}
QComboBox:item:checked {
padding-left: 1.5em;
height:1.2em;
}

QLineEdit:focus
{
Expand Down

0 comments on commit 43f8b46

Please sign in to comment.