Add application id

This commit is contained in:
2026-08-13 17:39:00 +03:00
parent e24af91659
commit d8e7cbbc36
2 changed files with 6 additions and 5 deletions
+6 -4
View File
@@ -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()