diff --git a/assets/img/vbee3.png b/assets/img/vbee3.png new file mode 100644 index 00000000..bc610597 Binary files /dev/null and b/assets/img/vbee3.png differ diff --git a/src/icon.rs b/src/icon.rs index 96a398ea..9ed53ac9 100644 --- a/src/icon.rs +++ b/src/icon.rs @@ -59,6 +59,9 @@ fn icon(unicode: char) -> Text<'static> { .horizontal_alignment(alignment::Horizontal::Center) } + +/* TODO */ + pub fn xmodits_logo() -> image::Handle { use std::sync::OnceLock; static HANDLE: OnceLock = OnceLock::new(); @@ -67,3 +70,12 @@ pub fn xmodits_logo() -> image::Handle { .get_or_init(|| image::Handle::from_memory(include_bytes!("../assets/img/logos/icon.png"))) .clone() } + +pub fn vbee3() -> image::Handle { + use std::sync::OnceLock; + static HANDLE: OnceLock = OnceLock::new(); + + HANDLE + .get_or_init(|| image::Handle::from_memory(include_bytes!("../assets/img/vbee3.png"))) + .clone() +} \ No newline at end of file diff --git a/src/screen/about.rs b/src/screen/about.rs index dd9324c4..a8ded187 100644 --- a/src/screen/about.rs +++ b/src/screen/about.rs @@ -1,22 +1,28 @@ //! Information about xmodits use crate::app::Message; -use crate::icon::xmodits_logo; +use crate::icon::{vbee3, xmodits_logo}; use crate::theme; use crate::widget::helpers::{ centered_column_x, centered_container, centered_text, control, control_filled, }; use crate::widget::{Collection, Element}; -use iced::widget::{button, column, image, text}; +use iced::widget::{button, column, image, row, text}; use super::build_info; pub fn view<'a>() -> Element<'a, Message> { - let title = centered_text("XMODITS - by B0ney"); + let title = row![ + image(vbee3()), + centered_text("XMODITS - by B0ney"), + image(vbee3()), + ] + .align_items(iced::Alignment::Center) + .spacing(8); let about = centered_text("A tool to rip samples from various tracker modules."); let repo = button(text(env!("CARGO_PKG_REPOSITORY"))) .on_press(Message::Open(String::from(env!("CARGO_PKG_REPOSITORY")))) - .style(theme::Button::Hyperlink); + .style(theme::Button::HyperlinkInverted); let version = centered_text(format!("version: {}", env!("CARGO_PKG_VERSION"))); let image = image(xmodits_logo()); let about = centered_container(centered_column_x(column![