Dark theme / context menu

Features wanted...
Post Reply
sflorg
Posts: 14
Joined: 11 May 2018 22:05
Location: Cherokee Nation in Oklahoma

Dark theme / context menu

Post by sflorg »

Just curious if there is a reason for right click context menus not being in "Dark Mode" also.
I searched, yet may have missed the conversation / answer.
Heidi-Ann
Image

Horst
Posts: 1085
Joined: 24 Jan 2021 12:27
Location: Germany

Re: Dark theme / context menu

Post by Horst »

To test it I switched to Dark mode and the right click context menu is there,
also the entry "Show 64-bit Context Menu" is shown.
On which place you are trying to get a context menu ?
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
Portable XYplorer (actual version, including betas)
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69

eil
Posts: 1617
Joined: 13 Jan 2011 19:44

Re: Dark theme / context menu

Post by eil »

i guess his question is "why context menu is not dark".
btw i myself wonder why XY r-click menu on empty space is same white.. :?:

@sflong right-click on files/folders gives system context menus = pick a dark Windows theme to get this menu dark.
Win 7 SP1 x64 100% 1366x768

sflorg
Posts: 14
Joined: 11 May 2018 22:05
Location: Cherokee Nation in Oklahoma

Re: Dark theme / context menu

Post by sflorg »

My system is set for dark theme throughout. XYp is set on Dark Theme, yet right click in XYp only shows system context menu as light. Same on all my rigs by the way.
Image

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Dark theme / context menu

Post by admin »

I'm not aware of a way to color this menu (made by CreatePopupMenu and TrackPopupMenuEx, see links below). The Windows settings (should) take care of this.

https://docs.microsoft.com/en-us/window ... epopupmenu
https://docs.microsoft.com/en-us/window ... opupmenuex

Horst
Posts: 1085
Joined: 24 Jan 2021 12:27
Location: Germany

Re: Dark theme / context menu

Post by Horst »

admin wrote: 20 Apr 2021 21:44 I'm not aware of a way to color this menu (made by TrackPopupMenu*). The Windows settings (should) take care of this.

* https://docs.microsoft.com/en-us/window ... kpopupmenu
There must be a way.
If I switch to Dark mode in my other file manager (Total Commander) the context menu is also dark.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
Portable XYplorer (actual version, including betas)
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69

sflorg
Posts: 14
Joined: 11 May 2018 22:05
Location: Cherokee Nation in Oklahoma

Re: Dark theme / context menu

Post by sflorg »

@Horst
Other file mangers? :naughty: Oh we have a two-timing trader in here :D
Concur I've seen no issues with others.

@Admin
Not a big concern, was just curious. . . The programs functionality is what truly matters, and XYplorer exceeds all my expectations by far.
Though sometimes it's the garnish that makes the meal appealing. (Food for thought, no pun intended)
Heidi-Ann
Image

eil
Posts: 1617
Joined: 13 Jan 2011 19:44

Re: Dark theme / context menu

Post by eil »

admin wrote: 20 Apr 2021 21:44 I'm not aware of a way to color this menu (made by TrackPopupMenu*).
what about XY own menu? why r-click menu on empty space in List brings same white menu?
Win 7 SP1 x64 100% 1366x768

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Dark theme / context menu

Post by admin »

Horst wrote: 20 Apr 2021 22:15
admin wrote: 20 Apr 2021 21:44 I'm not aware of a way to color this menu (made by TrackPopupMenu*). The Windows settings (should) take care of this.

* https://docs.microsoft.com/en-us/window ... kpopupmenu
There must be a way.
If I switch to Dark mode in my other file manager (Total Commander) the context menu is also dark.
But where is the way? :?

arbotylonumna
Posts: 1
Joined: 27 Jul 2021 14:38

Re: Dark theme / context menu

Post by arbotylonumna »

Perhaps setting SetPreferredAppMode and AllowDarkModeForWindow would do it?
I got it from https://stackoverflow.com/a/58547831i.
Also while scouring github for examples I found this https://github.com/tablacus/TablacusExp ... /TE/TE.cpp which seems to be using those properties and working?
Sorry if this is not helpful, I'm not a programmer, just a dark mode enthusiast.

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Dark theme / context menu

Post by admin »

Thanks, but I have tried SetPreferredAppMode before and it did not work (for XY). This is all still dark territory. Hardly any official documentation, and probably changing with each Windows update.

Post Reply