From fea1280fa90311b085a23777278f6d9c079447da Mon Sep 17 00:00:00 2001 From: forbes Date: Sat, 31 Jan 2026 12:29:31 -0600 Subject: [PATCH] fix(theme): set alternate-background-color on item views Qt defaults alternate-background-color to white when unset. Add #181825 (Mantle) as the alternate row color to QTreeView, QListView, QTableView, and the property editor in both KindredCreate.qss copies. --- src/Gui/PreferencePacks/KindredCreate/KindredCreate.qss | 4 ++++ src/Gui/Stylesheets/KindredCreate.qss | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/Gui/PreferencePacks/KindredCreate/KindredCreate.qss b/src/Gui/PreferencePacks/KindredCreate/KindredCreate.qss index 7d7d8ae502..dba3e9597b 100644 --- a/src/Gui/PreferencePacks/KindredCreate/KindredCreate.qss +++ b/src/Gui/PreferencePacks/KindredCreate/KindredCreate.qss @@ -750,6 +750,7 @@ QGroupBox::title { QTreeView { background-color: #1e1e2e; + alternate-background-color: #181825; color: #cdd6f4; border: 1px solid #45475a; border-radius: 4px; @@ -803,6 +804,7 @@ QTreeView::branch:open:has-children:has-siblings { QListView { background-color: #1e1e2e; + alternate-background-color: #181825; color: #cdd6f4; border: 1px solid #45475a; border-radius: 4px; @@ -829,6 +831,7 @@ QListView::item:selected { QTableView { background-color: #1e1e2e; + alternate-background-color: #181825; color: #cdd6f4; border: 1px solid #45475a; border-radius: 4px; @@ -1091,6 +1094,7 @@ QWizard QLabel { /* Property Editor */ Gui--PropertyEditor--PropertyEditor { background-color: #1e1e2e; + alternate-background-color: #181825; color: #cdd6f4; border: 1px solid #45475a; qproperty-groupBackground: #313244; diff --git a/src/Gui/Stylesheets/KindredCreate.qss b/src/Gui/Stylesheets/KindredCreate.qss index 7d7d8ae502..dba3e9597b 100644 --- a/src/Gui/Stylesheets/KindredCreate.qss +++ b/src/Gui/Stylesheets/KindredCreate.qss @@ -750,6 +750,7 @@ QGroupBox::title { QTreeView { background-color: #1e1e2e; + alternate-background-color: #181825; color: #cdd6f4; border: 1px solid #45475a; border-radius: 4px; @@ -803,6 +804,7 @@ QTreeView::branch:open:has-children:has-siblings { QListView { background-color: #1e1e2e; + alternate-background-color: #181825; color: #cdd6f4; border: 1px solid #45475a; border-radius: 4px; @@ -829,6 +831,7 @@ QListView::item:selected { QTableView { background-color: #1e1e2e; + alternate-background-color: #181825; color: #cdd6f4; border: 1px solid #45475a; border-radius: 4px; @@ -1091,6 +1094,7 @@ QWizard QLabel { /* Property Editor */ Gui--PropertyEditor--PropertyEditor { background-color: #1e1e2e; + alternate-background-color: #181825; color: #cdd6f4; border: 1px solid #45475a; qproperty-groupBackground: #313244;