Skip to content

Commit

Permalink
Merge pull request #30 from sundaram123krishnan/master
Browse files Browse the repository at this point in the history
Refactor
  • Loading branch information
Decodetalkers authored Nov 15, 2024
2 parents 9ba128c + 67e8c9a commit 9d0abec
Show file tree
Hide file tree
Showing 5 changed files with 1,364 additions and 1,339 deletions.
34 changes: 34 additions & 0 deletions lala_bar/src/config.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
use iced::widget::svg;
use std::sync::LazyLock;

pub const BEGINNING_UP_MARGIN: i32 = 10;

pub const UNIT_MARGIN: i32 = 135;

pub const EXTRAINF_MARGIN: i32 = BEGINNING_UP_MARGIN + 4 * UNIT_MARGIN;

pub const LAUNCHER_SVG: &[u8] = include_bytes!("../asserts/launcher.svg");

pub const RESET_SVG: &[u8] = include_bytes!("../asserts/reset.svg");

pub const ERROR_SVG: &[u8] = include_bytes!("../asserts/error.svg");

pub const GO_NEXT: &[u8] = include_bytes!("../asserts/go-next.svg");

pub static GO_NEXT_HANDLE: LazyLock<svg::Handle> =
LazyLock::new(|| svg::Handle::from_memory(GO_NEXT));

pub const GO_PREVIOUS: &[u8] = include_bytes!("../asserts/go-previous.svg");

pub static GO_PREVIOUS_HANDLE: LazyLock<svg::Handle> =
LazyLock::new(|| svg::Handle::from_memory(GO_PREVIOUS));

pub const PLAY: &[u8] = include_bytes!("../asserts/play.svg");

pub static PLAY_HANDLE: LazyLock<svg::Handle> = LazyLock::new(|| svg::Handle::from_memory(PLAY));

pub const PAUSE: &[u8] = include_bytes!("../asserts/pause.svg");

pub static PAUSE_HANDLE: LazyLock<svg::Handle> = LazyLock::new(|| svg::Handle::from_memory(PAUSE));

pub const MAX_SHOWN_NOTIFICATIONS_COUNT: usize = 4;
Loading

0 comments on commit 9d0abec

Please sign in to comment.