Ui improvements
This commit is contained in:
committed by
Guillaume Meunier
parent
4226485c57
commit
2e9f2c8646
@@ -56,8 +56,7 @@ static theme dark_default()
|
||||
t.rounding = 8;
|
||||
t.card_rounding = 14;
|
||||
t.border_size = 1;
|
||||
t.font_scale = 1.0; // user multiplier; 100% maps to metrics::font_base
|
||||
t.background_alpha = 1.0f; // fully opaque panel by default
|
||||
t.font_scale = 1.0; // user multiplier; 100% maps to metrics::font_base
|
||||
return t;
|
||||
}
|
||||
|
||||
@@ -176,6 +175,12 @@ void set_theme(const theme & t)
|
||||
current() = t;
|
||||
}
|
||||
|
||||
float & background_alpha()
|
||||
{
|
||||
static float alpha = 0.90f; // translucent panels by default
|
||||
return alpha;
|
||||
}
|
||||
|
||||
void theme::apply() const
|
||||
{
|
||||
ImGuiStyle & style = ImGui::GetStyle();
|
||||
|
||||
Reference in New Issue
Block a user