can't add themes

441 views
Skip to first unread message

descart avel

unread,
Jan 8, 2014, 4:02:39 PM1/8/14
to light-table...@googlegroups.com
I see several blog posts about adding themes by just dumping a css file in lighttable/core/css/theme

I did that... copied twilight.css and renamed it to twilight-tweaked.css, then replaced all classes in there to the new name.

i edit the preference file, save, and all text is black. i restart lighttable, and the text continues to be black.

What am i missing?

Also, congrats on the GPL release!

Josh Cole

unread,
Jan 8, 2014, 4:24:56 PM1/8/14
to light-table...@googlegroups.com
Have you made sure the theme is being found correctly? The new theme name should auto-complete.

If so, the theme is likely out of date. 6.0 seems to have broken many valid 5.20 themes, and it might take a while for them to be updated. You can try updating them yourself by comparing against one of the updated themes. I'm not actually sure what's broken though, since css under the theme directory applies only to CM. Perhaps a new major version of CM has released, or it's a silly and small issue like a containing div that has changed. I'll be investigating it when I get home from work.

descart avel

unread,
Jan 8, 2014, 5:23:51 PM1/8/14
to light-table...@googlegroups.com
Nope, the theme is not being found. I think this is the core issue. 

If i just copy one theme and rename it to "testme", it will never show up on the autocomplete. any ideas why?

i'm on win32 now. running the binary from C:\LightTable\LightTable.exe, adding my themes to C:\LightTable\core\css\themes

Light Table version
0.6.0
Binary version
0.8.4

Chris Granger

unread,
Jan 8, 2014, 5:45:00 PM1/8/14
to light-table...@googlegroups.com
Themes have to be provided using a behavior now. Here's an example from the default behaviors:

        (:lt.objs.style/provide-theme "3024-day" "/core/css/themes/3024-day.css")

That's name and path, and you add it to the :app key.

Cheers,
Chris.


--
You received this message because you are subscribed to the Google Groups "Light Table Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to light-table-discu...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

xavi

unread,
Jan 8, 2014, 5:45:15 PM1/8/14
to light-table...@googlegroups.com
Probably not the way it's meant to be [1], but I've been able to use a custom theme in the new Light Table 6.0 by copying its file to (in OS X)...

LightTable.app/Contents/Resources/app.nw/core/css/themes/mytheme.css 

Then in the default.behaviors file I added...

(:lt.objs.style/provide-theme "mytheme" "/core/css/themes/mytheme.css")

Finally, in the user.behaviors file, I added this to the :editors vector...

(:lt.objs.style/set-theme "mytheme")

Hope it helps,
Xavi

[1] because in OS X files should probably be in ~/Library/Application Support/LightTable, and all configuration should go to user.behaviors, not default.behaviors, but I couldn't make it work using these file locations

Josh Cole

unread,
Jan 9, 2014, 2:54:34 AM1/9/14
to light-table...@googlegroups.com
Figured out why custom skins/themes couldn't be provided outside of the LightTable root directory tree. Working on refining my fix for it now. You can follow along (or help out!) here: https://github.com/LightTable/LightTable/pull/990

Herwig Hochleitner

unread,
Mar 28, 2015, 1:17:23 PM3/28/15
to light-table...@googlegroups.com, Chris Granger
On Wednesday, January 8, 2014 at 11:45:00 PM UTC+1, Chris Granger wrote:
Themes have to be provided using a behavior now. Here's an example from the default behaviors:

Would you mind updating the documentation for that? We just had a pretty frustrating experience with custom themes not working as advertised.

kind regards
Reply all
Reply to author
Forward
0 new messages