Krita Source Code Documentation
Loading...
Searching...
No Matches
kcolorscheme.cpp File Reference
#include "kcolorscheme.h"
#include <kconfig.h>
#include <kconfiggroup.h>
#include <ksharedconfig.h>
#include <kcolorutils.h>
#include <QColor>
#include <QBrush>
#include <QWidget>

Go to the source code of this file.

Classes

struct  DecoDefaultColors
 
class  KColorSchemePrivate
 
class  KStatefulBrushPrivate
 
struct  SetDefaultColors
 
class  StateEffects
 

Macros

#define DECO_DEFAULT(a)   DEFAULT( defaultDecorationColors.a )
 
#define DEFAULT(c)   QColor( c[0], c[1], c[2] )
 
#define SET_DEFAULT(a)   DEFAULT( defaults.a )
 

Variables

static const SetDefaultColors defaultButtonColors
 
static const DecoDefaultColors defaultDecorationColors
 
static const SetDefaultColors defaultSelectionColors
 
static const SetDefaultColors defaultTooltipColors
 
static const SetDefaultColors defaultViewColors
 
static const SetDefaultColors defaultWindowColors
 

Macro Definition Documentation

◆ DECO_DEFAULT

#define DECO_DEFAULT ( a)    DEFAULT( defaultDecorationColors.a )

Definition at line 249 of file kcolorscheme.cpp.

◆ DEFAULT

#define DEFAULT ( c)    QColor( c[0], c[1], c[2] )

Definition at line 247 of file kcolorscheme.cpp.

◆ SET_DEFAULT

#define SET_DEFAULT ( a)    DEFAULT( defaults.a )

Definition at line 248 of file kcolorscheme.cpp.

Variable Documentation

◆ defaultButtonColors

const SetDefaultColors defaultButtonColors
static
Initial value:
= {
{ 223, 220, 217 },
{ 224, 223, 222 },
{ 34, 31, 30 },
{ 137, 136, 135 },
{ 146, 76, 157 },
{ 0, 87, 174 },
{ 100, 74, 155 },
{ 191, 3, 3 },
{ 176, 128, 0 },
{ 0, 110, 40 }
}

Definition at line 181 of file kcolorscheme.cpp.

181 {
182 { 223, 220, 217 }, // Background
183 { 224, 223, 222 }, // Alternate
184 { 34, 31, 30 }, // Normal
185 { 137, 136, 135 }, // Inactive
186 { 146, 76, 157 }, // Active
187 { 0, 87, 174 }, // Link
188 { 100, 74, 155 }, // Visited
189 { 191, 3, 3 }, // Negative
190 { 176, 128, 0 }, // Neutral
191 { 0, 110, 40 } // Positive
192};

◆ defaultDecorationColors

const DecoDefaultColors defaultDecorationColors
static
Initial value:
= {
{ 110, 214, 255 },
{ 58, 167, 221 },
}

Definition at line 220 of file kcolorscheme.cpp.

220 {
221 { 110, 214, 255 }, // Hover
222 { 58, 167, 221 }, // Focus
223};

◆ defaultSelectionColors

const SetDefaultColors defaultSelectionColors
static
Initial value:
= {
{ 67, 172, 232 },
{ 62, 138, 204 },
{ 255, 255, 255 },
{ 199, 226, 248 },
{ 108, 36, 119 },
{ 0, 49, 110 },
{ 69, 40, 134 },
{ 156, 14, 14 },
{ 255, 221, 0 },
{ 128, 255, 128 }
}

Definition at line 194 of file kcolorscheme.cpp.

194 {
195 { 67, 172, 232 }, // Background
196 { 62, 138, 204 }, // Alternate
197 { 255, 255, 255 }, // Normal
198 { 199, 226, 248 }, // Inactive
199 { 108, 36, 119 }, // Active
200 { 0, 49, 110 }, // Link
201 { 69, 40, 134 }, // Visited
202 { 156, 14, 14 }, // Negative
203 { 255, 221, 0 }, // Neutral
204 { 128, 255, 128 } // Positive
205};

◆ defaultTooltipColors

const SetDefaultColors defaultTooltipColors
static
Initial value:
= {
{ 24, 21, 19 },
{ 196, 224, 255 },
{ 231, 253, 255 },
{ 137, 136, 135 },
{ 255, 128, 224 },
{ 88, 172, 255 },
{ 150, 111, 232 },
{ 191, 3, 3 },
{ 176, 128, 0 },
{ 0, 110, 40 }
}

Definition at line 207 of file kcolorscheme.cpp.

207 {
208 { 24, 21, 19 }, // Background
209 { 196, 224, 255 }, // Alternate
210 { 231, 253, 255 }, // Normal
211 { 137, 136, 135 }, // Inactive
212 { 255, 128, 224 }, // Active
213 { 88, 172, 255 }, // Link
214 { 150, 111, 232 }, // Visited
215 { 191, 3, 3 }, // Negative
216 { 176, 128, 0 }, // Neutral
217 { 0, 110, 40 } // Positive
218};

◆ defaultViewColors

const SetDefaultColors defaultViewColors
static
Initial value:
= {
{ 255, 255, 255 },
{ 248, 247, 246 },
{ 31, 28, 27 },
{ 137, 136, 135 },
{ 146, 76, 157 },
{ 0, 87, 174 },
{ 100, 74, 155 },
{ 191, 3, 3 },
{ 176, 128, 0 },
{ 0, 110, 40 }
}

Definition at line 155 of file kcolorscheme.cpp.

155 {
156 { 255, 255, 255 }, // Background
157 { 248, 247, 246 }, // Alternate
158 { 31, 28, 27 }, // Normal
159 { 137, 136, 135 }, // Inactive
160 { 146, 76, 157 }, // Active
161 { 0, 87, 174 }, // Link
162 { 100, 74, 155 }, // Visited
163 { 191, 3, 3 }, // Negative
164 { 176, 128, 0 }, // Neutral
165 { 0, 110, 40 } // Positive
166};

◆ defaultWindowColors

const SetDefaultColors defaultWindowColors
static
Initial value:
= {
{ 214, 210, 208 },
{ 218, 217, 216 },
{ 34, 31, 30 },
{ 137, 136, 135 },
{ 146, 76, 157 },
{ 0, 87, 174 },
{ 100, 74, 155 },
{ 191, 3, 3 },
{ 176, 128, 0 },
{ 0, 110, 40 }
}

Definition at line 168 of file kcolorscheme.cpp.

168 {
169 { 214, 210, 208 }, // Background
170 { 218, 217, 216 }, // Alternate
171 { 34, 31, 30 }, // Normal
172 { 137, 136, 135 }, // Inactive
173 { 146, 76, 157 }, // Active
174 { 0, 87, 174 }, // Link
175 { 100, 74, 155 }, // Visited
176 { 191, 3, 3 }, // Negative
177 { 176, 128, 0 }, // Neutral
178 { 0, 110, 40 } // Positive
179};