Skip to content

Commit

Permalink
[themes] Fix combo box and menu items left spacing/padding issue
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Feb 23, 2021
1 parent b15be66 commit b04fe1f
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 10 deletions.
20 changes: 15 additions & 5 deletions resources/themes/Blend of Gray/style.qss
Expand Up @@ -148,17 +148,22 @@ QMenu
padding-right: 0em;
}

QMenu::icon
{
padding-left: 0.3em;
}

QMenu::item
{
background: transparent;
padding: 0.2em 1.3em 0.2em 1.3em;
padding: 0.2em 1.3em 0.2em 0.4em;
}

QMenu::item:disabled
{
color: #555;
background: transparent;
padding: 0.2em 1.3em 0.2em 1.3em;
padding: 0.2em 1.3em 0.2em 0.4em;
}

QMenu::item:selected
Expand All @@ -172,6 +177,11 @@ QMenu::item:checked
text-decoration:underline;
}

QMenu::indicator
{
width: 0em;
}

QWidget:disabled, QWidget:editable:disabled
{
color: @itemalternativebackground;
Expand Down Expand Up @@ -335,15 +345,15 @@ QComboBox::down-arrow
}

QComboBox:item {
padding-left: 1.3em;
padding-left: 0.1em;
height:1.25em;
}
QComboBox:item:selected {
padding-left: 1.3em;
padding-left: 0.1em;
height:1.25em;
}
QComboBox:item:checked {
padding-left: 1.3em;
padding-left: 0.1em;
height:1.25em;
text-decoration:underline;
}
Expand Down
20 changes: 15 additions & 5 deletions resources/themes/Night Mapping/style.qss
Expand Up @@ -148,17 +148,22 @@ QMenu
padding-right: 0em;
}

QMenu::icon
{
padding-left: 0.3em;
}

QMenu::item
{
background: transparent;
padding: 0.2em 1.3em 0.2em 1.3em;
padding: 0.2em 1.3em 0.2em 0.4em;
}

QMenu::item:disabled
{
color: #555;
background: transparent;
padding: 0.2em 1.3em 0.2em 1.3em;
padding: 0.2em 1.3em 0.2em 0.4em;
}

QMenu::item:selected
Expand All @@ -172,6 +177,11 @@ QMenu::item:checked
text-decoration:underline;
}

QMenu::indicator
{
width: 0em;
}

QWidget:disabled, QWidget:editable:disabled
{
color: @itemdarkbackground;
Expand Down Expand Up @@ -347,15 +357,15 @@ QComboBox::down-arrow
}

QComboBox:item {
padding-left: 1.3em;
padding-left: 0.1em;
height:1.25em;
}
QComboBox:item:selected {
padding-left: 1.3em;
padding-left: 0.1em;
height:1.25em;
}
QComboBox:item:checked {
padding-left: 1.3em;
padding-left: 0.1em;
height:1.25em;
text-decoration:underline;
}
Expand Down

0 comments on commit b04fe1f

Please sign in to comment.