Change Background

107 views
Skip to first unread message

Ashish Kumar

unread,
Aug 2, 2011, 12:05:42 AM8/2/11
to Kod.app
I would love to be able to change the background color to white
instead of black. Any way to do this?

Gabriel Harrison

unread,
Aug 2, 2011, 2:41:17 AM8/2/11
to kod...@googlegroups.com
If you guys right-click on the Kod.app and Show Package Contents then navigate to the Contents/Resources/style folder you'll see a default.css file. The comments at the top of the file read:

/*
 * This is the default style of Kod. If you wish to modify this to your liking,
 * make a copy and put it in ~/.kod/mystyle.css then tell Kod where to find it
 * by setting a configuration key:
 *
 *  $ defaults write se.hunch.kod style/url ~/.kod/mystyle.css
 *
 * You might need to restart Kod for changes to take effect. Then, simply open
 * your ~/.kod/mystyle.css in Kod -- when edited and saved Kod will
 * automatically reload the style, thus you see the effect of your alterations.
 */

I imagine this is documented in the wiki someplace but editing this file or following the directions and creating a new file (like ~/.kod/mystyle.css as described in the comments) will allow you to change the font-size, background color and any other setting that is supported by the CSS engine that dictates how the app renders each part of each style. If you don't know CSS there are plenty of tutorials on the web that can guide you. Even a few educated guesses will go a long way to getting the editor to do what you'd like.

Enjoy and I hope this helps,
Gabriel

On Mon, Aug 1, 2011 at 9:05 PM, Ashish Kumar <ashs...@gmail.com> wrote:
I would love to be able to change the background color to white
instead of black. Any way to do this?

--
You received this message because you are subscribed to the Google
Groups "Kod.app" group. To unsubscribe from this group, send email to
kod-app+u...@googlegroups.com (More info at http://groups.google.com/group/kod-app)

Alex Chaffee

unread,
Aug 3, 2011, 2:41:04 PM8/3/11
to kod...@googlegroups.com
If that's really how it works then I have a simple feature request:

New Feature: "Edit Style". 
* copies default.css into ~/.kod/mystyle.css
* opens ~/.kod/mystyle.css in a new editor window.

Should I add that to https://github.com/rsms/kod/issues or is there a better place?

And if I get the time to make a patch for that feature, will you accept it?

---

So, does mystyle.css *replace* default.css or *augment* it? The latter would be better, since it would allow styles to be defined as diffs from other styles. And CSS already supports multiple style files, so it should be trivial (and I don't use that word trivially).

 - A

Reply all
Reply to author
Forward
0 new messages