Messagelib

colorutil.h
1/*
2 * SPDX-FileCopyrightText: 2015 Daniel Vrátil <dvratil@kde.org>
3 *
4 * SPDX-License-Identifier: LGPL-2.1-or-later
5 *
6 */
7
8#pragma once
9
10#include "messagecore_export.h"
11
12#include <QColor>
13
14namespace MessageCore
15{
16/**
17 * @brief The ColorUtil class
18 */
19class MESSAGECORE_EXPORT ColorUtil
20{
21public:
22 static ColorUtil *self();
23
24 ColorUtil();
25
26 void updateColors();
27
28 [[nodiscard]] QColor misspelledDefaultTextColor() const;
29 [[nodiscard]] QColor quoteLevel1DefaultTextColor() const;
30 [[nodiscard]] QColor quoteLevel2DefaultTextColor() const;
31 [[nodiscard]] QColor quoteLevel3DefaultTextColor() const;
32 [[nodiscard]] QColor pgpSignedTrustedMessageColor() const;
33 [[nodiscard]] QColor pgpSignedTrustedTextColor() const;
34 [[nodiscard]] QColor pgpSignedUntrustedMessageColor() const;
35 [[nodiscard]] QColor pgpSignedUntrustedTextColor() const;
36 [[nodiscard]] QColor pgpSignedBadMessageColor() const;
37 [[nodiscard]] QColor pgpSignedBadTextColor() const;
38 [[nodiscard]] QColor pgpEncryptedMessageColor() const;
39 [[nodiscard]] QColor pgpEncryptedTextColor() const;
40 [[nodiscard]] QColor linkColor() const;
41
42private:
43 MESSAGECORE_NO_EXPORT void initializeColors();
44 QColor mMisspelledDefaultTextColor;
45 QColor mQuoteLevel1DefaultTextColor;
46 QColor mQuoteLevel2DefaultTextColor;
47 QColor mQuoteLevel3DefaultTextColor;
48
49 QColor mPgpSignedTrustedMessageColor;
50 QColor mPgpSignedTrustedTextColor;
51 QColor mPgpSignedUntrustedMessageColor;
52 QColor mPgpSignedUntrustedTextColor;
53 QColor mPgpSignedBadMessageColor;
54 QColor mPgpSignedBadTextColor;
55 QColor mPgpEncryptedMessageColor;
56 QColor mPgpEncryptedTextColor;
57 QColor mLinkColor;
58};
59}
The ColorUtil class.
Definition colorutil.h:20
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:12 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.