feat: move default_icon to assets
This commit is contained in:
1 parent
dd9f0f362e
commit
e3e5f22bc7
3 files changed
+1
-1
No files matched your search
File renamed without changes.
File renamed without changes.
@@ -88,7 +88,7 @@ impl DesktopConfig {
|
|||||||
|
|
||||||
impl DesktopConfig {
|
impl DesktopConfig {
|
||||||
pub(crate) fn with_default_icon(mut self) -> Self {
|
pub(crate) fn with_default_icon(mut self) -> Self {
|
||||||
let bin: &[u8] = include_bytes!("default_icon.bin");
|
let bin: &[u8] = include_bytes!("./assets/default_icon.bin");
|
||||||
let rgba = Icon::from_rgba(bin.to_owned(), 460, 460).expect("image parse failed");
|
let rgba = Icon::from_rgba(bin.to_owned(), 460, 460).expect("image parse failed");
|
||||||
self.window.window.window_icon = Some(rgba);
|
self.window.window.window_icon = Some(rgba);
|
||||||
self
|
self
|
||||||
|
|||||||
Reference in new issue
Block a user