Changeset View
Changeset View
Standalone View
Standalone View
src/kcolorscheme.cpp
Show All 33 Lines | |||||
34 | public: | 34 | public: | ||
35 | explicit StateEffects(QPalette::ColorGroup state, const KSharedConfigPtr &); | 35 | explicit StateEffects(QPalette::ColorGroup state, const KSharedConfigPtr &); | ||
36 | ~StateEffects() {} //{ delete chain; } not needed yet | 36 | ~StateEffects() {} //{ delete chain; } not needed yet | ||
37 | 37 | | |||
38 | QBrush brush(const QBrush &background) const; | 38 | QBrush brush(const QBrush &background) const; | ||
39 | QBrush brush(const QBrush &foreground, const QBrush &background) const; | 39 | QBrush brush(const QBrush &foreground, const QBrush &background) const; | ||
40 | 40 | | |||
41 | private: | 41 | private: | ||
42 | enum Effects { | 42 | enum EffectTypes { | ||
43 | // Effects | 43 | Intensity, | ||
44 | Intensity = 0, | 44 | Color, | ||
45 | Color = 1, | 45 | Contrast, | ||
46 | Contrast = 2, | 46 | NEffectTypes | ||
47 | // Intensity | 47 | }; | ||
48 | IntensityNoEffect = 0, | 48 | | ||
49 | IntensityShade = 1, | 49 | enum IntensityEffects { | ||
50 | IntensityDarken = 2, | 50 | IntensityNoEffect, | ||
51 | IntensityLighten = 3, | 51 | IntensityShade, | ||
52 | // Color | 52 | IntensityDarken, | ||
53 | ColorNoEffect = 0, | 53 | IntensityLighten, | ||
54 | ColorDesaturate = 1, | 54 | NIntensityEffects | ||
55 | ColorFade = 2, | 55 | }; | ||
56 | ColorTint = 3, | 56 | | ||
57 | // Contrast | 57 | enum ColorEffects { | ||
58 | ContrastNoEffect = 0, | 58 | ColorNoEffect, | ||
59 | ContrastFade = 1, | 59 | ColorDesaturate, | ||
60 | ContrastTint = 2 | 60 | ColorFade, | ||
61 | ColorTint, | ||||
62 | NColorEffects | ||||
63 | }; | ||||
64 | | ||||
65 | enum ContrastEffects { | ||||
66 | ContrastNoEffect, | ||||
67 | ContrastFade, | ||||
68 | ContrastTint, | ||||
69 | NContrastEffects | ||||
61 | }; | 70 | }; | ||
62 | 71 | | |||
63 | int _effects[3]; | 72 | int _effects[3]; | ||
64 | double _amount[3]; | 73 | double _amount[3]; | ||
65 | QColor _color; | 74 | QColor _color; | ||
66 | // StateEffects *_chain; not needed yet | 75 | // StateEffects *_chain; not needed yet | ||
67 | }; | 76 | }; | ||
68 | 77 | | |||
▲ Show 20 Lines • Show All 677 Lines • Show Last 20 Lines |