[go: up one dir, main page]

File: fwidgetcolors.h

package info (click to toggle)
finalcut 0.8.0-6
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 6,220 kB
  • sloc: cpp: 79,176; makefile: 517; sh: 395
file content (305 lines) | stat: -rw-r--r-- 11,378 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
/***********************************************************************
* fwidgetcolors.h - Set widget color theme                             *
*                                                                      *
* This file is part of the FINAL CUT widget toolkit                    *
*                                                                      *
* Copyright 2018-2021 Markus Gans                                      *
*                                                                      *
* FINAL CUT is free software; you can redistribute it and/or modify    *
* it under the terms of the GNU Lesser General Public License as       *
* published by the Free Software Foundation; either version 3 of       *
* the License, or (at your option) any later version.                  *
*                                                                      *
* FINAL CUT is distributed in the hope that it will be useful, but     *
* WITHOUT ANY WARRANTY; without even the implied warranty of           *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the        *
* GNU Lesser General Public License for more details.                  *
*                                                                      *
* You should have received a copy of the GNU Lesser General Public     *
* License along with this program.  If not, see                        *
* <http://www.gnu.org/licenses/>.                                      *
***********************************************************************/

/*  Standalone class
 *  ════════════════
 *
 * ▕▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▏
 * ▕ FWidgetColors ▏
 * ▕▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▏
 */

#ifndef FWIDGETCOLORS_H
#define FWIDGETCOLORS_H

#if !defined (USE_FINAL_H) && !defined (COMPILE_FINAL_CUT)
  #error "Only <final/final.h> can be included directly."
#endif

#include "final/fc.h"
#include "final/util/fstring.h"

namespace finalcut
{

//----------------------------------------------------------------------
// class FWidgetColors
//----------------------------------------------------------------------

class FWidgetColors
{
  public:
    // Constructor
    FWidgetColors() = default;

    // Destructor
    virtual ~FWidgetColors() noexcept;

    // Method
    virtual FString getClassName() const;
    virtual void setColorTheme() = 0;

    // Data members
    FColor term_fg{FColor::Default};
    FColor term_bg{FColor::Default};
    FColor list_fg{FColor::Default};
    FColor list_bg{FColor::Default};
    FColor selected_list_fg{FColor::Default};
    FColor selected_list_bg{FColor::Default};
    FColor current_element_focus_fg{FColor::Default};
    FColor current_element_focus_bg{FColor::Default};
    FColor current_element_fg{FColor::Default};
    FColor current_element_bg{FColor::Default};
    FColor current_inc_search_element_fg{FColor::Default};
    FColor selected_current_element_focus_fg{FColor::Default};
    FColor selected_current_element_focus_bg{FColor::Default};
    FColor selected_current_element_fg{FColor::Default};
    FColor selected_current_element_bg{FColor::Default};
    FColor label_fg{FColor::Default};
    FColor label_bg{FColor::Default};
    FColor label_inactive_fg{FColor::Default};
    FColor label_inactive_bg{FColor::Default};
    FColor label_hotkey_fg{FColor::Default};
    FColor label_hotkey_bg{FColor::Default};
    FColor label_emphasis_fg{FColor::Default};
    FColor label_ellipsis_fg{FColor::Default};
    FColor inputfield_active_focus_fg{FColor::Default};
    FColor inputfield_active_focus_bg{FColor::Default};
    FColor inputfield_active_fg{FColor::Default};
    FColor inputfield_active_bg{FColor::Default};
    FColor inputfield_inactive_fg{FColor::Default};
    FColor inputfield_inactive_bg{FColor::Default};
    FColor dialog_fg{FColor::Default};
    FColor dialog_resize_fg{FColor::Default};
    FColor dialog_emphasis_fg{FColor::Default};
    FColor dialog_bg{FColor::Default};
    FColor error_box_fg{FColor::Default};
    FColor error_box_emphasis_fg{FColor::Default};
    FColor error_box_bg{FColor::Default};
    FColor tooltip_fg{FColor::Default};
    FColor tooltip_bg{FColor::Default};
    FColor shadow_fg{FColor::Default};
    FColor shadow_bg{FColor::Default};
    FColor toggle_button_active_focus_fg{FColor::Default};
    FColor toggle_button_active_focus_bg{FColor::Default};
    FColor toggle_button_active_fg{FColor::Default};
    FColor toggle_button_active_bg{FColor::Default};
    FColor toggle_button_inactive_fg{FColor::Default};
    FColor toggle_button_inactive_bg{FColor::Default};
    FColor button_active_focus_fg{FColor::Default};
    FColor button_active_focus_bg{FColor::Default};
    FColor button_active_fg{FColor::Default};
    FColor button_active_bg{FColor::Default};
    FColor button_inactive_fg{FColor::Default};
    FColor button_inactive_bg{FColor::Default};
    FColor button_hotkey_fg{FColor::Default};
    FColor titlebar_active_fg{FColor::Default};
    FColor titlebar_active_bg{FColor::Default};
    FColor titlebar_inactive_fg{FColor::Default};
    FColor titlebar_inactive_bg{FColor::Default};
    FColor titlebar_button_fg{FColor::Default};
    FColor titlebar_button_bg{FColor::Default};
    FColor titlebar_button_focus_fg{FColor::Default};
    FColor titlebar_button_focus_bg{FColor::Default};
    FColor menu_active_focus_fg{FColor::Default};
    FColor menu_active_focus_bg{FColor::Default};
    FColor menu_active_fg{FColor::Default};
    FColor menu_active_bg{FColor::Default};
    FColor menu_inactive_fg{FColor::Default};
    FColor menu_inactive_bg{FColor::Default};
    FColor menu_hotkey_fg{FColor::Default};
    FColor menu_hotkey_bg{FColor::Default};
    FColor statusbar_fg{FColor::Default};
    FColor statusbar_bg{FColor::Default};
    FColor statusbar_hotkey_fg{FColor::Default};
    FColor statusbar_hotkey_bg{FColor::Default};
    FColor statusbar_separator_fg{FColor::Default};
    FColor statusbar_active_fg{FColor::Default};
    FColor statusbar_active_bg{FColor::Default};
    FColor statusbar_active_hotkey_fg{FColor::Default};
    FColor statusbar_active_hotkey_bg{FColor::Default};
    FColor scrollbar_fg{FColor::Default};
    FColor scrollbar_bg{FColor::Default};
    FColor scrollbar_button_fg{FColor::Default};
    FColor scrollbar_button_bg{FColor::Default};
    FColor scrollbar_button_inactive_fg{FColor::Default};
    FColor scrollbar_button_inactive_bg{FColor::Default};
    FColor progressbar_fg{FColor::Default};
    FColor progressbar_bg{FColor::Default};
};

// FWidgetColors inline functions
//----------------------------------------------------------------------
inline FString FWidgetColors::getClassName() const
{ return "FWidgetColors"; }


/*  Inheritance diagram
 *  ═══════════════════
 *
 *    ▕▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▏
 *    ▕ FWidgetColors ▏
 *    ▕▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▏
 *            ▲
 *            │
 *  ▕▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▏
 *  ▕ default8ColorTheme ▏
 *  ▕▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▏
 */

//----------------------------------------------------------------------
// class default8ColorTheme
//----------------------------------------------------------------------

class default8ColorTheme final : public FWidgetColors
{
  public:
    // Constructor
    default8ColorTheme();

