p-e-w / GTKDarkThemeVariantSetter

Make Sublime Text use the dark GTK+ theme variant (NO LONGER MAINTAINED)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

For Mac

phackwer opened this issue · comments

I know your code is for Xorg only. But, would it be possible to create same thing for Mac?

I found these discussions and sample code for doing such a thing, but I don't know how to bing pythin code to the cocoa framework of Mac.

https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/WinPanel/Tasks/SettingWindowAppearance.html

http://stackoverflow.com/questions/3044303/changing-color-of-the-nswindow-titlebar

I just wanted to discuss the idea with you. Not the implementation itself. I'm not a python developer, just PHP, C, C++, Java and .Net. :-/ Any thoughts?

BTW:

https://gist.github.com/phackwer/2bd92058a7dc8d68a35f

I made a mini how to that made Sublime a lot more confortable to use, and also created a new theme based on Spacegray that I think you may like it

https://github.com/phackwer/spacegray

The basic problem is that features such as "dark themes" are intended to be enabled by the application that creates the window, in which case passing a simple flag is enough. Sublime Text does not allow interception of the window creation process, but it turns out there is a way to hack this from outside using X.org properties. I doubt that such a possibility exists on Cocoa.