fix(theme): define light-theme input fields (darker FrameBg)
From the theme screenshot sweep: input fields, dropdowns and amount boxes were nearly invisible on light themes (Send form especially) — ImGuiCol_FrameBg was black@4% vs the dark theme's white@7%, so boxes blended into the white surface. Bump the light-theme FrameBg / hovered / active to 9/14/18% so inputs read as defined boxes. Affects all light skins. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -382,9 +382,11 @@ void ApplyColorThemeToImGui(const ColorTheme& theme)
|
||||
colors[ImGuiCol_FrameBgHovered] = ImVec4(1.0f, 1.0f, 1.0f, 0.10f);
|
||||
colors[ImGuiCol_FrameBgActive] = ImVec4(1.0f, 1.0f, 1.0f, 0.15f);
|
||||
} else {
|
||||
colors[ImGuiCol_FrameBg] = ImVec4(0, 0, 0, 0.04f);
|
||||
colors[ImGuiCol_FrameBgHovered] = ImVec4(0, 0, 0, 0.07f);
|
||||
colors[ImGuiCol_FrameBgActive] = ImVec4(0, 0, 0, 0.10f);
|
||||
// Light themes: the old 4/7/10% black fills were nearly invisible on a white surface (input
|
||||
// fields blended in). Darker fills so inputs/dropdowns read as defined boxes.
|
||||
colors[ImGuiCol_FrameBg] = ImVec4(0, 0, 0, 0.09f);
|
||||
colors[ImGuiCol_FrameBgHovered] = ImVec4(0, 0, 0, 0.14f);
|
||||
colors[ImGuiCol_FrameBgActive] = ImVec4(0, 0, 0, 0.18f);
|
||||
}
|
||||
|
||||
// Title bar
|
||||
|
||||
Reference in New Issue
Block a user