Stylesheet: Update QComboBox and QListView styles for varset dialog (#22861)

* Update QComboBox and QListView styles

Fixed issue with Varset dialog which was using the same object as the workbench combobox. So I directed the general version to the workbench combobox and changed the general setting to more normal version.

* Update selected item background in QListView

Changed the background color for selected QListView items from @AccentBackgroundHoverColor to @GeneralBackgroundHoverColor for improved visual consistency.

* Unify selection and hover styles in views

Updated QListView, QTableView, QTreeView, and QColumnView item selection to use @AccentBackgroundColor for consistency. Changed hover states for these views to use @AccentHoverColor, improving visual coherence across the UI.

* shouldn't be in there yellow
This commit is contained in:
MisterMaker
2025-08-02 14:56:31 +02:00
committed by GitHub
parent 53bc32a2f5
commit 776c8b5ba3

View File

@@ -1356,15 +1356,6 @@ QComboBox:editable {
background-color: @TextEditFieldBackgroundColor;
}
QComboBox QAbstractItemView {
border: 1px solid @GeneralBorderColor;
padding-left: -27px;
background-color: transparent;
}
QComboBox QAbstractItemView:hover {
background-color: @GeneralBackgroundHoverColor;
}
QComboBox QAbstractItemView:selected {
background-color: @GeneralBackgroundHoverColor;
@@ -2221,6 +2212,12 @@ QColumnView::item:selected {
background-color: @AccentBackgroundColor;
}
QTableView::item:hover,
QColumnView::item:hover,
QListView::item:hover {
background-color: @AccentHoverColor;
}
/* QTreeView::item:!selected:hover, */
QListView::item:!selected:hover,
QTableView::item:!selected:hover,
@@ -2606,6 +2603,9 @@ QGroupBox[objectName="matOpsGrpBox"] QPushButton {
QToolBar > Gui--WorkbenchComboBox QAbstractItemView {
min-width: 180px;
margin-left: 30px;
border: 1px solid @GeneralBorderColor;
padding-left: -27px;
background-color: transparent;
}
/* Below is a fix for indentation in properties*/