    // Destructor
    ~default8ColorTheme() noexcept override;

    // Method
    FString getClassName() const override;
    void setColorTheme() override;
};

// default8ColorTheme inline functions
//----------------------------------------------------------------------
inline FString default8ColorTheme::getClassName() const
{ return "default8ColorTheme"; }


/*  Inheritance diagram
 *  ═══════════════════
 *
 *     ▕▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▏
 *     ▕ FWidgetColors ▏
 *     ▕▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▏
 *             ▲
 *             │
 *  ▕▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▏
 *  ▕ default16ColorTheme ▏
 *  ▕▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▏
 */

//----------------------------------------------------------------------
// class default16ColorTheme
//----------------------------------------------------------------------

class default16ColorTheme final : public FWidgetColors
{
  public:
    // Constructor
    default16ColorTheme();

    // Destructor
    ~default16ColorTheme() noexcept override;

    // Method
    FString getClassName() const override;
    void setColorTheme() override;
};

// default16ColorTheme inline functions
//----------------------------------------------------------------------
inline FString default16ColorTheme::getClassName() const
{ return "default16ColorTheme"; }


/*  Inheritance diagram
 *  ═══════════════════
 *
 *      ▕▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▏
 *      ▕ FWidgetColors ▏
 *      ▕▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▏
 *              ▲
 *              │
 *  ▕▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▏
 *  ▕ default8ColorDarkTheme ▏
 *  ▕▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▏
 */

//----------------------------------------------------------------------
// class default8ColorDarkTheme
//----------------------------------------------------------------------

class default8ColorDarkTheme final : public FWidgetColors
{
  public:
    // Constructor
    default8ColorDarkTheme();

    // Destructor
    ~default8ColorDarkTheme() noexcept override;

    // Method
    FString getClassName() const override;
    void setColorTheme() override;
};

// default8ColorDarkTheme inline functions
//----------------------------------------------------------------------
inline FString default8ColorDarkTheme::getClassName() const
{ return "default8ColorDarkTheme"; }


/*  Inheritance diagram
 *  ═══════════════════
 *
 *       ▕▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▏
 *       ▕ FWidgetColors ▏
 *       ▕▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▏
 *               ▲
 *               │
 *  ▕▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▏
 *  ▕ default16ColorDarkTheme ▏
 *  ▕▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▏
 */

//----------------------------------------------------------------------
// class default16ColorDarkTheme
//----------------------------------------------------------------------

class default16ColorDarkTheme final : public FWidgetColors
{
  public:
    // Constructor
    default16ColorDarkTheme();

    // Destructor
    ~default16ColorDarkTheme() noexcept override;

    // Method
    FString getClassName() const override;
    void setColorTheme() override;
};

// default16ColorDarkTheme inline functions
//----------------------------------------------------------------------
inline FString default16ColorDarkTheme::getClassName() const
{ return "default16ColorDarkTheme"; }

}  // namespace finalcut

#endif  // FWIDGETCOLORS_H