-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
22 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
#![windows_subsystem = "windows"] | ||
|
||
use iced::{window, Application, Settings, Size}; | ||
use iced::window; | ||
use iced::{Application, Settings, Size}; | ||
|
||
use application::{BlurThing, PREVIEW_SIZE}; | ||
|
||
|
@@ -12,9 +13,13 @@ mod undo_history; | |
mod utils; | ||
mod widgets; | ||
|
||
const ICON_DATA: &[u8] = include_bytes!("../../assets/icon/[email protected]"); | ||
|
||
pub fn main() -> iced::Result { | ||
let icon = iced::window::icon::from_file_data(ICON_DATA, None); | ||
let window = window::Settings { | ||
size: Size::new(PREVIEW_SIZE as f32 * 2.0, PREVIEW_SIZE as f32), | ||
icon: icon.ok(), | ||
resizable: false, | ||
..Default::default() | ||
}; | ||
|