Skip to content

Commit

Permalink
Refactor title property to use He.ViewTitle component and add 'text-f…
Browse files Browse the repository at this point in the history
…ield' style to search field
  • Loading branch information
lainsce committed Sep 3, 2024
1 parent 55ebd33 commit ef0b0b9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions data/ui/window.blp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ template $BudsWindow : He.ApplicationWindow {
show-left-title-buttons: true;
show-right-title-buttons: bind album.folded;
width-request: 250;
title: _("Contacts");
title: He.ViewTitle {
label: _("Contacts");
};
scroller: sw;

[titlebar-toggle]
Expand All @@ -48,6 +50,7 @@ template $BudsWindow : He.ApplicationWindow {

styles [
"search",
"text-field"
]
}

Expand Down Expand Up @@ -85,7 +88,6 @@ template $BudsWindow : He.ApplicationWindow {
show-left-title-buttons: bind album.folded;
show-right-title-buttons: true;
show-back: bind album.folded;
viewtitle-label: "";
}

Stack stack {
Expand Down

0 comments on commit ef0b0b9

Please sign in to comment.