Home Download Buy Blog Forum Support

border-radius in a custom .tmTheme

border-radius in a custom .tmTheme

Postby psychomachine on Sun Jul 28, 2013 2:44 pm

Hi!

I have a custom theme in which I am trying to use border-radius to create rounded corners for a certain scope, but I can't get it to work. The scope is recognized all right (font-style, background and foreground), but border-radius or the browser-specific versions of it seem to produce no effect on the theme. My theme code sample is below.

Please let me know if there is any reason why border-radius wouldn't work in a Sublime theme or why my code might be wrong. Any tips will be greatly appreciated.

All best,
Psych

Code: Select all
<dict>
         <key>name</key>
         <string>usg</string>
         <key>scope</key>
         <string>usg</string>
         <key>settings</key>
         <dict>
            <key>fontStyle</key>
            <string>italic</string>
            <key>foreground</key>
            <string>#ffffff</string>
            <key>background</key>
            <string>#fd7702</string>
            <key>border-radius</key>
            <string>3px</string>
            <key>-moz-border-radius</key>
            <string>3px</string>
            <key>-webkit-border-radius</key>
            <string>3px</string>
         </dict>
      </dict>
psychomachine
 
Posts: 15
Joined: Thu Jan 17, 2013 8:45 pm

Re: border-radius in a custom .tmTheme

Postby facelessuser on Sun Jul 28, 2013 6:07 pm

Sublime Text is not a web browser, nor does it use CSS for its styling. There is no support for controlling border radius.
facelessuser
 
Posts: 1575
Joined: Tue Apr 05, 2011 7:38 pm

Re: border-radius in a custom .tmTheme

Postby psychomachine on Mon Jul 29, 2013 8:25 am

thanks. that's a shame though because ST can display rounded corners in text selection and highlights, so it also could provide the same facility to themes.
psychomachine
 
Posts: 15
Joined: Thu Jan 17, 2013 8:45 pm


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 8 guests