More tweaks for 2.4 update
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
1895052e17
commit
241df7f5c7
11 changed files with 65 additions and 36 deletions
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* DISTRHO Cardinal Plugin
|
||||
* Copyright (C) 2021-2022 Filipe Coelho <falktx@falktx.com>
|
||||
* Copyright (C) 2021-2023 Filipe Coelho <falktx@falktx.com>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as
|
||||
|
@ -23,15 +23,15 @@ using namespace sst::surgext_rack::style;
|
|||
|
||||
void surgext_rack_initialize()
|
||||
{
|
||||
BaconStyle::get()->activeStyle = rack::settings::darkMode ? BaconStyle::DARK : BaconStyle::LIGHT;
|
||||
BaconStyle::get()->activeStyle = rack::settings::preferDarkPanels ? BaconStyle::DARK : BaconStyle::LIGHT;
|
||||
XTStyle::initialize();
|
||||
}
|
||||
|
||||
void surgext_rack_update_theme()
|
||||
{
|
||||
BaconStyle::get()->activeStyle = rack::settings::darkMode ? BaconStyle::DARK : BaconStyle::LIGHT;
|
||||
BaconStyle::get()->activeStyle = rack::settings::preferDarkPanels ? BaconStyle::DARK : BaconStyle::LIGHT;
|
||||
BaconStyle::get()->notifyStyleListeners();
|
||||
|
||||
XTStyle::setGlobalStyle(rack::settings::darkMode ? XTStyle::Style::DARK : XTStyle::Style::LIGHT);
|
||||
XTStyle::setGlobalStyle(rack::settings::preferDarkPanels ? XTStyle::Style::DARK : XTStyle::Style::LIGHT);
|
||||
XTStyle::notifyStyleListeners();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue