Skip to content

Commit

Permalink
Use tag metaphor in the sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
kra-mo committed Mar 25, 2024
1 parent 3b5bbc9 commit e861935
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 4 deletions.
2 changes: 2 additions & 0 deletions data/icons/scalable/actions/tag-outline-add-symbolic.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions data/icons/scalable/actions/tag-outline-symbolic.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion hyperplane/editable_row.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def __init__(self, identifier: Optional[str] = None, **kwargs) -> None:
super().__init__(**kwargs)
HypHoverPageOpener.__init__(self)

self.image = Gtk.Image.new()
self.image = Gtk.Image(opacity=0.8)
self.label = Gtk.Label(ellipsize=Pango.EllipsizeMode.END)

self.box = Gtk.Box(spacing=12, margin_start=6)
Expand Down
2 changes: 1 addition & 1 deletion hyperplane/gtk/items-page.blp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Adw.StatusPage no_downloads {

Adw.StatusPage no_matching_items {
title: _("No Matching Items");
icon-name: "user-bookmarks-symbolic";
icon-name: "tag-outline-symbolic";
}

Adw.StatusPage empty_trash {
Expand Down
3 changes: 2 additions & 1 deletion hyperplane/gtk/window.blp
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ template $HypWindow : Adw.ApplicationWindow {
spacing: 12;
margin-start: 6;
Image {
icon-name: "bookmark-new-symbolic";
opacity: 0.8;
icon-name: "tag-outline-add-symbolic";
}
Label {
ellipsize: end;
Expand Down
4 changes: 4 additions & 0 deletions hyperplane/hyperplane.gresource.xml.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<gresources>
<gresource prefix="@PREFIX@/icons/scalable/actions/">
<file preprocess="xml-stripblanks" alias="tag-outline-symbolic.svg">../data/icons/scalable/actions/tag-outline-symbolic.svg</file>
<file preprocess="xml-stripblanks" alias="tag-outline-add-symbolic.svg">../data/icons/scalable/actions/tag-outline-add-symbolic.svg</file>
</gresource>
<gresource prefix="@PREFIX@">
<file preprocess="xml-stripblanks">gtk/guide.ui</file>
<file preprocess="xml-stripblanks">gtk/help-overlay.ui</file>
Expand Down
2 changes: 1 addition & 1 deletion hyperplane/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ def __update_tags(self, *_args: Any) -> None:

for tag_row in reversed(shared.tags):
self.sidebar_tag_rows.add(
row := HypTagRow(tag_row, "user-bookmarks-symbolic")
row := HypTagRow(tag_row, f"tag-outline-symbolic")
)
self.sidebar.insert(row, 2)

Expand Down

0 comments on commit e861935

Please sign in to comment.