[11.x x32/x64] Any Linux users here? A visual bug on Wine

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: Stefan2, Hacker, petermad

Post Reply
siealex
Senior Member
Senior Member
Posts: 336
Joined: 2009-03-22, 16:36 UTC

[11.x x32/x64] Any Linux users here? A visual bug on Wine

Post by *siealex »

I hope everyone knows that TC runs well on Wine under Unix-like systems (and provides a lot of functionality absent in Linux alternatives). However, it has an annoying visual bug in Dark mode on such systems.
The menu bar is dark only under the menu items (Files .. Start and Help), between these sections it remains white. This bug does not depend on the system (Linux Mint, KDE Linux, ElementaryOS, Ubuntu, FreeBSD), on the desktop environment (KDE, Cinnamon, Gnome), on the graphic platform (X11 or Wayland) and on the Wine version (9.0, 10.x, 11.0, 11.5). Both 32-bit and 64-bit versions of TC are affected in the same exact way. Any thoughts?
Image: https://i.ibb.co/VWwvjGXb/4830.jpg
We are not so S.M.A.R.T. as we imagine...
siealex
Senior Member
Senior Member
Posts: 336
Joined: 2009-03-22, 16:36 UTC

Re: [11.x x32/x64] Any Linux users here? A visual bug on Wine

Post by *siealex »

ADD: the same bug exists on ReactOS as well!
We are not so S.M.A.R.T. as we imagine...
JOUBE
Power Member
Power Member
Posts: 1929
Joined: 2004-07-08, 08:58 UTC

Re: [11.x x32/x64] Any Linux users here? A visual bug on Wine

Post by *JOUBE »

[TC 10.50b7]Darkmode Mainmenu Wine-7.9 Debian 11 within subforum "TC Behaviour which will not be changed"
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 53139
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [11.x x32/x64] Any Linux users here? A visual bug on Wine

Post by *ghisler(Author) »

Unfortunately Wine ignores the custom menu background. However, there is a trick you can use with a fixed size window:
1. Go to menu Configuration - Options - Language
2. If you use internal English, change the menu file name manually to wcmd_eng.mnu
3. Click on "Edit"
4. Write the following between the lines STARTMENU and HELP_BREAK:
POPUP " "
END_POPUP
It should then look like this:

Code: Select all

STARTMENU
POPUP "                                                                         "
END_POPUP
HELP_BREAK
5. Save the file, but don't close it yet
6. Click on APPLY in Total Commander
7. If the menu is split into two lines, remove some spaces. If there is still white background, add some spaces
8. When done, there will still be a small gap you can't fix. Just adjust the Total Commander width until it's gone, and choose menu Configuration - Save position.
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 53139
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [11.x x32/x64] Any Linux users here? A visual bug on Wine

Post by *ghisler(Author) »

I have made some more tests on Linux to change the menu bar color, but nothing worked. SetMenuInfo with parameter MIM_BACKGROUND is unfortunately being ignored.

Moderator message from: ghisler(Author) » 2026-04-06, 10:02 UTC

Moved to will not be changed
Author of Total Commander
https://www.ghisler.com
JOUBE
Power Member
Power Member
Posts: 1929
Joined: 2004-07-08, 08:58 UTC

Re: [11.x x32/x64] Any Linux users here? A visual bug on Wine

Post by *JOUBE »

I experimented also a bit more and didn't find a complete solution, but only a workaround that mitigates the display problem and is easier to configure than other suggestions:

Removing HELP_BREAK *) (so that the help moves closer to the starter) moves the light area all the way to the right, which is a significant improvement in appearance.

By inserting several shorter

POPUP " "
END_POPUP

added _behind_ the help menü popup, you can gradually reduce the size of the light area.

Using several shorter ones makes it easier to achieve (almost) complete coverage with a dark background.

*) The main function of HELP_BREAK was always to move the menu point "Right" (as it exists in Norton Commander) to the far right. But even I stopped using the "Right" menue one decade or so...
Post Reply