From f087b7e85209743bd69470379090cc4d8373e76c Mon Sep 17 00:00:00 2001 From: Ryan Brue Date: Wed, 21 Aug 2024 22:54:17 -0500 Subject: [PATCH] chore: cargo fix and no .inverse() on horizontal_rule color Signed-off-by: Ryan Brue --- src/app_tray/mod.rs | 2 +- src/panel.rs | 4 ++-- src/settings_tray/clock.rs | 3 +-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/app_tray/mod.rs b/src/app_tray/mod.rs index 83a55b7..7e1dd42 100644 --- a/src/app_tray/mod.rs +++ b/src/app_tray/mod.rs @@ -7,7 +7,7 @@ use freedesktop_desktop_entry::DesktopEntry; use iced::{ event::{self, listen_with}, widget::{button, column, Container}, - Background, Border, Color, Element, Length, Radius, Theme, + Background, Border, Element, Length, Radius, Theme, }; use crate::{ diff --git a/src/panel.rs b/src/panel.rs index fdb96f7..c7a065a 100644 --- a/src/panel.rs +++ b/src/panel.rs @@ -1,6 +1,6 @@ use iced::{ widget::{column, row}, - Application, Background, Color, Command, Padding, Radius, Subscription, Theme, + Application, Command, Padding, Radius, Subscription, Theme, }; use crate::{ @@ -84,7 +84,7 @@ impl<'a> Application for Panel<'a> { }); iced::widget::container(column![ iced::widget::horizontal_rule(1).style(|theme: &Theme| iced::widget::rule::Style { - color: theme.palette().primary.inverse(), + color: theme.palette().primary, width: 1, radius: Radius::from(0), fill_mode: iced::widget::rule::FillMode::Full diff --git a/src/settings_tray/clock.rs b/src/settings_tray/clock.rs index 74301e3..1d5cc80 100644 --- a/src/settings_tray/clock.rs +++ b/src/settings_tray/clock.rs @@ -6,8 +6,7 @@ use std::{ use chrono::{Local, Timelike, Utc}; use iced::{ futures::SinkExt, - widget::{column, text::Style}, - Color, Command, Length, + widget::column, Command, Length, }; #[derive(Clone, Debug)]