Add application id
This commit is contained in:
+6
-4
@@ -30,12 +30,10 @@ use iced::{keyboard, Subscription, Theme};
|
||||
use iced::{window, Font};
|
||||
use iced_core::window::Position;
|
||||
use iced_core::Size;
|
||||
// use mimalloc::MiMalloc;
|
||||
use rusqlite::Connection;
|
||||
use std::collections::HashMap;
|
||||
use iced_core::window::settings::PlatformSpecific;
|
||||
|
||||
// #[global_allocator]
|
||||
// static GLOBAL: MiMalloc = MiMalloc;
|
||||
const USER_FONT: Font = Font::with_name("Noto Sans JP");
|
||||
|
||||
fn main() -> iced::Result {
|
||||
@@ -43,10 +41,14 @@ fn main() -> iced::Result {
|
||||
iced::application(ScreenState::boot, ScreenState::update, ScreenState::view).window(window::Settings{
|
||||
position: Position::Centered,
|
||||
min_size: Some(Size::new(700.0_f32.into(), 700.0_f32.into())),
|
||||
platform_specific: PlatformSpecific {
|
||||
application_id: "JapLearn".to_string(),
|
||||
override_redirect: false
|
||||
},
|
||||
.. Default::default()
|
||||
})
|
||||
.subscription(subscription)
|
||||
.title("Kana learn app")
|
||||
.title("JapLearn")
|
||||
.settings(iced::Settings {
|
||||
default_text_size: iced::Pixels(18.0),
|
||||
..iced::Settings::default()
|
||||
|
||||
Reference in New Issue
Block a user