From 863854790fb30220d2bd1261fa5a57d764a5f756 Mon Sep 17 00:00:00 2001 From: Revertron Date: Thu, 18 Mar 2021 15:09:26 +0100 Subject: [PATCH] Updated WebView version, added support for Edge engine on Windows, fixed some HTML. --- Cargo.toml | 6 +- src/main.rs | 1 + src/webview/index.html | 246 +++++++++++++++++++---------------------- 3 files changed, 120 insertions(+), 133 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 593770c..3fc7616 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "alfis" -version = "0.3.0" +version = "0.3.1" authors = ["Revertron "] edition = "2018" build = "build.rs" @@ -18,7 +18,7 @@ rust-crypto = "^0.2" blakeout = "0.1.0" num_cpus = "1.13.0" byteorder = "1.3.2" -web-view = { version = "0.7.2", features = [] } +web-view = { version = "0.7.3", features = ["edge"] } tinyfiledialogs = "3.3.10" serde = { version = "1.0.123", features = ["derive"] } serde_json = "1.0.42" @@ -36,7 +36,7 @@ derive_more = "0.99.9" [target.'cfg(windows)'.dependencies] thread-priority = "0.2.1" -winapi = { version = "0.3.7", features = ["impl-default", "wincon"]} +winapi = { version = "0.3.7", features = ["impl-default", "wincon", "shellscalingapi"]} [target.'cfg(target_os = "linux")'.dependencies] thread-priority = "0.2.1" diff --git a/src/main.rs b/src/main.rs index 050ec43..8b7da15 100644 --- a/src/main.rs +++ b/src/main.rs @@ -29,6 +29,7 @@ fn main() { #[cfg(windows)] unsafe { AttachConsole(ATTACH_PARENT_PROCESS); + winapi::um::shellscalingapi::SetProcessDpiAwareness(2); } let args: Vec = env::args().collect(); diff --git a/src/webview/index.html b/src/webview/index.html index eed9d6f..f9c626d 100644 --- a/src/webview/index.html +++ b/src/webview/index.html @@ -152,188 +152,174 @@