3 Commits

Author SHA1 Message Date
c0119cc57e Fix KDE Wayland headerbar button layout 2026-03-22 13:20:55 -06:00
aead92d9e4 Bump to 2.18.0~pre5 + changelog/AppStream 2026-03-22 11:48:57 -06:00
deepend-tildeclub
7cc5d14045 Merge pull request #146 from ZoiteChat/theme-fixes
Apply app theme CSS to menubar everywhere
2026-03-22 11:21:24 -06:00
6 changed files with 67 additions and 9 deletions

View File

@@ -1,6 +1,28 @@
ZoiteChat ChangeLog ZoiteChat ChangeLog
================= =================
2.18.0~pre5 (2026-03-22)
------------------------
- Overhauled preferences/config saving: fully staged and transactional, debounced
with flush on close, write failures now surfaced.
- Overhauled GTK theme handling: live preview, correct colour reset persistence,
proper file:// import paths, consistent menubar CSS.
- Fixed GTK entry scroll artifact in the input box.
- Hardened tray menu lifetime; fixed stale pointer crash on menu destruction.
- Fixed AppIndicator tray init for Wayland/source builds; skip redundant X11
tray probe for AppIndicator builds.
- Split topic/mode rows in channel bar, tighten spacing, persist userlist column widths.
- Preserve saved right-pane size on first layout.
- Fixed sounds prefs section.
- Fixed chanview tree layout and header alignment; tighten topic URL hit-testing.
- Dropped realpath() in favour of GLib-only absolute path build.
- Made About dialog links explicit; added GPL licence URL.
- Added licence headers to new source files.
- Windows installer: fixed VC++ redist URL, added non-plugin download fallback,
switched to registry-based runtime detection.
- Made libayatana-appindicator a required dep in PKGBUILD.
- Cleaned up Meson libperl detection.
2.18.0~pre4 (2026-03-15) 2.18.0~pre4 (2026-03-15)
------------------------ ------------------------

View File

@@ -29,6 +29,45 @@
<id>zoitechat.desktop</id> <id>zoitechat.desktop</id>
</provides> </provides>
<releases> <releases>
<release date="2026-03-22" version="2.18.0~pre5">
<description>
<p>Preferences and config saving:</p>
<ul>
<li>Overhauled preferences/config saving: fully staged and transactional, debounced with flush on close, write failures now surfaced.</li>
</ul>
<p>GTK theme and UI:</p>
<ul>
<li>Overhauled GTK theme handling: live preview, correct colour reset persistence, proper <code>file://</code> import paths, consistent menubar CSS.</li>
<li>Fixed GTK entry scroll artifact in the input box.</li>
<li>Split topic/mode rows in channel bar, tighten spacing, persist userlist column widths.</li>
<li>Preserve saved right-pane size on first layout.</li>
<li>Fixed sounds prefs section.</li>
<li>Fixed chanview tree layout and header alignment; tighten topic URL hit-testing.</li>
</ul>
<p>Tray:</p>
<ul>
<li>Hardened tray menu lifetime; fixed stale pointer crash on menu destruction.</li>
<li>Fixed AppIndicator tray init for Wayland/source builds; skip redundant X11 tray probe for AppIndicator builds.</li>
</ul>
<p>Build and packaging:</p>
<ul>
<li>Dropped <code>realpath()</code> in favour of GLib-only absolute path build.</li>
<li>Made About dialog links explicit; added GPL licence URL.</li>
<li>Added licence headers to new source files.</li>
<li>Windows installer: fixed VC++ redist URL, added non-plugin download fallback, switched to registry-based runtime detection.</li>
<li>Made <code>libayatana-appindicator</code> a required dep in PKGBUILD.</li>
<li>Cleaned up Meson libperl detection.</li>
</ul>
</description>
</release>
<release date="2026-03-22" version="2.18.0~pre5">
<description>
<p>Version metadata update:</p>
<ul>
<li>Bumped release version references to <code>2.18.0~pre5</code> across build and packaging files.</li>
</ul>
</description>
</release>
<release date="2026-03-14" version="2.18.0~pre4"> <release date="2026-03-14" version="2.18.0~pre4">
<description> <description>
<p>UI fixes, topic bar improvements, and selection styling updates:</p> <p>UI fixes, topic bar improvements, and selection styling updates:</p>

