rdbende / Sun-Valley-ttk-theme

A gorgeous theme for Tkinter/ttk, based on the Sun Valley visual style ✨
https://pypi.org/project/sv-ttk
MIT License
1.87k stars 110 forks source link

Fluent design? #131

Closed SchBenedikt closed 5 months ago

SchBenedikt commented 5 months ago

I have a quick question: Is Fluent Design already being planned or considered? Or does it just not work? Best regards, schBenedikt

rdbende commented 5 months ago

Hi, I'm not sure I understand your request. What Fluent design? I mean, isn't the current theme Fluent enough?

SchBenedikt commented 5 months ago

I probably expressed it incorrectly. I thought if a function is also being planned so that the background gets such an acrylic effect; so it is transparent and blurred.

rdbende commented 5 months ago

Unfortunately that is not possible to do with tkinter. The are some hacky attempts or even my experiments here, but they don't really work, and come with compromises (for example you can click through empty areas of the window, and the whole window gets frozen after you maximize it).

So sorry, this can't be implemented, and I don't even recommend the above mentioned hacks.

SchBenedikt commented 5 months ago

I thought you might have an idea too.... Presumably this only really works with systems like WinUI 3.

Andrew-J-Larson commented 2 weeks ago

@SchBenedikt technically you can, if you use pywinstyles (set theme acrylic) with your GUI library (as long as it supports it).

However, I don't think sv-ttk is optimized for the acrylic look, purely because of this mention in the documentation here: https://github.com/Akascape/py-window-styles/blob/main/Example_Documentation.md

Note: If you are applying themes like acrylic, then paint your UI window with black color using suitable methods.

So the theme would need to be altered to have a completely black background, and maybe some UI elements darkened to match the black background to match the acrylic look of other windows.