From 776c8b5ba3a9023a2be34f13442889ddd68f5580 Mon Sep 17 00:00:00 2001 From: MisterMaker Date: Sat, 2 Aug 2025 14:56:31 +0200 Subject: [PATCH] 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 --- src/Gui/Stylesheets/FreeCAD.qss | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/Gui/Stylesheets/FreeCAD.qss b/src/Gui/Stylesheets/FreeCAD.qss index 70bb284821..b5a5c5fc45 100644 --- a/src/Gui/Stylesheets/FreeCAD.qss +++ b/src/Gui/Stylesheets/FreeCAD.qss @@ -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*/