Merge pull request #25 from lo2dev/rounded-search-entry

Rounded search entry
This commit is contained in:
Elias Projahn 2025-08-09 10:52:30 +02:00 committed by GitHub
commit 91b68b48e6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 18 additions and 4 deletions

View file

@ -6,6 +6,14 @@
font-size: smaller;
}
.rounded-entry {
border-radius: 999px;
padding-left: 12px;
padding-right: 12px;
padding-top: 3px;
padding-bottom: 3px;
}
.searchbar .searchtag {
background-color: alpha(currentColor, 0.1);
border-radius: 100px;

View file

@ -74,10 +74,16 @@ template $MusicusSearchPage: Adw.NavigationPage {
}
}
Gtk.SearchEntry search_entry {
placeholder-text: _("Enter composers, performers, works…");
margin-top: 24;
activate => $select() swapped;
Adw.Clamp {
Gtk.SearchEntry search_entry {
placeholder-text: _("Enter composers, performers, works…");
margin-top: 24;
activate => $select() swapped;
styles [
"rounded-entry"
]
}
}
Gtk.Stack stack {