7/25/2023 0 Comments Sublime font styleInteger units in a theme referring to dimensions are always specified inĭevice-independent pixels (DIP). Sublime Text willĪutomatically use the version when being displayed on a high-DPI All file paths in the theme definition should reference theĪ second version of each texture should also be included at double the DPI, added to the filename right before the extension. Saved at “normal” DPI, where each pixel in the file will be mapped to oneĭevice pixel. Texture Images □Īll textures in a theme are specified using PNG images. Subsequent rules that match will override properties from previous rules. All rules are tested, in order, against each element. Unlike CSS, a Sublime Text theme does not do specificity matching when applying The follow sections discuss information about images and how to specify styles. Some properties areĪvailable on all elements, while others are specific to an individual element. Properties refer to all other keys in the JSON objects. The "platforms" key is an array of strings specifying the what operating Parents must be ordered from furthest to closest parent. "attributes" that must be matched in a parent element. The "parents" key is an array of objects specifying the "class" and A complete theme will have many more rules to cover all elements used in An optional key “variables” with an objectĬontaining variable/value pairs may be added. Should be an object containing a key “rules” with the value of 3179Īn array of rules. sublime-theme file contains a single JSON document. It isĪ JSON format that specifies rules for matching elements and modifying theirĪ. Sublime Text themes are implemented via the. The properties set on each element can beĬonditionally changed based on user interaction and settings. UI can have up to four layers of textures or fills applied, with properties toĬontrol opacity and padding. Prevent texture degradation and provide full alpha control. The theme engine for Sublime Text is based on raster graphics. The highlighting of source code, markup and prose is Refers strictly to the look of the UI – buttons, select lists, the sidebar, The look of the Sublime Text interface is controlled by themes.
0 Comments
Leave a Reply. |