From 1b235bba002c60b348624285adbb199a8124beb1 Mon Sep 17 00:00:00 2001 From: dmitry-erin Date: Tue, 3 Sep 2024 12:40:10 +0300 Subject: [PATCH] Add status icons, clean some warnings Signed-off-by: dmitry-erin --- src/control_panel_gui.gresource.xml | 3 ++ src/icons/ellipse_green.svg | 3 ++ src/icons/ellipse_red.svg | 3 ++ src/icons/ellipse_yellow.svg | 3 ++ src/ui/vm_settings.ui | 46 ++++++++++++++++++++++------- src/vm_settings.rs | 19 ++++++++++++ 6 files changed, 66 insertions(+), 11 deletions(-) create mode 100644 src/icons/ellipse_green.svg create mode 100644 src/icons/ellipse_red.svg create mode 100644 src/icons/ellipse_yellow.svg diff --git a/src/control_panel_gui.gresource.xml b/src/control_panel_gui.gresource.xml index d69fa4b..c85ef6a 100755 --- a/src/control_panel_gui.gresource.xml +++ b/src/control_panel_gui.gresource.xml @@ -37,5 +37,8 @@ icons/icon_arrow.svg icons/icon_close.svg icons/icon_download.svg + icons/ellipse_green.svg + icons/ellipse_yellow.svg + icons/ellipse_red.svg diff --git a/src/icons/ellipse_green.svg b/src/icons/ellipse_green.svg new file mode 100644 index 0000000..e4f7f8d --- /dev/null +++ b/src/icons/ellipse_green.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/icons/ellipse_red.svg b/src/icons/ellipse_red.svg new file mode 100644 index 0000000..17fdcfb --- /dev/null +++ b/src/icons/ellipse_red.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/icons/ellipse_yellow.svg b/src/icons/ellipse_yellow.svg new file mode 100644 index 0000000..03d882a --- /dev/null +++ b/src/icons/ellipse_yellow.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/ui/vm_settings.ui b/src/ui/vm_settings.ui index cc24a35..a94e738 100644 --- a/src/ui/vm_settings.ui +++ b/src/ui/vm_settings.ui @@ -23,14 +23,39 @@ - - - No status + + + horizontal 20 - 10 - 0 - 10 - start + center + 20 + false + false + + + true + false + 0 + center + false + false + 8 + + + + + + No status + 10 + 10 + 10 + 10 + start + center + 0.0 + 0.5 + + @@ -56,9 +81,8 @@ 10 - True - False - + true + false 16 20 @@ -67,7 +91,7 @@ This VM is secure! - 20 + 10 10 10 10 diff --git a/src/vm_settings.rs b/src/vm_settings.rs index 6ab27f6..fd449e1 100644 --- a/src/vm_settings.rs +++ b/src/vm_settings.rs @@ -24,6 +24,8 @@ mod imp { #[template_child] pub vm_status_label: TemplateChild