fix/adaptive-styling

Signed-off-by: Collecting <collecting@noreply.localhost>
This commit is contained in:
Collecting
2025-11-02 04:45:21 +00:00
parent 800f791e79
commit 4e8c43e894

View File

@@ -367,106 +367,71 @@ https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qmenubar
--------------------------------------------------------------------------- */ --------------------------------------------------------------------------- */
QMenuBar { QMenuBar {
background-color: #32414B; background-color: #31363b;
color: #F0F0F0; color: #eff0f1; /* Sets the default text color to be light */
border-bottom: 1px solid #403F3F;
} }
QMenuBar::item { QMenuBar::item {
background: transparent; background: transparent;
padding: 4px 10px;
color: #eff0f1; /* Explicitly set item text color */
} }
QMenuBar::item:selected { QMenuBar::item:selected {
background: transparent; /* This is the hover state */
border: 0px solid #32414B; background-color: #18465d;
color: #eff0f1;
} }
QMenuBar::item:pressed { QMenuBar::item:pressed {
border: 0px solid #32414B; /* This is for when a menu is open */
background-color: #148CD2; border: 1px solid #18465d;
color: #F0F0F0; background-color: #3daee9; /* Use the theme's accent blue */
margin-bottom: 0px; color: #eff0f1;
padding-bottom: 0px;
} }
/* QMenu ------------------------------------------------------------------ /* QMenu ------------------------------------------------------------------
https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qmenu https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qmenu
--------------------------------------------------------------------------- */ --------------------------------------------------------------------------- */
QMenu { QMenu {
border: 0px solid #32414B; border: 1px solid #434242;
color: #F0F0F0; background-color: #31363b;
margin: 0px; padding: 4px;
} color: #eff0f1; /* Set default text color for menu items */
QMenu::separator {
height: 1px;
background-color: #505F69;
color: #F0F0F0;
}
QMenu::icon {
margin: 0px;
padding-left: 8px;
} }
QMenu::item { QMenu::item {
background-color: #32414B; padding: 5px 25px 5px 25px;
padding: 4px 24px 4px 24px; border: 1px solid transparent;
/* Reserve space for selection border */
border: 1px transparent #32414B;
} }
QMenu::item:selected { QMenu::item:selected {
color: #F0F0F0; background-color: #3daee9; /* Use the theme's accent blue for selection */
color: #eff0f1;
}
QMenu::item:disabled {
color: #76797C;
}
QMenu::separator {
height: 1px;
background-color: #54575B;
margin: 4px 8px;
} }
QMenu::indicator { QMenu::indicator {
width: 12px; width: 18px;
height: 12px; height: 18px;
padding-left: 6px; padding-left: 5px;
/* non-exclusive indicator = check box style indicator (see QActionGroup::setExclusive) */
/* exclusive indicator = radio button style indicator (see QActionGroup::setExclusive) */
}
QMenu::indicator:non-exclusive:unchecked {
image: url(":/qss_icons/rc/checkbox_unchecked.png");
}
QMenu::indicator:non-exclusive:unchecked:selected {
image: url(":/qss_icons/rc/checkbox_unchecked_disabled.png");
}
QMenu::indicator:non-exclusive:checked {
image: url(":/qss_icons/rc/checkbox_checked.png");
}
QMenu::indicator:non-exclusive:checked:selected {
image: url(":/qss_icons/rc/checkbox_checked_disabled.png");
}
QMenu::indicator:exclusive:unchecked {
image: url(":/qss_icons/rc/radio_unchecked.png");
}
QMenu::indicator:exclusive:unchecked:selected {
image: url(":/qss_icons/rc/radio_unchecked_disabled.png");
}
QMenu::indicator:exclusive:checked {
image: url(":/qss_icons/rc/radio_checked.png");
}
QMenu::indicator:exclusive:checked:selected {
image: url(":/qss_icons/rc/radio_checked_disabled.png");
} }
QMenu::right-arrow { QMenu::right-arrow {
margin: 5px; margin: 0 5px 0 0;
image: url(":/qss_icons/rc/arrow_right.png"); image: url(:/qss_icons/rc/right_arrow.png);
height: 12px;
width: 12px;
} }
/* QAbstractItemView ------------------------------------------------------ /* QAbstractItemView ------------------------------------------------------