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
f2b35b79d6
commit
fc2137c607
@ -30,7 +30,7 @@ PROJECT_ICONS = [
|
||||
# Row 2: Development & Code
|
||||
"application-x-executable-symbolic",
|
||||
"text-x-generic-symbolic",
|
||||
"code-symbolic",
|
||||
"text-x-script-symbolic",
|
||||
"utilities-terminal-symbolic",
|
||||
"package-x-generic-symbolic",
|
||||
"software-update-available-symbolic",
|
||||
@ -38,14 +38,14 @@ PROJECT_ICONS = [
|
||||
# Row 3: Network & Web
|
||||
"network-server-symbolic",
|
||||
"network-wireless-symbolic",
|
||||
"weather-clear-symbolic",
|
||||
"globe-symbolic",
|
||||
"world-symbolic",
|
||||
"network-workgroup-symbolic",
|
||||
"network-vpn-symbolic",
|
||||
"preferences-desktop-locale-symbolic",
|
||||
"web-browser-symbolic",
|
||||
|
||||
# Row 4: Tools & Actions
|
||||
"document-edit-symbolic",
|
||||
"preferences-system-symbolic",
|
||||
"document-new-symbolic",
|
||||
"system-search-symbolic",
|
||||
"view-list-symbolic",
|
||||
"emblem-system-symbolic",
|
||||
@ -56,7 +56,7 @@ PROJECT_ICONS = [
|
||||
"non-starred-symbolic",
|
||||
"bookmark-new-symbolic",
|
||||
"user-bookmarks-symbolic",
|
||||
"tag-symbolic",
|
||||
"document-open-recent-symbolic",
|
||||
"mail-send-symbolic",
|
||||
|
||||
# Row 6: Status & Symbols
|
||||
|
||||
@ -59,12 +59,18 @@ class IconPickerDialog(Adw.Dialog):
|
||||
if icon_name == self.current_icon:
|
||||
button.add_css_class("suggested-action")
|
||||
|
||||
# Connect button click directly
|
||||
button.connect('clicked', self.on_icon_button_clicked)
|
||||
|
||||
self.icon_flowbox.append(button)
|
||||
|
||||
@Gtk.Template.Callback()
|
||||
def on_icon_selected(self, flowbox, child):
|
||||
"""Handle icon selection."""
|
||||
button = child.get_child()
|
||||
def on_icon_button_clicked(self, button):
|
||||
"""Handle icon button click."""
|
||||
if hasattr(button, 'icon_name'):
|
||||
self.emit('icon-selected', button.icon_name)
|
||||
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