Sublime Forum

Border-radius in a custom .tmTheme

#1

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

<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>

0 Likes

#2

Sublime Text is not a web browser, nor does it use CSS for its styling. There is no support for controlling border radius.

0 Likes

#3

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.

0 Likes