From b3083a4fe57cc99c6972180a40091001cb209ad7 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 10 May 2009 15:33:16 +0000 Subject: added disabled ui palette color, added dock and launch buttons --- src/ui/palette.h | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'src/ui/palette.h') 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; -- cgit v1.2.3