Change the icons from groups to folders in the Images plugin, as per requests in the forums

This commit is contained in:
Raoul Snyman 2022-04-01 14:08:07 -07:00
parent 89a206c3ce
commit 90ea160eaa

View File

@ -188,7 +188,7 @@ class ImageMediaItem(MediaManagerItem):
create_widget_action(self.list_view, separator=True)
create_widget_action(
self.list_view,
text=UiStrings().AddGroup, icon=UiIcons().group, triggers=self.on_add_group_click)
text=UiStrings().AddGroup, icon=UiIcons().folder, triggers=self.on_add_group_click)
create_widget_action(
self.list_view,
text=translate('ImagePlugin', 'Add new image(s)'),
@ -205,7 +205,7 @@ class ImageMediaItem(MediaManagerItem):
Add custom buttons to the start of the toolbar.
"""
self.add_group_action = self.toolbar.add_toolbar_action('add_group_action',
icon=UiIcons().group,
icon=UiIcons().folder,
triggers=self.on_add_group_click)
def add_end_header_bar(self):
@ -287,7 +287,7 @@ class ImageMediaItem(MediaManagerItem):
"""
image_groups = self.manager.get_all_objects(ImageGroups, ImageGroups.parent_id == parent_group_id)
image_groups.sort(key=lambda group_object: get_natural_key(group_object.group_name))
folder_icon = UiIcons().group
folder_icon = UiIcons().folder
for image_group in image_groups:
group = QtWidgets.QTreeWidgetItem()
group.setText(0, image_group.group_name)