cgv
Loading...
Searching...
No Matches
theme_info.cxx
1#include "theme_info.h"
2
3namespace cgv {
4namespace gui {
5
6theme_info& theme_info::instance() {
7 static theme_info instance;
8 return instance;
9}
10
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
23bool theme_info::is_dark() const {
24 return index_ > 1;
25}
26
27void theme_info::notify_observers() const {
28 on_change(instance());
29}
30
31}
32}
the cgv namespace
Definition print.h:11