ttkbootstrap icon indicating copy to clipboard operation
ttkbootstrap copied to clipboard

ttk.Menu: Windows vs Linux

Open antrrax opened this issue 3 years ago • 2 comments

In ttk.Menu see the image comparison of the menus and submenus in Windows and in Linux/Ubuntu/Variations(Linux Mint). In Linux the arrow image has a raised aspect that changes to sunken when you hover over it. It doesn't have a modern look. menu-linux

--

In windows, the arrow has a more modern look. menu-windows

Would it be possible to improve this look in Linux, with a flat arrow: black that changes to white, the same as in Windows?

antrrax avatar Jan 08 '22 18:01 antrrax

Unfortunately, this is determined by the Window manager. There is no way to change it that I know of except to write a new menu class with custom images.

Here is one I worked on a while ago that basically rebuilt the menu from scratch... but it's pretty tricky and I'm not completely happy with the performance. I may revisit it given that I know more about the process now. But that will be down the road. The example below runs on a Linux virtual machine via replit.it msedge_WirBovujCr

I've got another idea in the works for another kind of menu widget that is designed with pages instead of cascades... kind of like what you'd see on a mobile app. This would be much easier to implement and would look pretty nice as well.

israel-dryer avatar Jan 08 '22 20:01 israel-dryer

I've got another idea in the works for another kind of menu widget that is designed with pages instead of cascades... kind of like what you'd see on a mobile app. This would be much easier to implement and would look pretty nice as well.

Good news, always choose the easiest option to maintain

antrrax avatar Jan 09 '22 22:01 antrrax