Changes
1 changed files (+11/-0)
-
-
@@ -17,6 +17,8 @@ namespace TimeTracker.Widget {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() {
-
@@ -43,6 +45,15 @@ namespace TimeTracker.Widget {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"); } }); } private void submit() {
-