cui/source/options/appearance.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
New commits: commit 7b7fe696b7b4a90d1c629ff34f03062cf69441f2 Author: Sahil Gautam <[email protected]> AuthorDate: Sun Apr 20 23:12:45 2025 +0530 Commit: Sahil Gautam <[email protected]> CommitDate: Mon Jan 26 09:55:32 2026 +0100 tdf#164970 themes code cleanup, remove unneccessary assignment statements Change-Id: I1377794519e1b3781b48ed13d2f7f6887e8f9d56 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/184392 Reviewed-by: Sahil Gautam <[email protected]> Tested-by: Jenkins (cherry picked from commit 36aed19e5e96b903f95d2cc782454c9d601f0b94) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198091 Tested-by: Jenkins CollaboraOffice <[email protected]> Reviewed-by: Sahil Gautam <[email protected]> diff --git a/cui/source/options/appearance.cxx b/cui/source/options/appearance.cxx index c0a170708383..ecb0e63caf74 100644 --- a/cui/source/options/appearance.cxx +++ b/cui/source/options/appearance.cxx @@ -477,20 +477,21 @@ void SvxAppearanceTabPage::InitAppearance() m_xAppearanceDark->connect_toggled(LINK(this, SvxAppearanceTabPage, AppearanceChangeHdl)); Appearance nAppearance = static_cast<Appearance>(MiscSettings::GetAppColorMode()); + eCurrentAppearanceMode = nAppearance; + switch (nAppearance) { case Appearance::SYSTEM: m_xAppearanceSystem->set_state(TRISTATE_TRUE); - eCurrentAppearanceMode = Appearance::SYSTEM; break; case Appearance::LIGHT: m_xAppearanceLight->set_state(TRISTATE_TRUE); - eCurrentAppearanceMode = Appearance::LIGHT; break; case Appearance::DARK: m_xAppearanceDark->set_state(TRISTATE_TRUE); - eCurrentAppearanceMode = Appearance::DARK; break; + default: + eCurrentAppearanceMode = Appearance::SYSTEM; } }
