fix missed logo changes

This commit is contained in:
deepend committed 2026-12-05 11:54:27 -06:00
1 parent 5dd3c50738
commit 192c108827
7 files changed
+20 -5

No files matched your search

+1 -1
View File
@@ -47,7 +47,7 @@ PROJECT_BRIEF =
# exceed 55 pixels and the maximum width should not exceed 200 pixels.
# Doxygen will copy the logo to the output directory.
PROJECT_LOGO = "src/pixmaps/zoitechat.png"
PROJECT_LOGO = "data/icons/zoitechat.png"
# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute)
# base path where the generated documentation will be put.
Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

+18 -3
View File
@@ -197,6 +197,9 @@ tray_gtk3_cache_pixbuf_icon (const char *basename, GdkPixbuf *pixbuf)
char *cache_dir;
char *filename;
char *path;
char *contents;
char *checksum;
gsize length;
if (!pixbuf || !basename)
return NULL;
@@ -208,13 +211,25 @@ tray_gtk3_cache_pixbuf_icon (const char *basename, GdkPixbuf *pixbuf)
return NULL;
}
filename = g_strdup_printf ("%s.png", basename);
/* Include the artwork in the cache key so upgrades and theme changes
* cannot reuse an icon cached by an older version. */
if (!gdk_pixbuf_save_to_buffer (pixbuf, &contents, &length, "png", NULL, NULL))
{
g_free (cache_dir);
return NULL;
}
checksum = g_compute_checksum_for_data (G_CHECKSUM_SHA256,
(const guchar *)contents, length);
filename = g_strdup_printf ("%s-%s.png", basename, checksum);
g_free (checksum);
path = g_build_filename (cache_dir, filename, NULL);
g_free (filename);
g_free (cache_dir);
if (!g_file_test (path, G_FILE_TEST_EXISTS))
gdk_pixbuf_save (pixbuf, path, "png", NULL, NULL);
if (!g_file_test (path, G_FILE_TEST_EXISTS) &&
!g_file_set_contents (path, contents, length, NULL))
g_clear_pointer (&path, g_free);
g_free (contents);
return path;
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 201 KiB

After

Width:  |  Height:  |  Size: 201 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

+1 -1
View File
@@ -122,7 +122,7 @@ if (-not (Test-Path (Join-Path $source 'zoitechat.exe'))) {
$repoRoot = (Resolve-Path (Join-Path $PSScriptRoot '..\..')).Path
$templatePath = Join-Path $PSScriptRoot 'AppxManifest.xml.in'
$iconPath = Join-Path $repoRoot 'data\icons\zoitechat.png'
$iconPath = Join-Path $repoRoot 'data\icons\zoitechat-256.png'
if (-not (Test-Path $templatePath)) {
throw "MSIX manifest template is missing: $templatePath"