Skip to content
Permalink
Browse files

[themes] Fix combo box and menu items left spacing/padding issue

  • Loading branch information
nirvn committed Feb 23, 2021
1 parent b15be66 commit b04fe1fac1b8b67ab45847ab575a9483b3a76d2e
Showing with 30 additions and 10 deletions.
  1. +15 −5 resources/themes/Blend of Gray/style.qss
  2. +15 −5 resources/themes/Night Mapping/style.qss
@@ -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
@@ -172,6 +177,11 @@ QMenu::item:checked
text-decoration:underline;
}

QMenu::indicator
{
width: 0em;
}

QWidget:disabled, QWidget:editable:disabled
{
color: @itemalternativebackground;
@@ -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;
}
@@ -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
@@ -172,6 +177,11 @@ QMenu::item:checked
text-decoration:underline;
}

QMenu::indicator
{
width: 0em;
}

QWidget:disabled, QWidget:editable:disabled
{
color: @itemdarkbackground;
@@ -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;
}

0 comments on commit b04fe1f

Please sign in to comment.