Changes
1 changed files (+11/-0)
-
-
@@ -17,6 +17,8 @@private Gtk.Text title_input = new Gtk.Text() { hexpand = true, receives_default = true, placeholder_text = "New timer", css_classes = { "dimmed" }, }; private Gtk.Button submit_button = new Gtk.Button() {
-
@@ -41,6 +43,15 @@ if (primary) {submit_button.add_css_class("suggested-action"); } else { submit_button.remove_css_class("suggested-action"); } }); // I don't want to include CSS at any cost. title_input.notify["text"].connect(() => { if (title_input.text.length == 0) { title_input.add_css_class("dimmed"); } else { title_input.remove_css_class("dimmed"); } }); }
-