Harmonize theme backgrounds to eliminate dark gap between panels in v2.5.5

This commit is contained in:
RarDog
2026-08-28 14:24:52 +03:00
parent 90fda425bd
commit 3ca52e2649
+11 -8
View File
@@ -95,14 +95,14 @@ impl ThemeColors {
if is_dark { if is_dark {
Self { Self {
is_dark: true, is_dark: true,
bg_app: Color32::from_rgb(11, 15, 25), bg_app: Color32::from_rgb(15, 23, 42),
bg_sidebar: Color32::from_rgb(15, 23, 42), bg_sidebar: Color32::from_rgb(15, 23, 42),
bg_card: Color32::from_rgb(30, 41, 59), bg_card: Color32::from_rgb(30, 41, 59),
bg_card_secondary: Color32::from_rgb(15, 23, 42), bg_card_secondary: Color32::from_rgb(23, 32, 51),
bg_card_active: Color32::from_rgb(30, 58, 138), bg_card_active: Color32::from_rgb(30, 58, 138),
bg_hover: Color32::from_rgb(51, 65, 85), bg_hover: Color32::from_rgb(51, 65, 85),
stroke_border: Stroke::new(1.0_f32, Color32::from_rgb(51, 65, 85)), stroke_border: Stroke::new(1.0_f32, Color32::from_rgb(51, 65, 85)),
stroke_subtle: Stroke::new(1.0_f32, Color32::from_rgba_premultiplied(255, 255, 255, 15)), stroke_subtle: Stroke::new(1.0_f32, Color32::from_rgb(30, 41, 59)),
text_primary: Color32::from_rgb(248, 250, 252), text_primary: Color32::from_rgb(248, 250, 252),
text_secondary: Color32::from_rgb(203, 213, 225), text_secondary: Color32::from_rgb(203, 213, 225),
text_muted: Color32::from_rgb(148, 163, 184), text_muted: Color32::from_rgb(148, 163, 184),
@@ -111,14 +111,14 @@ impl ThemeColors {
} else { } else {
Self { Self {
is_dark: false, is_dark: false,
bg_app: Color32::from_rgb(241, 245, 249), bg_app: Color32::from_rgb(248, 250, 252),
bg_sidebar: Color32::from_rgb(255, 255, 255), bg_sidebar: Color32::from_rgb(248, 250, 252),
bg_card: Color32::from_rgb(255, 255, 255), bg_card: Color32::from_rgb(255, 255, 255),
bg_card_secondary: Color32::from_rgb(248, 250, 252), bg_card_secondary: Color32::from_rgb(241, 245, 249),
bg_card_active: Color32::from_rgb(219, 234, 254), bg_card_active: Color32::from_rgb(219, 234, 254),
bg_hover: Color32::from_rgb(226, 232, 240), bg_hover: Color32::from_rgb(226, 232, 240),
stroke_border: Stroke::new(1.0_f32, Color32::from_rgb(203, 213, 225)), stroke_border: Stroke::new(1.0_f32, Color32::from_rgb(226, 232, 240)),
stroke_subtle: Stroke::new(1.0_f32, Color32::from_rgb(226, 232, 240)), stroke_subtle: Stroke::new(1.0_f32, Color32::from_rgb(241, 245, 249)),
text_primary: Color32::from_rgb(15, 23, 42), text_primary: Color32::from_rgb(15, 23, 42),
text_secondary: Color32::from_rgb(51, 65, 85), text_secondary: Color32::from_rgb(51, 65, 85),
text_muted: Color32::from_rgb(100, 116, 139), text_muted: Color32::from_rgb(100, 116, 139),
@@ -5003,6 +5003,9 @@ impl eframe::App for ZeroSendApp {
style.visuals.dark_mode = is_dark; style.visuals.dark_mode = is_dark;
style.visuals.panel_fill = theme.bg_app; style.visuals.panel_fill = theme.bg_app;
style.visuals.window_fill = theme.bg_card; style.visuals.window_fill = theme.bg_card;
style.visuals.window_stroke = Stroke::NONE;
style.visuals.faint_bg_color = theme.bg_card_secondary;
style.visuals.extreme_bg_color = theme.bg_card_secondary;
style.visuals.override_text_color = Some(theme.text_primary); style.visuals.override_text_color = Some(theme.text_primary);
style.visuals.widgets.noninteractive.bg_fill = theme.bg_card; style.visuals.widgets.noninteractive.bg_fill = theme.bg_card;
style.visuals.widgets.noninteractive.bg_stroke = Stroke::NONE; style.visuals.widgets.noninteractive.bg_stroke = Stroke::NONE;