Update project icons and fix icon picker selection
Replace several icon names with available alternatives and fix icon selection by handling button clicks directly instead of flowbox activation.
This commit is contained in:
parent
d6ec8cbeb2
commit
e69db61f4a
@ -30,7 +30,7 @@ PROJECT_ICONS = [
|
|||||||
# Row 2: Development & Code
|
# Row 2: Development & Code
|
||||||
"application-x-executable-symbolic",
|
"application-x-executable-symbolic",
|
||||||
"text-x-generic-symbolic",
|
"text-x-generic-symbolic",
|
||||||
"code-symbolic",
|
"text-x-script-symbolic",
|
||||||
"utilities-terminal-symbolic",
|
"utilities-terminal-symbolic",
|
||||||
"package-x-generic-symbolic",
|
"package-x-generic-symbolic",
|
||||||
"software-update-available-symbolic",
|
"software-update-available-symbolic",
|
||||||
@ -38,14 +38,14 @@ PROJECT_ICONS = [
|
|||||||
# Row 3: Network & Web
|
# Row 3: Network & Web
|
||||||
"network-server-symbolic",
|
"network-server-symbolic",
|
||||||
"network-wireless-symbolic",
|
"network-wireless-symbolic",
|
||||||
"weather-clear-symbolic",
|
"network-workgroup-symbolic",
|
||||||
"globe-symbolic",
|
"network-vpn-symbolic",
|
||||||
"world-symbolic",
|
"preferences-desktop-locale-symbolic",
|
||||||
"web-browser-symbolic",
|
"web-browser-symbolic",
|
||||||
|
|
||||||
# Row 4: Tools & Actions
|
# Row 4: Tools & Actions
|
||||||
"document-edit-symbolic",
|
"document-edit-symbolic",
|
||||||
"preferences-system-symbolic",
|
"document-new-symbolic",
|
||||||
"system-search-symbolic",
|
"system-search-symbolic",
|
||||||
"view-list-symbolic",
|
"view-list-symbolic",
|
||||||
"emblem-system-symbolic",
|
"emblem-system-symbolic",
|
||||||
@ -56,7 +56,7 @@ PROJECT_ICONS = [
|
|||||||
"non-starred-symbolic",
|
"non-starred-symbolic",
|
||||||
"bookmark-new-symbolic",
|
"bookmark-new-symbolic",
|
||||||
"user-bookmarks-symbolic",
|
"user-bookmarks-symbolic",
|
||||||
"tag-symbolic",
|
"document-open-recent-symbolic",
|
||||||
"mail-send-symbolic",
|
"mail-send-symbolic",
|
||||||
|
|
||||||
# Row 6: Status & Symbols
|
# Row 6: Status & Symbols
|
||||||
|
|||||||
@ -59,12 +59,18 @@ class IconPickerDialog(Adw.Dialog):
|
|||||||
if icon_name == self.current_icon:
|
if icon_name == self.current_icon:
|
||||||
button.add_css_class("suggested-action")
|
button.add_css_class("suggested-action")
|
||||||
|
|
||||||
|
# Connect button click directly
|
||||||
|
button.connect('clicked', self.on_icon_button_clicked)
|
||||||
|
|
||||||
self.icon_flowbox.append(button)
|
self.icon_flowbox.append(button)
|
||||||
|
|
||||||
@Gtk.Template.Callback()
|
def on_icon_button_clicked(self, button):
|
||||||
def on_icon_selected(self, flowbox, child):
|
"""Handle icon button click."""
|
||||||
"""Handle icon selection."""
|
|
||||||
button = child.get_child()
|
|
||||||
if hasattr(button, 'icon_name'):
|
if hasattr(button, 'icon_name'):
|
||||||
self.emit('icon-selected', button.icon_name)
|
self.emit('icon-selected', button.icon_name)
|
||||||
self.close()
|
self.close()
|
||||||
|
|
||||||
|
@Gtk.Template.Callback()
|
||||||
|
def on_icon_selected(self, flowbox, child):
|
||||||
|
"""Handle icon selection (unused - kept for compatibility)."""
|
||||||
|
pass
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user