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

Previews on website #24

Open
idleberg opened this issue Jan 3, 2014 · 18 comments
Open

Previews on website #24

idleberg opened this issue Jan 3, 2014 · 18 comments

Comments

@idleberg
Copy link
Contributor

idleberg commented Jan 3, 2014

Hi guys

I've recently submitted several themes to your wonderful site. Once published I noticed the previews look different from what I'm used to.

screen shot 2014-01-03 at 17 13 40
Example using HTML file, same happens with other file types

Right, I'm using Sublime Text 3, but when I created those color schemes, I tested them in ST2 as well.

As of Tuesday, I'll have access to my ST2 installation at work, if that helps testing. Let me know!

@GianlucaGuarini
Copy link
Member

We use the ace tools to generate all the themes. I think some elements get colored with the fallback ( settings.foreground ) color of the theme wrongly because their scope is neither picked by our nodejs script.

Check on here the supported scopes: https://github.com/ajaxorg/ace/blob/master/tool/tmtheme.js#L16

I think this is an important feature we could add on our website. Thanks for discovering it

@sindresorhus
Copy link
Contributor

Seeing this with my theme too:

screen shot 2014-09-06 at 17 33 31

Which looks like this in Sublime:

screen shot 2014-09-06 at 17 37 00

@GianlucaGuarini
Copy link
Member

Hey guys hold on.. I am working on this but it's going to be a quite big update for our project, I want to be sure everything will work fine.

@GianlucaGuarini
Copy link
Member

@idleberg Now your color scheme is displayed properly in the preview mode on our site http://colorsublime.com/?q=kimbie check yourself

@sindresorhus the focus theme seems to be not compatible with the ace themes import tool I think the issue is here the "string" property overrides the "string.quoted" screwing up the output

  • here there is the list of the supported properties
  • here the our css template rules used to import all the themes

@idleberg
Copy link
Contributor Author

Great, thanks

@sindresorhus
Copy link
Contributor

It's a valid tmTheme. I'm not really interested in changing anything just because some tools doesn't fully support tmTheme's. Feel free to remove my theme.

@GianlucaGuarini
Copy link
Member

@sindresorhus I hope they could help us on this issue. In the meantime I would like to keep your theme on the site if it's not a problem for you

@sindresorhus
Copy link
Contributor

Sure

@kenwheeler
Copy link
Contributor

Same here

@GianlucaGuarini
Copy link
Member

@kenwheeler The error was inside the Brogrammer.tmTheme file https://github.com/Colorsublime/Colorsublime-Themes/blob/master/themes/Brogrammer.tmTheme#L176 Our importer failed importing empty color properties. Now it's fixed.. thanks for the bug report

@kenwheeler
Copy link
Contributor

Thanks @GianlucaGuarini

@ghost
Copy link

ghost commented Dec 28, 2014

sem titulo
On the left, the preview, on the right, the real theme. You guys know how to fix that? Should I send the file again?

@GianlucaGuarini
Copy link
Member

@godotAndCoffee you named wrongly your theme. Now it's fixed

@sobolevn
Copy link

sobolevn commented Jun 3, 2015

This is still happening.
This is a preview:

This is a preview

And here's a Sublime's window:

This is a result

@rselwyn
Copy link
Contributor

rselwyn commented Dec 20, 2015

I believe this is still an issue @GianlucaGuarini . This is definitely not my theme.

screen shot 2015-12-20 at 2 23 18 pm

@GianlucaGuarini
Copy link
Member

@rselwyn it's because of the theme id that contains the (er) string. Css like .hack(er) are not valid and must be escaped, the easiest solution is to rename the id of the theme https://github.com/Colorsublime/Colorsublime-Themes/blob/master/themes.json#L1456

@Odepax
Copy link
Contributor

Odepax commented May 9, 2016

I have the same problem as @sobolevn with my theme.
Did I miss something like an easter string such as (er)?

@shakeelmohamed
Copy link
Contributor

This is still happening. For example Java code isn't highlighted correctly, at least for my theme - monokai best.

java1

java2

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

8 participants