summary refs log tree commit diff
path: root/src/widgets.rs
diff options
context:
space:
mode:
authorVika <vika@fireburn.ru>2024-08-23 01:56:23 +0300
committerVika <vika@fireburn.ru>2024-08-23 02:17:00 +0300
commit1376d727e9017ce6b3cfd2ca3008d4d5cdd4ff2a (patch)
treeaddfb857787a08084acc55154d908c4fbc57af41 /src/widgets.rs
parent7dee9f44241f8f9f26590205485f9f8ab701b807 (diff)
downloadbowl-1376d727e9017ce6b3cfd2ca3008d4d5cdd4ff2a.tar.zst
Comply with GNOME HIG by ensuring our window can scale to a small size
Diffstat (limited to 'src/widgets.rs')
-rw-r--r--src/widgets.rs30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/widgets.rs b/src/widgets.rs
index eb5766b..e69de29 100644
--- a/src/widgets.rs
+++ b/src/widgets.rs
@@ -1,30 +0,0 @@
-use gtk::prelude::*;
-use relm4::{
-    gtk, RelmWidgetExt, WidgetTemplate,
-};
-
-
-#[relm4::widget_template(pub)]
-impl WidgetTemplate for FieldWithLabel {
-    view! {
-        #[name = "layout"]
-        gtk::Box {
-            set_orientation: gtk::Orientation::Horizontal,
-
-            #[name = "label"]
-            gtk::Label {
-                set_width_request: 150,
-                set_height_request: 36,
-            },
-
-            #[name = "input_wrapper"]
-            gtk::Box {
-                set_orientation: gtk::Orientation::Horizontal,
-                set_css_classes: &["linked"],
-
-                #[name = "input"]
-                gtk::Entry { set_hexpand: true },
-            },
-        }
-    }
-}