Added conditionals

This commit is contained in:
Yeison Cardona 2021-12-20 21:00:21 -05:00
parent 15f9e8a1ff
commit e9b16e7571

View File

@ -608,7 +608,13 @@ QMenu::item {
QCalendarWidget QMenu::item, QCalendarWidget QMenu::item,
QMenu::item { QMenu::item {
padding: 0px {{24|density(density_scale)}}px 0px {{32|density(density_scale)}}px; {% if pyside6 or pyqt6 %}
padding: 0px 24px 0px 8px;
{% elif pyqt5 %}
padding: 0px {{24|density(density_scale)}}px 0px 8px;
{% else %}
padding: 0px {{32|density(density_scale)}}px 0px {{32|density(density_scale)}}px;
{% endif %}
} }
QComboBox::item:selected, QComboBox::item:selected,
@ -1213,20 +1219,22 @@ QToolTip {
/* ------------------------------------------------------------------------ */ /* ------------------------------------------------------------------------ */
/* QDialog */ /* QDialog */
QDialog QToolButton, {% if linux %}
QDialog QToolButton:hover, QDialog QToolButton,
QDialog QToolButton:pressed, QDialog QToolButton:hover,
QDialog QToolButton:checked { QDialog QToolButton:pressed,
border: 0px; QDialog QToolButton:checked {
height: unset; border: 0px;
margin: unset; height: unset;
padding: unset; margin: unset;
border-right: unset; padding: unset;
border-left: unset; border-right: unset;
background-color: {{primaryColor}}; border-left: unset;
color: {{secondaryTextColor}}; background-color: {{primaryColor}};
border-radius: 4px; color: {{secondaryTextColor}};
} border-radius: 4px;
}
{% endif%}
QDialog QToolButton:disabled { QDialog QToolButton:disabled {
background-color: {{secondaryColor}}; background-color: {{secondaryColor}};