mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Add connectToSignal on darkMode property fetch
Theme may be instantiated before the qApp is available Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
1db2656a4b
commit
aceff3f529
@ -1010,6 +1010,7 @@ QVariantMap Theme::systemPalette() const
|
||||
|
||||
bool Theme::darkMode() const
|
||||
{
|
||||
connectToPaletteSignal();
|
||||
const auto isDarkFromStyle = [] {
|
||||
switch (qGuiApp->styleHints()->colorScheme())
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user