mirror of
https://github.com/Archeb/opentrace.git
synced 2026-04-25 16:55:58 +03:00
[GH-ISSUE #89] [BUG] UI Displays Incorrectly in Light Mode (Dark Mode is OK) #214
Labels
No labels
bug
enhancement
help wanted
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/opentrace#214
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @NeilCresswell on GitHub (May 25, 2025).
Original GitHub issue: https://github.com/Archeb/opentrace/issues/89
Describe the bug 描述你遇到的BUG
The UI displays incorrectly in light mode. Only the title bar displays correctly in light mode. All the other elements are displaying as if the operating system is in dark mode. For example the top menu area and traceroute table area both have dark backgrounds.
To Reproduce 复现方法
Select dark mode as the display preference in your OS.
Start app. All looks good.
Close app.
Select light mode as the display preference in your OS.
Start app. App displays incorrectly as described.
Screenshots (If applicable) 截图(如果有)
OpenTrace v1.4.4.0 in Light Mode
Environment 使用环境
OS: Fedora Linux Workstation v41 (64 bit) with Gnome 47.6 desktop
OpenTrace Version: v1.4.4.0 installed through Flathub (dl.flathub.org)
Additional context 补充说明
The UI displays correctly in dark mode, with a dark title bar, menu bar, and top half traceroute table display.
Extremely useful utility, thank you!
@fakeboboliu commented on GitHub (May 25, 2025):
It looks more like a theme issue,
because Opentrace uses Eto, which uses GTK3, and GTK3 does not support libadwaita's color scheme (which powers system dark mode in your system), so it is not affected by this switch, as shown below:
"legacy applications style" will affect it directly:
I think you can use gnome-tweaks to modify the theme if you want to change the theme display of OpenTrace (and other GTK3 apps).
By the way, I use Linux Mint with Cinnamon, so everything looks fine to me :)
@Archeb Perhaps we can provide a "dark mode" switch in the preferences window for better compatibility?
@NeilCresswell commented on GitHub (May 25, 2025):
I can confirm changing the legacy applications settings in Gnome Tweaks lets me change the app body to light or dark, with the title bar controlled by the OS preference for light or dark. Thanks for politely pointing out what should've been blindingly obvious!
Given that Gnome Settings isn't installed by default, so a user might have to add that, and they (like me) might not think to check there, I do think the suggestion for a dark mode switch in the preferences Window might be a good option. Perhaps have 3 choices: System, Light, & Dark, and default to system, to cater for folks who are unaffected such as Cinnamon users. Just an idea.
@fakeboboliu commented on GitHub (May 25, 2025):
For GTK applications, the application itself can only hint the system whether to enable dark mode (and its behaviour relies on whether the system theme has a dark variant and how it is designed), and cannot provide other options.
So the dark mode switch may: a) not work at all; b) work in a reversed way; c) cause the GUI to be unreadable, all depending on your theme.
I assume we cannot provide ordinary users with the level of flexibility they desire, and this switch also cannot meet non-professional users' expectations for its behaviour, so I am trying to discuss whether it has any significance as a compatibility solution.