From d03ffc228ca56a0a4418a1e8ef1998e538118efc Mon Sep 17 00:00:00 2001 From: xboxones1 <91512529+xboxones1@users.noreply.github.com> Date: Sat, 2 Nov 2024 14:16:24 +0000 Subject: [PATCH] Fixed background color when window is out of focus --- src/gui/styles/dark/darkstyle.qss | 6 ++++-- src/gui/styles/light/lightstyle.qss | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/gui/styles/dark/darkstyle.qss b/src/gui/styles/dark/darkstyle.qss index 92d00fb00..82bfb3061 100644 --- a/src/gui/styles/dark/darkstyle.qss +++ b/src/gui/styles/dark/darkstyle.qss @@ -1,12 +1,14 @@ DatabaseWidget:!active, GroupView:!active, +DatabaseWidget #groupView:!active, DatabaseWidget #tagView:!active, EntryPreviewWidget QLineEdit:!active, EntryPreviewWidget QTextEdit:!active, -EntryPreviewWidget TagsEdit:!active { +EntryPreviewWidget TagsEdit:!active, QStatusBar:!active { background-color: #404042; } DatabaseWidget:disabled, GroupView:disabled, +DatabaseWidget #groupView:disabled, DatabaseWidget #tagView:disabled, EntryPreviewWidget QLineEdit:disabled, EntryPreviewWidget QTextEdit:disabled, -EntryPreviewWidget TagsEdit:disabled { +EntryPreviewWidget TagsEdit:disabled, QStatusBar:disabled { background-color: #424242; } diff --git a/src/gui/styles/light/lightstyle.qss b/src/gui/styles/light/lightstyle.qss index 2764a56b0..ceb8164ae 100644 --- a/src/gui/styles/light/lightstyle.qss +++ b/src/gui/styles/light/lightstyle.qss @@ -1,12 +1,14 @@ DatabaseWidget:!active, GroupView:!active, +DatabaseWidget #groupView:!active, DatabaseWidget #tagView:!active, EntryPreviewWidget QLineEdit:!active, EntryPreviewWidget QTextEdit:!active, -EntryPreviewWidget TagsEdit:!active { +EntryPreviewWidget TagsEdit:!active, QStatusBar:!active { background-color: #FCFCFC; } DatabaseWidget:disabled, GroupView:disabled, +DatabaseWidget #groupView:disabled, DatabaseWidget #tagView:disabled, EntryPreviewWidget QLineEdit:disabled, EntryPreviewWidget QTextEdit:disabled, -EntryPreviewWidget TagsEdit:disabled { +EntryPreviewWidget TagsEdit:disabled, QStatusBar:disabled { background-color: #EDEDED; }