diff --git a/qt/aqt/browser/sidebar/tree.py b/qt/aqt/browser/sidebar/tree.py index 06f138994..46e3b86fa 100644 --- a/qt/aqt/browser/sidebar/tree.py +++ b/qt/aqt/browser/sidebar/tree.py @@ -687,6 +687,7 @@ class SidebarTreeView(QTreeView): ########################### def _flags_tree(self, root: SidebarItem) -> None: + icon_off = "icons:flag-off-outline.svg" icon = "icons:flag.svg" icon_outline = "icons:flag-outline.svg" @@ -699,6 +700,13 @@ class SidebarTreeView(QTreeView): ) root.search_node = SearchNode(flag=SearchNode.FLAG_ANY) + root.add_simple( + tr.browsing_no_flag(), + icon=icon_off, + type=SidebarItemType.FLAG_NONE, + search_node=SearchNode(flag=SearchNode.FLAG_NONE), + ) + for flag in self.mw.flags.all(): root.add_child( SidebarItem( @@ -710,13 +718,6 @@ class SidebarTreeView(QTreeView): ) ) - root.add_simple( - tr.browsing_no_flag(), - icon=icon_outline, - type=SidebarItemType.FLAG_NONE, - search_node=SearchNode(flag=SearchNode.FLAG_NONE), - ) - # Tree: Tags ########################### @@ -825,7 +826,7 @@ class SidebarTreeView(QTreeView): def _notetype_tree(self, root: SidebarItem) -> None: notetype_icon = "icons:newspaper.svg" - template_icon = "icons:iframe-braces-outline.svg" + template_icon = "icons:application-braces-outline.svg" field_icon = "icons:form-textbox.svg" root = self._section_root( diff --git a/qt/aqt/data/qt/icons/BUILD.bazel b/qt/aqt/data/qt/icons/BUILD.bazel index 820925dfe..4ea3e4236 100644 --- a/qt/aqt/data/qt/icons/BUILD.bazel +++ b/qt/aqt/data/qt/icons/BUILD.bazel @@ -16,6 +16,7 @@ copy_mdi_icons( # flags "flag.svg", "flag-outline.svg", + "flag-off-outline.svg", # decks "book-outline.svg", @@ -25,7 +26,7 @@ copy_mdi_icons( # notetypes "newspaper.svg", # cardtype - "iframe-braces-outline.svg", + "application-braces-outline.svg", # fields "form-textbox.svg", diff --git a/qt/aqt/data/qt/icons/flag.svg b/qt/aqt/data/qt/icons/flag.svg deleted file mode 100644 index 5936653de..000000000 --- a/qt/aqt/data/qt/icons/flag.svg +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - -