From 594878614f5d33493bda3c7754ad2d88d75a40aa Mon Sep 17 00:00:00 2001 From: Revertron Date: Fri, 26 Mar 2021 12:39:19 +0100 Subject: [PATCH] Added horizontal tabs to the new interface. --- src/web_ui.rs | 1 + src/webview/index.html | 69 +++++++++++++++++++++++++++++++++++------- src/webview/scripts.js | 26 +++++++++++++++- src/webview/styles.css | 16 ++++++++++ 4 files changed, 100 insertions(+), 12 deletions(-) diff --git a/src/web_ui.rs b/src/web_ui.rs index b3a3fcc..0518c52 100644 --- a/src/web_ui.rs +++ b/src/web_ui.rs @@ -341,6 +341,7 @@ fn show_warning(web_view: &mut WebView<()>, text: &str) { } } +#[allow(dead_code)] fn show_success(web_view: &mut WebView<()>, text: &str) { let str = text.replace('\'', "\\'"); match web_view.eval(&format!("showSuccess('{}');", &str)) { diff --git a/src/webview/index.html b/src/webview/index.html index 8247840..7fb4f71 100644 --- a/src/webview/index.html +++ b/src/webview/index.html @@ -5,20 +5,64 @@ ALFIS {styles} - {scripts}
+ + + -
- +
- +
@@ -31,13 +75,12 @@
-
- +