From 56cdfd3822d2800abdd2f912ab7f76a5764793a7 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 19 Oct 2008 13:45:07 +0000 Subject: scrollpane widget, updated chatbox --- src/ui/palette.h | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'src/ui/palette.h') diff --git a/src/ui/palette.h b/src/ui/palette.h index 41eee03..1ef49c7 100644 --- a/src/ui/palette.h +++ b/src/ui/palette.h @@ -19,11 +19,15 @@ public: Palette(); ~Palette(); - enum Color { Foreground=0, Background=1, Highlight=2, Border=3, Pointer=4, Active=5 }; + enum Color { Foreground=0, Background=1, Highlight=2, Border=3, Pointer=4, Active=5, Debug=6 }; + /// set foreground color void set_foreground(math::Color const &color); + /// set highlight color void set_highlight(math::Color const &color); + + void set_text(math::Color const &color); void set_background(math::Color const &color); @@ -32,6 +36,8 @@ public: void set_pointer(math::Color const &color); void set_active(math::Color const &color); + + void set_debug(math::Color const &olor); inline const math::Color &foreground() const { return palette_foreground; @@ -40,6 +46,10 @@ public: inline const math::Color &highlight() const { return palette_highlight; } + + inline const math::Color &text() const { + return palette_text; + } inline const math::Color &background() const { return palette_background; @@ -57,6 +67,10 @@ public: return palette_active; } + inline const math::Color &debug() const { + return palette_debug; + } + const math::Color &color(Palette::Color palettecolor) const; private: @@ -67,6 +81,8 @@ private: math::Color palette_pointer; math::Color palette_active; math::Color palette_border; + math::Color palette_debug; + math::Color palette_text; }; } -- cgit v1.2.3