Skip to content

Commit

Permalink
gui: use 21st Capital logo as window icon
Browse files Browse the repository at this point in the history
  • Loading branch information
jp1ac4 committed Oct 2, 2024
1 parent 2b58bd1 commit 40889be
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gui/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ fn main() -> Result<(), Box<dyn Error>> {
setup_panic_hook();

let mut settings = Settings::with_flags((config, log_level));
settings.window.icon = Some(image::liana_app_icon());
settings.window.icon = Some(image::retailer_app_icon());
settings.window.min_size = Some(Size {
width: 1000.0,
height: 650.0,
Expand Down
5 changes: 5 additions & 0 deletions gui/ui/src/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const LIANA_LOGO_GREY: &[u8] = include_bytes!("../static/logos/LIANA_SYMBOL_Gray
const LIANA_BRAND_GREY: &[u8] = include_bytes!("../static/logos/LIANA_BRAND_Gray.svg");
const WIZARDSARDINE_LETTERING: &[u8] = include_bytes!("../static/logos/logo-wizardsardine.svg");

const RETAILER_ICON: &[u8] = include_bytes!("../static/logos/21st-capital-app-icon.png");
const RETAILER_LOGO: &[u8] = include_bytes!("../static/logos/21ST_CAPITAL_White.svg");

pub fn liana_app_icon() -> icon::Icon {
Expand All @@ -22,6 +23,10 @@ pub fn retailer_logo() -> Svg {
Svg::new(h)
}

pub fn retailer_app_icon() -> icon::Icon {
icon::from_file_data(RETAILER_ICON, None).unwrap()
}

pub fn liana_brand_grey() -> Svg {
let h = Handle::from_memory(LIANA_BRAND_GREY.to_vec());
Svg::new(h)
Expand Down
Binary file added gui/ui/static/logos/21st-capital-app-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 40889be

Please sign in to comment.