diff options
Diffstat (limited to 'src/ui/palette.h')
-rw-r--r-- | src/ui/palette.h | 16 |
1 files changed, 10 insertions, 6 deletions
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: |