cgv
Loading...
Searching...
No Matches
theme_info.cxx
1
#include "theme_info.h"
2
3
namespace
cgv
{
4
namespace
gui {
5
6
theme_info& theme_info::instance() {
7
static
theme_info
instance;
8
return
instance;
9
}
10
11
theme_info::theme_info
() {
12
background(240, 240, 240);
13
group(240, 240, 240);
14
control
(225, 225, 225);
15
border(98, 98, 98);
16
text(0, 0, 0);
17
text_background(255, 255, 255);
18
selection(0, 120, 215);
19
highlight(0, 120, 215);
20
warning(255, 0, 0);
21
}
22
23
bool
theme_info::is_dark()
const
{
24
return
index_ > 1;
25
}
26
27
void
theme_info::notify_observers()
const
{
28
on_change(instance());
29
}
30
31
}
32
}
cgv::gui::control
Definition
control.h:87
cgv::gui::theme_info::theme_info
theme_info()
construct
Definition
theme_info.cxx:11
cgv
the cgv namespace
Definition
print.h:11
cgv
gui
theme_info.cxx
Generated by
1.9.8