Skip to content

Commit

Permalink
feat(search): no query state redesign (#1082)
Browse files Browse the repository at this point in the history
  • Loading branch information
GeopJr authored Aug 10, 2024
1 parent 2fbd643 commit 6c917b7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Views/Search.vala
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class Tuba.Views.Search : Views.TabbedBase {

entry = new Gtk.Text () {
width_chars = 25,
placeholder_text = _("Enter Query"),
placeholder_text = _("Search Posts and Accounts"),
hexpand = true
};
entry.changed.connect (on_entry_change);
Expand Down Expand Up @@ -86,6 +86,8 @@ public class Tuba.Views.Search : Views.TabbedBase {

construct {
label = _("Search");
this.empty_timeline_icon = "system-search";
this.empty_state_title = _("Search");

bar = new Gtk.SearchBar () {
search_mode_enabled = true
Expand Down Expand Up @@ -145,7 +147,7 @@ public class Tuba.Views.Search : Views.TabbedBase {
query = entry.text.chug ().chomp ();
if (query == "") {
clear ();
base_status = new StatusMessage () { title = _("Enter Query") };
base_status = new StatusMessage ();
return;
}

Expand Down

0 comments on commit 6c917b7

Please sign in to comment.