Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change bright color of main window and scroll bar to dark in dark mode #16

Open
aviloff opened this issue May 30, 2022 · 4 comments
Open

Comments

@aviloff
Copy link

aviloff commented May 30, 2022

On mac os these stay bright. Is there a chance to make them dark too or control the color?

@sebshader
Copy link
Owner

sebshader commented May 30, 2022

this is kind of difficult, since pd is developed with the relevant option turned off, and the various dialogs are built around dark mode being disabled. In general I try to avoid messing with the preference files in order to keep as much compatibility with vanilla as possible.
I did have a convo w/ someone who changed the relevant parts themselves, I'll see if I can find it.

btw when you say "color of main window" you mean the bar at the top and not the logs right (which should be getting set with the color theme)? That actually may be able to be put in a color option..

@sebshader
Copy link
Owner

sebshader commented May 30, 2022

you should be able to color the main console part: If not it is some bug
Screen Shot 2022-05-30 at 2 40 50 PM

@aviloff aviloff changed the title Change bright color of main window and scroll bard to dark in dark mode Change bright color of main window and scroll bar to dark in dark mode May 30, 2022
@aviloff
Copy link
Author

aviloff commented May 30, 2022

Thanks a lot for your brilliant effort of saving users' eyes at night.

As you understand I was asking about the remaining bright bits on the sides of the screenshot you sent.

@sebshader
Copy link
Owner

sebshader commented May 31, 2022

so copying from my discussion w/ narcell on the pd-next thread at the pd forum https://forum.puredata.info/topic/10943/a-little-pd-mod/50:
narcell:
(1) I tried to make the menu bar to dark with the Info.plist file and it worked for a while but the next time when im tried to run Pd the UI was white again but the os appearance was dark... can anyone help with this specific thing?

to try this:
Open Pd/Content/Info.plist in TextEdit or any Plist editor (on mac) and replace the NSRequiresAquaSystemAppearance to look like this:

<key>NSRequiresAquaSystemAppearance</key>
<string>False</string>

me:
native dark window manager stuff like topbars, buttons, dropdowns etc. being reflected was disabled because it created too much inconsistency. So dark mode as a whole was removed.

here's the commit: pure-data/pure-data@1665a2e

(from the comment it seems like it's set to true in 2 places, the defaults file as well as the plist?)
though I'm successfully reading from some defaults to tell if darkmode is on here... idk
me again:
so looking at it a bit more, if you do want to mess with it you can try deleting the exec defaults write $::pd_guiprefs::domain NSRequiresAquaSystemAppearance -bool true line in pd_guiprefs.tcl.

Then you probably also have to delete the ~/Library/Preferences/org.puredata.pd.pd-gui.plist file, or at least delete the

<key>NSRequiresAquaSystemAppearance</key>
<true/>

in it
narcell:
oh yes thank you! its dark now, i know now what 'inconsistency' you were talking about. its okay for now.
if I have the ability to do it I will try to find these bugs.
me later:
There is very little chance that dark mode will not be disabled in the 0.52 version. Getting it to look consistent is just too much trouble. You could try making a pull request for Pd to do that, though.

and it still might be too much trouble..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants