mirror of
https://github.com/Tim-Paik/neutauri.git
synced 2024-10-12 23:29:41 +00:00
Now the icon property can modify the icon of the windows exe file
This commit is contained in:
@ -91,7 +91,7 @@ pub struct WindowAttr {
|
||||
pub transparent: bool,
|
||||
pub decorations: bool,
|
||||
pub always_on_top: bool,
|
||||
pub window_icon: Option<Icon>,
|
||||
pub icon: Option<Icon>,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Clone, Debug)]
|
||||
|
@ -51,7 +51,7 @@ fn main() -> wry::Result<()> {
|
||||
true => window_builder.with_fullscreen(Some(Fullscreen::Borderless(None))),
|
||||
false => window_builder,
|
||||
};
|
||||
let window_builder = match res.window_attr.window_icon {
|
||||
let window_builder = match res.window_attr.icon {
|
||||
Some(ref icon) => window_builder.with_window_icon(Some(Icon::from_rgba(
|
||||
icon.rgba.clone(),
|
||||
icon.width,
|
||||
|
Reference in New Issue
Block a user