main
Elnu 1 year ago
parent f6775da3d0
commit c8969adee2

@ -22,7 +22,10 @@ pub fn KeyboardFromFile(
Ok(keyboard) => { Ok(keyboard) => {
set_result_message(Some(ResultMessageData { set_result_message(Some(ResultMessageData {
title: "Success".to_owned(), title: "Success".to_owned(),
message: format!("Loaded KLE layout <b>{}</b> successfully!", &keyboard.metadata.name), message: format!(
"Loaded KLE layout <b>{}</b> successfully!",
&keyboard.metadata.name
),
colorway: Colorway::Ok, colorway: Colorway::Ok,
})); }));
set_keyboard(Some(keyboard)); set_keyboard(Some(keyboard));

@ -26,7 +26,10 @@ pub fn KeyboardFromWeb(
Ok(keyboard) => { Ok(keyboard) => {
set_result_message(Some(ResultMessageData { set_result_message(Some(ResultMessageData {
title: "Success".to_owned(), title: "Success".to_owned(),
message: format!("Loaded KLE layout <b>{}</b> successfully!", &keyboard.metadata.name), message: format!(
"Loaded KLE layout <b>{}</b> successfully!",
&keyboard.metadata.name
),
colorway: Colorway::Ok, colorway: Colorway::Ok,
})); }));
set_keyboard(Some(keyboard)); set_keyboard(Some(keyboard));

@ -1,7 +1,6 @@
use super::SVGUnit; use super::SVGUnit;
use lazy_static::lazy_static; use lazy_static::lazy_static;
use regex::Regex; use regex::Regex;
use thiserror::Error;
use std::cmp::Ordering; use std::cmp::Ordering;
use std::fmt; use std::fmt;
use std::num::ParseFloatError; use std::num::ParseFloatError;
@ -11,6 +10,7 @@ use std::{
ops::{Add, Div, Mul, Rem, Sub}, ops::{Add, Div, Mul, Rem, Sub},
}; };
use strum::ParseError; use strum::ParseError;
use thiserror::Error;
#[derive(Debug, Clone, Copy)] #[derive(Debug, Clone, Copy)]
pub struct SVGMeasure { pub struct SVGMeasure {

Loading…
Cancel
Save