sebshader / pdnext

Color-themed Pure data with different inlets & outlets for messages and signals
Other
45 stars 3 forks source link

[ LINUX ] Make pd-next respect ttk styles set via Xresources #28

Open burein-ita opened 6 months ago

burein-ita commented 6 months ago

On Windows and Mac OS ttk uses a native style.

On Linux, however, Pd and Pd-next default to the "default" style.

It's possible to select a different style by adding *TkTheme: nameOfTheme to the .Xresources file but it seems that the main Pd window and patch windows don't follow this setting.

Other dialogs, like the file picker, actually follow this setting. Like in this image with *TkTheme: clam:

clam

The main Pd window with the "default" style and the Open window with the "clam" style.

Would it be possible to make the main window respect the Xresources setting?

According to the tcl docs the style is set by ttk::setTheme.

sebshader commented 6 months ago

Hi, I'm definitely not opposed to it. However I usually like to include things that are proposals for pd vanilla. In that spirit, maybe we should open an issue/PR for this on the Pd repo and see what they say there.

If it isn't something they want to implement over there for some reason then I'll add it to just pdnext separately. (and if it is something they're open to then I'll just merge the change)

burein-ita commented 6 months ago

True, didn't think about that. Just opened an issue over there.