jezdez / textmate-missingdrawer

[UNMAINTAINED] A better sidebar for Textmate.
MIT License
724 stars 35 forks source link

Preference for blue #2

Closed soffes closed 14 years ago

soffes commented 14 years ago

It would be great if there was some way to switch the background to blue instead of white. A defaults write would be an acceptable, easy interface in my opinion.

jezdez commented 14 years ago

Totally, I'd love that. A menu option (or a preference pane) would be even better.

christophmeissner commented 14 years ago

Sounds reasonable for me, too. +1 for the pref pane. Any other options to put there?

jezdez commented 14 years ago

Hm, maby the initial width of the sidebar?

jezdez commented 14 years ago

I wonder if the font and background color of the sidebar could be retrieved by looking at the current theme.. if that even makes sense.

soffes commented 14 years ago

I've been working on adding these features in my fork (haven't pushed anything yet). It would be cool if someone wanted to write the UI for it.

soffes commented 14 years ago

I added this in my fork. You can enable blue by typing

$ defaults write com.macromates.TextMate MDBlueSidebar 1

I mimicked Coda. It's blue when the window is in focus and turns gray when it resigns focus.

jezdez commented 14 years ago

Woot!

jezdez commented 14 years ago

Awesome!

christophmeissner commented 14 years ago

Pretty cool! I'd suggest to support a comma seperated RGB(A) string as bg color allowing "white" and "lightblue" (and some others) as special colors on a MDSidebarBackgroundColor user default and adding a property in the settings singleton. This way, we'd faciliate to add a preference pane using a drop down and a picker for that option later on.

soffes commented 14 years ago

Totally agree. I think making them preferences with color wells eventually would be awesome. Next on my list is hacking in a tab in the preferences.

jezdez commented 14 years ago

Closing this as this is implemented. Thanks all!