Daniel Brötzmann pushed to branch master at gajim / gajim


Commits:
0b541dc6 by wurstsalat at 2025-09-07T10:34:19+02:00
cfix: Icons: Replace default file icon and location icons with Lucide icons

- - - - -


3 changed files:

- gajim/common/util/preview.py
- + gajim/data/icons/hicolor/scalable/devices/lucide-file-symbolic.svg
- gajim/gtk/referenced_message.py


Changes:

=====================================
gajim/common/util/preview.py
=====================================
@@ -224,5 +224,5 @@ def guess_simple_file_type(file_path: str,
 
 def get_icon_for_mime_type(mime_type: str) -> Gio.Icon:
     if mime_type == '':
-        return Gio.Icon.new_for_string('mail-attachment')
+        return Gio.Icon.new_for_string('lucide-file-symbolic')
     return Gio.content_type_get_icon(mime_type)


=====================================
gajim/data/icons/hicolor/scalable/devices/lucide-file-symbolic.svg
=====================================
@@ -0,0 +1 @@
+<svg class="lucide lucide-file-icon lucide-file" width="24" height="24" 
stroke-linecap="round" stroke-linejoin="round" stroke-width="2" version="1.1" 
viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg";><path d="m6 1c-1.645 0-3 
1.355-3 3v16c0 1.645 1.355 3 3 3h12c1.645 0 3-1.355 3-3v-13a1.0001 1.0001 0 0 
0-0.29297-0.70703l-5-5a1.0001 1.0001 0 0 0-0.70703-0.29297zm0 2h8.5859l4.4141 
4.4141v12.586c0 0.56413-0.43587 1-1 1h-12c-0.56413 
0-1-0.43587-1-1v-16c0-0.56413 0.43587-1 1-1z" stop-color="#000000"/><path 
d="m14 1a1 1 0 0 0-1 1v4c0 1.645 1.355 3 3 3h4a1 1 0 0 0 1-1 1 1 0 0 
0-1-1h-4c-0.56413 0-1-0.43587-1-1v-4a1 1 0 0 0-1-1z" 
stop-color="#000000"/></svg>


=====================================
gajim/gtk/referenced_message.py
=====================================
@@ -121,7 +121,7 @@ def _add_content(self, message: mod.Message) -> None:
                 scheme = urlparse(message.text).scheme
                 if scheme == "geo":
                     location = split_geo_uri(message.text)
-                    icon = Gio.Icon.new_for_string("mark-location")
+                    icon = Gio.Icon.new_for_string("lucide-map-pin-symbolic")
                     label_text = format_geo_coords(
                         float(location.lat), float(location.lon)
                     )



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/0b541dc6fdd54e6f85b0d7363c98cd3c6ddd68b7

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/0b541dc6fdd54e6f85b0d7363c98cd3c6ddd68b7
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to