Skip to content

Commit

Permalink
add nice grey border on control row
Browse files Browse the repository at this point in the history
  • Loading branch information
agourlay committed Dec 7, 2024
1 parent 5bc3f9a commit 6f4b92f
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/ui/application.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
use iced::widget::{column, container, horizontal_space, pick_list, row, text};
use iced::{keyboard, stream, window, Alignment, Element, Size, Subscription, Task, Theme};
use iced::{
keyboard, stream, window, Alignment, Border, Color, Element, Size, Subscription, Task, Theme,
};
use std::borrow::Cow;
use std::fmt::Display;

Expand Down Expand Up @@ -425,6 +427,15 @@ impl RuxApplication {
.spacing(10)
.align_y(Alignment::Center);

let controls = container(controls)
.padding(10)
.style(|_theme| container::Style {
border: Border::default()
.color(Color::from_rgb8(0x40, 0x44, 0x4B)) // gray
.width(1),
..Default::default()
});

let status = row![
text(if let Some(song) = &self.song_info {
format!("{} by {}", song.name, song.artist)
Expand Down

0 comments on commit 6f4b92f

Please sign in to comment.