Ui improvements

This commit is contained in:
ahsanswr
2026-07-26 17:24:36 +02:00
committed by Guillaume Meunier
parent 4226485c57
commit 2e9f2c8646
21 changed files with 1560 additions and 1026 deletions
+7 -2
View File
@@ -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();