From 94065a8058fb5fa071b8c222eb7a1f23bb75815d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Papp?= Date: Thu, 4 Jun 2026 11:42:22 +0200 Subject: [PATCH] [client/ui] Enable tray status row on Linux to avoid greyed-out indicator The informational status row at the top of the tray menu was disabled on Linux, which painted the connection-status indicator greyed-out. Enable it on Linux so the row renders at full opacity; it has no OnClick handler so clicking it remains a no-op. --- client/ui/tray_status_enabled_linux.go | 14 ++++++++++++++ client/ui/tray_status_enabled_other.go | 14 +++++++------- 2 files changed, 21 insertions(+), 7 deletions(-) create mode 100644 client/ui/tray_status_enabled_linux.go diff --git a/client/ui/tray_status_enabled_linux.go b/client/ui/tray_status_enabled_linux.go new file mode 100644 index 000000000..79e4acd21 --- /dev/null +++ b/client/ui/tray_status_enabled_linux.go @@ -0,0 +1,14 @@ +//go:build linux + +package main + +// statusRowEnabled reports whether the informational status row at the +// top of the tray menu should stay enabled. True on Linux: a disabled +// row is painted greyed-out, which makes the connection-status indicator +// at the top of the menu look washed-out. Keeping it enabled lets the +// row (and its coloured status dot) render at full opacity. The row has +// no OnClick handler, so clicking it is still a no-op — enabling only +// affects how it is drawn, not its behaviour. macOS disables the row +// (tray_status_enabled_other.go); Windows enables it for a different +// reason (tray_status_enabled_windows.go). +func statusRowEnabled() bool { return true } diff --git a/client/ui/tray_status_enabled_other.go b/client/ui/tray_status_enabled_other.go index 1e4c8a13c..5f0d16032 100644 --- a/client/ui/tray_status_enabled_other.go +++ b/client/ui/tray_status_enabled_other.go @@ -1,12 +1,12 @@ -//go:build !windows && !android && !ios && !freebsd && !js +//go:build !windows && !linux && !android && !ios && !freebsd && !js package main // statusRowEnabled reports whether the informational status row at the -// top of the tray menu should stay enabled. False on macOS and Linux: -// both platforms paint disabled menu rows at slightly reduced opacity -// without desaturating the leading bitmap, so the coloured status dot -// stays visible while the greyed-out label still signals to the user -// that the row is informational and not clickable. Windows opts in via -// the sibling tray_status_enabled_windows.go file. +// top of the tray menu should stay enabled. False on macOS: it paints +// disabled menu rows at slightly reduced opacity without desaturating +// the leading bitmap, so the coloured status dot stays visible while the +// greyed-out label still signals to the user that the row is +// informational and not clickable. Windows opts in via +// tray_status_enabled_windows.go; Linux via tray_status_enabled_linux.go. func statusRowEnabled() bool { return false }