opentrace icon indicating copy to clipboard operation
opentrace copied to clipboard

[BUG] UI Displays Incorrectly in Light Mode (Dark Mode is OK)

Open NeilCresswell opened this issue 7 months ago • 3 comments

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!

NeilCresswell avatar May 25 '25 06:05 NeilCresswell

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:

Image

Image

"legacy applications style" will affect it directly:

Image

Image

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?

fakeboboliu avatar May 25 '25 08:05 fakeboboliu

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.

NeilCresswell avatar May 25 '25 12:05 NeilCresswell

System, Light, & Dark

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.

fakeboboliu avatar May 25 '25 12:05 fakeboboliu