Upgrade cellular client to v10 with readable play and assisted steering
This commit is contained in:
@@ -46,6 +46,37 @@ struct Toolkit {
|
||||
// scales with the window, which the bitmap font cannot do cleanly.
|
||||
if (io.Fonts->AddFontDefaultVector() == nullptr)
|
||||
return false;
|
||||
auto& style = ImGui::GetStyle();
|
||||
style.WindowRounding = 12;
|
||||
style.ChildRounding = 8;
|
||||
style.FrameRounding = 6;
|
||||
style.PopupRounding = 8;
|
||||
style.GrabRounding = 6;
|
||||
style.WindowPadding = {16, 14};
|
||||
style.FramePadding = {10, 6};
|
||||
style.ItemSpacing = {8, 9};
|
||||
auto* colors = style.Colors;
|
||||
colors[ImGuiCol_WindowBg] = {0.035F, 0.065F, 0.085F, 0.97F};
|
||||
colors[ImGuiCol_ChildBg] = {0.055F, 0.095F, 0.12F, 0.9F};
|
||||
colors[ImGuiCol_PopupBg] = {0.045F, 0.08F, 0.10F, 1.0F};
|
||||
colors[ImGuiCol_Border] = {0.18F, 0.31F, 0.34F, 0.65F};
|
||||
colors[ImGuiCol_Text] = {0.88F, 0.94F, 0.93F, 1.0F};
|
||||
colors[ImGuiCol_TextDisabled] = {0.52F, 0.66F, 0.68F, 1.0F};
|
||||
colors[ImGuiCol_FrameBg] = {0.10F, 0.18F, 0.21F, 1.0F};
|
||||
colors[ImGuiCol_FrameBgHovered] = {0.15F, 0.28F, 0.31F, 1.0F};
|
||||
colors[ImGuiCol_FrameBgActive] = {0.18F, 0.35F, 0.36F, 1.0F};
|
||||
colors[ImGuiCol_Button] = {0.10F, 0.30F, 0.28F, 1.0F};
|
||||
colors[ImGuiCol_ButtonHovered] = {0.16F, 0.45F, 0.38F, 1.0F};
|
||||
colors[ImGuiCol_ButtonActive] = {0.20F, 0.55F, 0.44F, 1.0F};
|
||||
colors[ImGuiCol_Header] = {0.10F, 0.26F, 0.28F, 1.0F};
|
||||
colors[ImGuiCol_HeaderHovered] = colors[ImGuiCol_ButtonHovered];
|
||||
colors[ImGuiCol_HeaderActive] = colors[ImGuiCol_ButtonActive];
|
||||
colors[ImGuiCol_TitleBg] = {0.04F, 0.09F, 0.12F, 1.0F};
|
||||
colors[ImGuiCol_TitleBgActive] = {0.08F, 0.20F, 0.22F, 1.0F};
|
||||
colors[ImGuiCol_CheckMark] = {0.40F, 0.88F, 0.68F, 1.0F};
|
||||
colors[ImGuiCol_Tab] = {0.08F, 0.17F, 0.20F, 1.0F};
|
||||
colors[ImGuiCol_TabSelected] = {0.12F, 0.32F, 0.31F, 1.0F};
|
||||
colors[ImGuiCol_TabHovered] = colors[ImGuiCol_ButtonHovered];
|
||||
base_style = ImGui::GetStyle();
|
||||
platform = ImGui_ImplSDL3_InitForSDLRenderer(window, target);
|
||||
return platform && attach_renderer(target);
|
||||
|
||||
Reference in New Issue
Block a user