Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/palette.h')
-rw-r--r--src/ui/palette.h16
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;