View File

@@ -1,5 +1,5 @@
project('zoitechat', 'c', project('zoitechat', 'c',
version: '2.18.0~pre4', version: '2.18.0~pre5',
meson_version: '>= 0.55.0', meson_version: '>= 0.55.0',
default_options: [ default_options: [
'c_std=c17', 'c_std=c17',

View File

@@ -19,7 +19,7 @@ else:
if not hasattr(sys, 'argv'): if not hasattr(sys, 'argv'):
sys.argv = ['<zoitechat>'] sys.argv = ['<zoitechat>']
VERSION = b'2.18.0~pre4' VERSION = b'2.18.0~pre5'
PLUGIN_NAME = ffi.new('char[]', b'Python') PLUGIN_NAME = ffi.new('char[]', b'Python')
PLUGIN_DESC = ffi.new('char[]', b'Python %d.%d scripting interface' % (sys.version_info[0], sys.version_info[1])) PLUGIN_DESC = ffi.new('char[]', b'Python %d.%d scripting interface' % (sys.version_info[0], sys.version_info[1]))
PLUGIN_VERSION = ffi.new('char[]', VERSION) PLUGIN_VERSION = ffi.new('char[]', VERSION)

View File

@@ -394,18 +394,15 @@ theme_manager_handle_theme_applied (void)
static gboolean static gboolean
theme_manager_is_kde_wayland (void) theme_manager_is_kde_wayland (void)
{ {
const char *wayland_display;
const char *desktop; const char *desktop;
char *desktop_lower; char *desktop_lower;
gboolean is_kde; gboolean is_kde;
wayland_display = g_getenv ("WAYLAND_DISPLAY");
if (!wayland_display || !wayland_display[0])
return FALSE;
desktop = g_getenv ("XDG_CURRENT_DESKTOP"); desktop = g_getenv ("XDG_CURRENT_DESKTOP");
if (!desktop || !desktop[0]) if (!desktop || !desktop[0])
desktop = g_getenv ("XDG_SESSION_DESKTOP"); desktop = g_getenv ("XDG_SESSION_DESKTOP");
if ((!desktop || !desktop[0]) && g_getenv ("KDE_FULL_SESSION"))
return TRUE;
if (!desktop || !desktop[0]) if (!desktop || !desktop[0])
return FALSE; return FALSE;
@@ -441,7 +438,7 @@ theme_manager_apply_wayland_kde_csd (GtkWidget *window)
headerbar = gtk_header_bar_new (); headerbar = gtk_header_bar_new ();
gtk_header_bar_set_show_close_button (GTK_HEADER_BAR (headerbar), TRUE); gtk_header_bar_set_show_close_button (GTK_HEADER_BAR (headerbar), TRUE);
gtk_header_bar_set_decoration_layout (GTK_HEADER_BAR (headerbar), "menu:minimize,maximize,close"); gtk_header_bar_set_decoration_layout (GTK_HEADER_BAR (headerbar), ":minimize,maximize,close");
icon_pixbuf = gdk_pixbuf_new_from_resource_at_scale ("/icons/zoitechat.svg", 32, 32, TRUE, NULL); icon_pixbuf = gdk_pixbuf_new_from_resource_at_scale ("/icons/zoitechat.svg", 32, 32, TRUE, NULL);
if (!icon_pixbuf) if (!icon_pixbuf)
icon_pixbuf = gdk_pixbuf_new_from_resource_at_scale ("/icons/zoitechat.png", 32, 32, TRUE, NULL); icon_pixbuf = gdk_pixbuf_new_from_resource_at_scale ("/icons/zoitechat.png", 32, 32, TRUE, NULL);

View File

@@ -1 +1 @@
2.18.0~pre4 2.18.0~pre5