YabataDesign / afterglow-theme

[DEPRECATED] A minimal dark Theme for Sublime Text 2 and 3
http://yabatadesign.github.io/afterglow-theme/
2.11k stars 138 forks source link

Italicized comments only in Twilight? #12

Closed skeskali closed 10 years ago

skeskali commented 10 years ago

Why does it seem that comments only appear in italics in the Afterglow-twilight theme? The comments appear as normal text in all others on my computer, regardless of the monospace font I choose (Mac OS X version 10.9.3, SublimeText 3).

The top image is SublimeText 3 with the Monokai theme applied. The bottom is with the Twilight theme applied.

I'm sorry if this is a dumb question, but it's driving me nuts! :)

2014-06-27_18-35-40 2014-06-27_18-35-10

YabataDesign commented 10 years ago

Yes, my Color scheme (Afterglow.tmTheme) don't have italics in any scopes. Original Monokai (and Afterglow-monokai) has italics in some scopes, but not in comments. Instead, original Twilight (and Afterglow-twilight) has comments in italics. The behavior you see is correct.

If you want to change this, you must modify the file "xxxxx.tmTheme" you want. You must add the following code in comment's scope (or in scope you want to change) <key>fontStyle</key><string>italic</string>:

    <dict>
        <key>name</key>
        <string>Comment</string>
        <key>scope</key>
        <string>comment</string>
        <key>settings</key>
        <dict>
             <key>fontStyle</key>
             <string>italic</string>
             <key>foreground</key>
             <string>#xxxxxx</string>
        </dict>
     </dict>

I hope this helps you.

skeskali commented 10 years ago

Thanks so much for the reply and the help!

José María Clemente wrote:

Yes, my Color scheme (Afterglow.tmTheme) don't have italics in any scopes. Original Monokai (and Afterglow-monokai) has italics in some scopes, but not in comments. Instead, original Twilight (and Afterglow-twilight) has comments in italics. The behavior you see is correct.

If you want to change this, you must modify the file "xxxxx.tmTheme" you want. You must add the following code in comment's scope (or in scope you want to change) |fontStyleitalic|:

 <dict>
     <key>name</key>
     <string>Comment</string>
     <key>scope</key>
     <string>comment</string>
     <key>settings</key>
     <dict>
          <key>fontStyle</key>
          <string>italic</string>
          <key>foreground</key>
          <string>#xxxxxx</string>
     </dict>
  </dict>

I hope this helps you.

— Reply to this email directly or view it on GitHub https://github.com/YabataDesign/afterglow-theme/issues/12#issuecomment-47462959.