Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#79739 - [telegram-desktop] Auto night mode missing
Attached to Project:
Arch Linux
Opened by Victor Zamanian (victorz) - Tuesday, 19 September 2023, 20:24 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:19 GMT
Opened by Victor Zamanian (victorz) - Tuesday, 19 September 2023, 20:24 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:19 GMT
|
DetailsDescription:
The telegram-desktop package doesn't show the "Auto night mode/Match system settings" option anymore. I could swear this was available before, but now it's missing. The official builds from the telegram website work properly in this regard. Additional info: * package version(s): telegram-desktop 4.9.8-1 * config and/or log files etc. Not sure how to acquire logs from telegram-desktop... * link to upstream bug report, if any: https://github.com/telegramdesktop/tdesktop/issues/26782 Steps to reproduce: 1. Start telegram 2. Go to Chat settings 3. There should be a setting that allows you to match the system setting for dark/light theme, but it's gone now. See attached screenshot comparison. |
This task depends upon
Closed by Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:19 GMT
Reason for closing: Moved
Additional comments about closing: https://gitlab.archlinux.org/archlinux/p ackaging/packages/telegram-desktop/issue s/2
Saturday, 25 November 2023, 20:19 GMT
Reason for closing: Moved
Additional comments about closing: https://gitlab.archlinux.org/archlinux/p ackaging/packages/telegram-desktop/issue s/2
telegram-desktop_comparison.p...
> QT_QPA_PLATFORMTHEME=xdgdesktopportal telegram-desktop
I do get the option back in the chat settings. Could that be a solution? To use that launch command if the optional dependency `xdg-desktop-portal` is installed?
The current situation doesn't look that bad for me: the gtk3 plugin supports this properly and qt6ct could get an implementation if someone would actually care.
In my testing w/ extra/telegram-desktop and `QT_QPA_PLATFORMTHEME=gtk3` dynamic switching works both ways when tdesktop was started in light theme, but when tdesktop was started in dark theme it doesn't work at all, maybe it's a bug in tdesktop somewhere?
Now, my two cents:
Short term we can patch telegram to optionally force the old behavior via a runtime env var instead of a build time switch, or we can package qgnomeplatform for a bit longer and tell people on GNOME to use that instead.
Long term, ideally a portal listener could be upstreamed (there's already one in https://invent.kde.org/qt/qt/qtbase/-/blob/dev/src/gui/platform/unix/qgenericunixthemes.cpp?ref_type=heads, maybe it can be somehow reused?) But unknown->light should still be handled inside telegram, though I'd say that the portal platformtheme shouldn't fallback to the base theme in the case of None.
The portal's no-precedence (-> None -> Unknown) has another meaning: use app's default mode. There's no 1:1 mapping in Qt.
Mapping Unknown as Light on Telegram level will lead to problems when there's no portal and on other platforms without system dark mode support.
Yeah, it's a weird one, they create a listener but never use it. I created QTBUG-116197 a while ago about that but given their philosophy of highly relying on XDG_CURRENT_DESKTOP it might be that xdgdesktopportal will never be used outside of flatpak/snap and this QGenericUnixTheme may never evolve. A way forward might be for someone to contribute a GTK4+libadwaita QPT to support these modern GNOME things.
Or you can create a small custom QPT. Or you can add support to qt6ct. Such won't be that small anymore and all the other options don't require patching.