Skip to content

Commit

Permalink
chore: cargo fix and no .inverse() on horizontal_rule color
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Brue <ryanbrue.dev@gmail.com>
  • Loading branch information
ryanabx committed Aug 22, 2024
1 parent a74688a commit f087b7e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/app_tray/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::{
Expand Down
4 changes: 2 additions & 2 deletions src/panel.rs
Original file line number Diff line number Diff line change
@@ -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::{
Expand Down Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions src/settings_tray/clock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down

0 comments on commit f087b7e

Please sign in to comment.