12 surface( 1, 1, 1, 1 ),
13 highlight( 0.384, 0, 0.93, 1 ),
14 error( 0.69, 0, 0.13, 1 ),
15 on_surface( 0, 0, 0, 1 ),
16 on_highlight( 1, 1, 1, 1 ),
17 on_error( 1, 1, 1, 1 ),
18 font_normal(
"/ivorium_UI/fonts/DejaVuSansMono/font.index" ),
19 font_monospace(
"/ivorium_UI/fonts/DejaVuSansMono/font.index" )
25 cm( inst, this,
"LumaListener" ),
33 if( !this->
id.valid() )
34 this->
id = ls->current_style();
65 return ls->style( this->
id );
70 cm( inst, this,
"LumaStyler" ),
72 ls( this->instance()->getSystem<
LumaSystem >() )
102 this->
cm.
warning(
SRC_INFO,
"Invalid LumaStyleId can not be set. Setting Default StyleId instead." );
116 return this->ls->
style(
id );
122 _current_style( Defs::Style::
Default )
126 this->_styles[ this->_current_style ] =
style;
131 this->_current_style = id;
136 return this->_current_style;
141 LumaStyle & stored_style = this->_styles[ id ];
142 stored_style =
style;
143 this->_listeners.foreach(
154 auto it = this->_styles.find(
id );
155 if( it == this->_styles.end() )
162 this->_listeners.erase( listener );
167 this->_listeners.erase( listener );