remove assert looking for new compatibilityMode DOCX
[LibreOffice.git] / vcl / source / app / themecolors.cxx
blob33f4601f89bcdf41086915e02f53297806573038
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /* This file is part of the LibreOffice project.
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 */
9 #include <vcl/themecolors.hxx>
10 #include <officecfg/Office/Common.hxx>
12 ThemeColors ThemeColors::m_aThemeColors;
13 bool ThemeColors::m_bIsThemeCached = false;
15 void ThemeColors::SetThemeState(ThemeState eState)
17 auto pChange(comphelper::ConfigurationChanges::create());
18 officecfg::Office::Common::Appearance::LibreOfficeTheme::set(static_cast<int>(eState), pChange);
19 pChange->commit();
22 ThemeState ThemeColors::GetThemeState()
24 return static_cast<ThemeState>(officecfg::Office::Common::Appearance::LibreOfficeTheme::get());
27 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */