DefaultLumaStyles.cpp
Go to the documentation of this file.
1 #include "DefaultLumaStyles.hpp"
2 
3 namespace iv
4 {
5 
7  LumaStyler( inst ),
8  cm( inst, this, "DefaultLumaStyles" )
9 {
10  this->cm.inherits( this->LumaStyler::cm );
11 }
12 
14 {
16  style.surface = float4( 1, 1, 1, 1 );
17  style.error = float4( 0.69, 0, 0.13, 1 );
18  style.highlight = float4( 0.384, 0, 0.93, 1 );
19  style.on_surface = float4( 0, 0, 0, 1 );
20  style.on_error = float4( 1, 1, 1, 1 );
21  style.on_highlight = float4( 1, 1, 1, 1 );
22 
23  this->style( core, style );
24 
25  if( secondary.valid() )
26  {
27  style.highlight = float4( 0.215686275f, 0.0f, 0.701960784f, 1.0f );
28  this->style( secondary, style );
29  }
30 }
31 
33 {
35  style.surface = float4( 1, 1, 1, 1 );
36  style.error = float4( 0.69, 0, 0.13, 1 );
37  style.highlight = float4( 0.231, 0.387, 0, 1 );
38  style.on_surface = float4( 0, 0, 0, 1 );
39  style.on_error = float4( 1, 1, 1, 1 );
40  style.on_highlight = float4( 1, 1, 1, 1 );
41 
42  this->style( core, style );
43 }
44 
46 {
48  style.surface = float4( 0.116, 0.116, 0.116, 1 );
49  style.error = float4( 0.811, 0.401, 0.474, 1 );
50  style.highlight = float4( 0.735, 0.524, 0.990, 1 );
51  style.on_surface = float4( 1.000, 1.000, 1.000, 1 );
52  style.on_error = float4( 0.000, 0.000, 0.000, 1 );
53  style.on_highlight = float4( 0.000, 0.000, 0.000, 1 );
54 
55  this->style( core, style );
56 
57  if( secondary.valid() )
58  {
59  style.highlight = float4( 0.170, 0.854, 0.776, 1 );
60  this->style( secondary, style );
61  }
62 }
63 
64 }