Messagelib

colorutil.h
1 /*
2  * SPDX-FileCopyrightText: 2015 Daniel Vr├ítil <[email protected]>
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 
14 namespace MessageCore
15 {
16 /**
17  * @brief The ColorUtil class
18  */
19 class MESSAGECORE_EXPORT ColorUtil
20 {
21 public:
22  static ColorUtil *self();
23 
24  ColorUtil();
25 
26  void updateColors();
27 
28  Q_REQUIRED_RESULT QColor misspelledDefaultTextColor() const;
29  Q_REQUIRED_RESULT QColor quoteLevel1DefaultTextColor() const;
30  Q_REQUIRED_RESULT QColor quoteLevel2DefaultTextColor() const;
31  Q_REQUIRED_RESULT QColor quoteLevel3DefaultTextColor() const;
32  Q_REQUIRED_RESULT QColor pgpSignedTrustedMessageColor() const;
33  Q_REQUIRED_RESULT QColor pgpSignedTrustedTextColor() const;
34  Q_REQUIRED_RESULT QColor pgpSignedUntrustedMessageColor() const;
35  Q_REQUIRED_RESULT QColor pgpSignedUntrustedTextColor() const;
36  Q_REQUIRED_RESULT QColor pgpSignedBadMessageColor() const;
37  Q_REQUIRED_RESULT QColor pgpSignedBadTextColor() const;
38  Q_REQUIRED_RESULT QColor pgpEncryptedMessageColor() const;
39  Q_REQUIRED_RESULT QColor pgpEncryptedTextColor() const;
40  Q_REQUIRED_RESULT QColor linkColor() const;
41 
42 private:
43  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 }
60 
The ColorUtil class.
Definition: colorutil.h:19
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Fri Nov 26 2021 23:16:41 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.