/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
/* ThemeState represents registry values for "LibreOfficeTheme" enumeration * in officecfg/registry/schema/org/openoffice/Office/Common.xcs, which means
* that the associations here have a meaning. Please don't change it. */ enumclass ThemeState
{
DISABLED = 0,
ENABLED = 1,
RESET = 2,
};
/* AUTO app colors follow os, light doc colors (default) LIGHT app colors follow os, light doc colors DARK app colors follow os, dark doc colors COUNT app color modes count
*/ enumclass AppearanceMode
{ AUTO = 0,
LIGHT = 1,
DARK = 2,
COUNT,
};
// !IsThemeCached means that the ThemeColors object doesn't have the colors from the registry yet. // IsThemeReset means that the user pressed the Reset All button and the UI colors in the registry // are not valid anymore => read from the system again staticbool VclPluginCanUseThemeColors() { return IsThemeCached() && !IsThemeReset(); };
private:
Color m_aWindowColor;
Color m_aWindowTextColor;
Color m_aBaseColor;
Color m_aButtonColor;
Color m_aButtonTextColor;
Color m_aAccentColor;
Color m_aDisabledColor;
Color m_aDisabledTextColor;
Color m_aShadeColor;
Color m_aSeparatorColor;
Color m_aFaceColor;
Color m_aActiveColor;
Color m_aActiveTextColor;
Color m_aActiveBorderColor;
Color m_aFieldColor;
Color m_aMenuBarColor;
Color m_aMenuBarTextColor;
Color m_aMenuBarHighlightColor;
Color m_aMenuBarHighlightTextColor;
Color m_aMenuColor;
Color m_aMenuTextColor;
Color m_aMenuHighlightColor;
Color m_aMenuhighlightTextColor;
Color m_aMenuBorderColor;
Color m_aInactiveColor;
Color m_aInactiveTextColor;
Color m_aInactiveBorderColor;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.