Change selection color to accent_color for better visibility and fix 2 unused imports

This commit is contained in:
Bu5hm4nn 2024-02-15 12:52:18 -06:00
parent d0aa9c9ef8
commit fda89dd542
3 changed files with 2 additions and 5 deletions

View File

@ -60,7 +60,6 @@ use egui_video::{AudioDevice, Player};
use egui_winit::egui::Rect;
use egui_winit::egui::Response;
use egui_winit::egui::ViewportBuilder;
use egui_winit::winit::raw_window_handle::HasDisplayHandle;
use gossip_lib::comms::ToOverlordMessage;
use gossip_lib::nip46::Approval;
use gossip_lib::{

View File

@ -185,7 +185,7 @@ impl ThemeDef for DefaultTheme {
hyperlink_color: Self::accent_color(true),
selection: Selection {
bg_fill: Color32::from_gray(40),
bg_fill: Self::accent_color(true),
stroke: Stroke::new(0.0, Color32::from_gray(220)),
},
@ -273,7 +273,7 @@ impl ThemeDef for DefaultTheme {
hyperlink_color: Self::accent_color(false),
selection: Selection {
bg_fill: Color32::from_gray(220), // DONE
bg_fill: Self::accent_color(false), // DONE
stroke: Stroke::new(1.0, Color32::from_gray(40)), // DONE
},

View File

@ -34,8 +34,6 @@ pub use switch::{switch_custom_at, switch_with_size};
mod textedit;
pub use textedit::TextEdit;
use self::list_entry::text_to_galley;
use super::GossipUi;
pub const DROPDOWN_DISTANCE: f32 = 10.0;