fix(ui): fix fractional scaling

This commit is contained in:
liushuyu 2021-10-15 14:37:18 -06:00
parent 6e7d045794
commit e990138200
No known key found for this signature in database
GPG key ID: 23D1CE4534419437

View file

@ -15,16 +15,9 @@ use wry::{
use log::Level; use log::Level;
#[derive(Deserialize, Debug)]
enum CallbackType {
SelectInstallDir { callback_name: String },
Log { msg: String, kind: String },
Test {},
}
/// Starts the main web UI. Will return when UI is closed. /// Starts the main web UI. Will return when UI is closed.
pub fn start_ui(app_name: &str, http_address: &str, is_launcher: bool) -> Result<()> { pub fn start_ui(app_name: &str, http_address: &str, is_launcher: bool) -> Result<()> {
let size = if is_launcher { (600, 300) } else { (1024, 600) }; let size = if is_launcher { (600.0, 300.0) } else { (1024.0, 600.0) };
info!("Spawning web view instance"); info!("Spawning web view instance");
let event_loop = EventLoop::new(); let event_loop = EventLoop::new();