diff options
author | Stijn Buys <ingar@osirion.org> | 2009-05-10 15:33:16 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2009-05-10 15:33:16 +0000 |
commit | b3083a4fe57cc99c6972180a40091001cb209ad7 (patch) | |
tree | 52552b1fc62ff361867a7171404e5c5bd9e52917 /src/ui/palette.h | |
parent | 3dde787b2546958072e8a98350335b2bab6d1c17 (diff) |
added disabled ui palette color, added dock and launch buttons
Diffstat (limited to 'src/ui/palette.h')
-rw-r--r-- | src/ui/palette.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/ui/palette.h b/src/ui/palette.h index 1aabc59..61a0b72 100644 --- a/src/ui/palette.h +++ b/src/ui/palette.h @@ -24,8 +24,8 @@ public: ~Palette(); /// color index - enum Color { Foreground=0, Background=1, Border=2, Text=3, Highlight=4, Pointer=5, Active=6, Debug=7, Mission=8, - Bold=9, Fancy=10, Warning=11, Error=12 }; + enum Color { Foreground=0, Background=1, Border=2, Text=3, Highlight=4, Disabled=5, Pointer=6, Active=7, + Debug=8, Mission=9, Bold=10, Fancy=11, Warning=12, Error=13 }; /* ---- mutators ------------------------------------------- */ @@ -59,6 +59,12 @@ public: palette_highlight.assign(color); } + /// set disabled color + inline void set_disabled(const math::Color &color) + { + palette_disabled.assign(color); + } + /// set pointer color inline void set_pointer(const math::Color &color) { @@ -134,6 +140,11 @@ public: return palette_highlight; } + /// disabled color + inline const math::Color &disabled() const { + return palette_disabled; + } + /// pointer color inline const math::Color &pointer() const { return palette_pointer; @@ -184,6 +195,7 @@ private: math::Color palette_border; math::Color palette_text; math::Color palette_highlight; + math::Color palette_disabled; math::Color palette_pointer; math::Color palette_active; math::Color palette_debug; |