@@ -199,13 +199,13 @@ Dialog::draw(DrawingContext& context)
199
199
// draw background rect
200
200
context.color ().draw_filled_rect (bg_rect.grown (12 .0f ),
201
201
Color (g_config->menubackcolor .red , g_config->menubackcolor .green ,
202
- g_config->menubackcolor .blue , (g_config->menubackcolor .alpha - (m_passive ? 0 .5f : 0 .0f ))),
202
+ g_config->menubackcolor .blue , (std::max ( 0 . f , g_config->menubackcolor .alpha - (m_passive ? 0 .5f : 0 .0f ) ))),
203
203
g_config->menuroundness + 4 .f ,
204
204
LAYER_GUI-10 );
205
205
206
206
context.color ().draw_filled_rect (bg_rect.grown (8 .0f ),
207
207
Color (g_config->menufrontcolor .red , g_config->menufrontcolor .green ,
208
- g_config->menufrontcolor .blue , (g_config->menufrontcolor .alpha - (m_passive ? 0 .3f : 0 .0f ))),
208
+ g_config->menufrontcolor .blue , (std::max ( 0 . f , g_config->menufrontcolor .alpha - (m_passive ? 0 .3f : 0 .0f ) ))),
209
209
g_config->menuroundness ,
210
210
LAYER_GUI-10 );
211
211
@@ -220,7 +220,7 @@ Dialog::draw(DrawingContext& context)
220
220
// draw HL line
221
221
context.color ().draw_filled_rect (Rectf (Vector (bg_rect.get_left (), bg_rect.get_bottom () - 35 ),
222
222
Sizef (bg_rect.get_width (), 4 )),
223
- Color ( g_config->hlcolor ) , LAYER_GUI);
223
+ g_config->hlcolor , LAYER_GUI);
224
224
context.color ().draw_filled_rect (Rectf (Vector (bg_rect.get_left (), bg_rect.get_bottom () - 35 ),
225
225
Sizef (bg_rect.get_width (), 2 )),
226
226
Color (1 .0f , 1 .0f , 1 .0f , 1 .0f ), LAYER_GUI);
@@ -252,7 +252,7 @@ Dialog::draw(DrawingContext& context)
252
252
context.color ().draw_text (Resources::normal_font, m_buttons[i].text ,
253
253
Vector (pos.x , pos.y - static_cast <float >(int (Resources::normal_font->get_height () / 2 ))),
254
254
ALIGN_CENTER, LAYER_GUI,
255
- i == m_selected_button ? ColorScheme::Menu::active_color : ColorScheme::Menu::default_color);
255
+ i == m_selected_button ? g_config-> activetextcolor : ColorScheme::Menu::default_color);
256
256
}
257
257
}
258
258
0 commit comments