Save settings button (#187)

* Show warning in images ui when invalid settings
This commit is contained in:
Philip Kristoffersen
2022-07-18 10:24:42 +02:00
committed by GitHub
parent 4c6c92dbc5
commit 6f1ffdf819
3 changed files with 29 additions and 2 deletions
+5
View File
@@ -17,6 +17,7 @@ pub mod ui_images {
use egui::{ColorImage, ImageData};
pub const IMPORT_GAMES_IMAGE: &[u8] = include_bytes!("../../resources/import_games_button.png");
pub const SAVE_IMAGE: &[u8] = include_bytes!("../../resources/save.png");
pub const LOGO_32: &[u8] = include_bytes!("../../resources/logo32.png");
pub const LOGO_ICON: &[u8] = include_bytes!("../../resources/logo_small.png");
@@ -24,6 +25,10 @@ pub mod ui_images {
ImageData::Color(load_image_from_memory(IMPORT_GAMES_IMAGE).unwrap())
}
pub fn get_save_image() -> ImageData {
ImageData::Color(load_image_from_memory(SAVE_IMAGE).unwrap())
}
pub fn get_logo() -> ImageData {
ImageData::Color(load_image_from_memory(LOGO_32).unwrap())
}