From 1a28393dabf4f4696bf433ddde52e7a25253c955 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Thu, 16 Oct 2008 16:34:15 +0000 Subject: various user interface related updates --- src/ui/palette.h | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'src/ui/palette.h') diff --git a/src/ui/palette.h b/src/ui/palette.h index 9d27f95..41eee03 100644 --- a/src/ui/palette.h +++ b/src/ui/palette.h @@ -19,6 +19,8 @@ public: Palette(); ~Palette(); + enum Color { Foreground=0, Background=1, Highlight=2, Border=3, Pointer=4, Active=5 }; + void set_foreground(math::Color const &color); void set_highlight(math::Color const &color); @@ -31,29 +33,31 @@ public: void set_active(math::Color const &color); - inline math::Color const &foreground() const { + inline const math::Color &foreground() const { return palette_foreground; } - inline math::Color const &highlight() const { + inline const math::Color &highlight() const { return palette_highlight; } - inline math::Color const &background() const { + inline const math::Color &background() const { return palette_background; } - inline math::Color const &border() const { + inline const math::Color &border() const { return palette_border; } - inline math::Color const &pointer() const { + inline const math::Color &pointer() const { return palette_pointer; } - inline math::Color const &active() const { + inline const math::Color &active() const { return palette_active; } + + const math::Color &color(Palette::Color palettecolor) const; private: -- cgit v1.2.3