Guitar
TextEditorTheme.h
Go to the documentation of this file.
1 #ifndef TEXTEDITORTHEME_H
2 #define TEXTEDITORTHEME_H
3 
4 #include <QColor>
5 #include <memory>
6 
7 class TextEditorTheme;
8 
9 using TextEditorThemePtr = std::shared_ptr<TextEditorTheme>;
10 
12 public:
13  QColor fg_default;
14  QColor bg_default;
17  QColor fg_cursor;
18  QColor bg_current;
26 public:
27  TextEditorTheme() = default;
28  QColor fgDefault() const
29  {
30  return fg_default;
31  }
32  QColor bgDefault() const
33  {
34  return bg_default;
35  }
36  QColor fgLineNumber() const
37  {
38  return fg_line_number;
39  }
40  QColor bgLineNumber() const
41  {
42  return bg_line_number;
43  }
44  QColor fgCursor() const
45  {
46  return fg_cursor;
47  }
48  QColor bgCurrentLine() const
49  {
50  return bg_current_line;
51  }
52  QColor bgCurrentLineNumber() const
53  {
55  }
56  QColor bgDiffUnknown() const
57  {
58  return bg_diff_unknown;
59  }
60  QColor bgDiffLineDel() const
61  {
62  return bg_diff_line_del;
63  }
64  QColor bgDiffLineAdd() const
65  {
66  return bg_diff_line_add;
67  }
68  QColor bgDiffCharDel() const
69  {
70  return bg_diff_char_del;
71  }
72  QColor bgDiffCharAdd() const
73  {
74  return bg_diff_char_add;
75  }
76  static TextEditorThemePtr Dark();
77  static TextEditorThemePtr Light();
78 };
79 
80 #endif // TEXTEDITORTHEME_H
TextEditorTheme
Definition: TextEditorTheme.h:11
TextEditorTheme::bg_diff_char_add
QColor bg_diff_char_add
Definition: TextEditorTheme.h:25
COLOR
#define COLOR(X)
Definition: TextEditorTheme.cpp:5
TextEditorTheme::bgDiffCharDel
QColor bgDiffCharDel() const
Definition: TextEditorTheme.h:68
TextEditorTheme::bg_current_line_number
QColor bg_current_line_number
Definition: TextEditorTheme.h:20
TextEditorTheme::bg_current_line
QColor bg_current_line
Definition: TextEditorTheme.h:19
TextEditorTheme::bg_default
QColor bg_default
Definition: TextEditorTheme.h:14
TextEditorTheme::fgLineNumber
QColor fgLineNumber() const
Definition: TextEditorTheme.h:36
TextEditorTheme::bgDiffLineDel
QColor bgDiffLineDel() const
Definition: TextEditorTheme.h:60
TextEditorTheme::Light
static TextEditorThemePtr Light()
Definition: TextEditorTheme.cpp:7
TextEditorTheme.h
TextEditorTheme::bg_diff_line_del
QColor bg_diff_line_del
Definition: TextEditorTheme.h:22
TextEditorTheme::Dark
static TextEditorThemePtr Dark()
Definition: TextEditorTheme.cpp:25
TextEditorThemePtr
std::shared_ptr< TextEditorTheme > TextEditorThemePtr
Definition: TextEditorTheme.h:9
TextEditorTheme::bgDiffUnknown
QColor bgDiffUnknown() const
Definition: TextEditorTheme.h:56
TextEditorTheme::bgCurrentLineNumber
QColor bgCurrentLineNumber() const
Definition: TextEditorTheme.h:52
TextEditorTheme::bgDiffCharAdd
QColor bgDiffCharAdd() const
Definition: TextEditorTheme.h:72
TextEditorTheme::TextEditorTheme
TextEditorTheme()=default
TextEditorTheme::bgDiffLineAdd
QColor bgDiffLineAdd() const
Definition: TextEditorTheme.h:64
TextEditorTheme::fg_cursor
QColor fg_cursor
Definition: TextEditorTheme.h:17
TextEditorTheme::bg_diff_unknown
QColor bg_diff_unknown
Definition: TextEditorTheme.h:21
TextEditorTheme::bgLineNumber
QColor bgLineNumber() const
Definition: TextEditorTheme.h:40
TextEditorTheme::bg_diff_line_add
QColor bg_diff_line_add
Definition: TextEditorTheme.h:24
TextEditorTheme::fg_line_number
QColor fg_line_number
Definition: TextEditorTheme.h:15
TextEditorTheme::fgDefault
QColor fgDefault() const
Definition: TextEditorTheme.h:28
TextEditorTheme::fg_default
QColor fg_default
Definition: TextEditorTheme.h:13
TextEditorTheme::bgCurrentLine
QColor bgCurrentLine() const
Definition: TextEditorTheme.h:48
TextEditorTheme::bg_current
QColor bg_current
Definition: TextEditorTheme.h:18
TextEditorTheme::fgCursor
QColor fgCursor() const
Definition: TextEditorTheme.h:44
TextEditorTheme::bg_diff_char_del
QColor bg_diff_char_del
Definition: TextEditorTheme.h:23
TextEditorTheme::bgDefault
QColor bgDefault() const
Definition: TextEditorTheme.h:32
TextEditorTheme::bg_line_number
QColor bg_line_number
Definition: TextEditorTheme.h:16