Add application id
This commit is contained in:
@@ -19,7 +19,6 @@ sha2 = "0.11.0"
|
|||||||
tokio = { version = "1.53.1", features = ["rt", "rt-multi-thread", "macros"] }
|
tokio = { version = "1.53.1", features = ["rt", "rt-multi-thread", "macros"] }
|
||||||
hex = "0.4.3"
|
hex = "0.4.3"
|
||||||
zstd = "0.13.3"
|
zstd = "0.13.3"
|
||||||
#mimalloc = "0.1.52"
|
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
criterion = "0.8.2"
|
criterion = "0.8.2"
|
||||||
|
|||||||
+6
-4
@@ -30,12 +30,10 @@ use iced::{keyboard, Subscription, Theme};
|
|||||||
use iced::{window, Font};
|
use iced::{window, Font};
|
||||||
use iced_core::window::Position;
|
use iced_core::window::Position;
|
||||||
use iced_core::Size;
|
use iced_core::Size;
|
||||||
// use mimalloc::MiMalloc;
|
|
||||||
use rusqlite::Connection;
|
use rusqlite::Connection;
|
||||||
use std::collections::HashMap;
|
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");
|
const USER_FONT: Font = Font::with_name("Noto Sans JP");
|
||||||
|
|
||||||
fn main() -> iced::Result {
|
fn main() -> iced::Result {
|
||||||
@@ -43,10 +41,14 @@ fn main() -> iced::Result {
|
|||||||
iced::application(ScreenState::boot, ScreenState::update, ScreenState::view).window(window::Settings{
|
iced::application(ScreenState::boot, ScreenState::update, ScreenState::view).window(window::Settings{
|
||||||
position: Position::Centered,
|
position: Position::Centered,
|
||||||
min_size: Some(Size::new(700.0_f32.into(), 700.0_f32.into())),
|
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()
|
.. Default::default()
|
||||||
})
|
})
|
||||||
.subscription(subscription)
|
.subscription(subscription)
|
||||||
.title("Kana learn app")
|
.title("JapLearn")
|
||||||
.settings(iced::Settings {
|
.settings(iced::Settings {
|
||||||
default_text_size: iced::Pixels(18.0),
|
default_text_size: iced::Pixels(18.0),
|
||||||
..iced::Settings::default()
|
..iced::Settings::default()
|
||||||
|
|||||||
Reference in New Issue
Block a user