buymeasoda / soda-theme

Dark and light custom UI themes for Sublime Text
https://buymeasoda.github.io/soda-theme/
4.33k stars 517 forks source link

How to customize tabset background image ? #154

Closed coodoo closed 11 years ago

coodoo commented 11 years ago

Is there a way to modify the background png image and replace it with the one in the sublime-package ? thanks.

buymeasoda commented 11 years ago

Create a user theme customisation file based on the instructions in the wiki: https://github.com/buymeasoda/soda-theme/wiki/Theme-customisation

Them add your desired rules, pointing to the image(s) you want for the tabset background style.

For example, here's the Soda Theme version:

[
    // Tab set
    {
        "class": "tabset_control",
        "layer0.texture": "Theme - Soda/Soda Light/tabset-background.png",
        "layer0.inner_margin": [1, 7],
        "layer0.opacity": 1.0,
        "content_margin": [-4, 0, -4, 3]
    }
]

If you only want a different tabset background image, you would replace the PNG reference above with your own image.

The default theme however is more complex than Soda Theme because of the colour transparency design. To revert it to be exactly the same as the default theme, you'll need to grab all the appropriate rules for the tabset_control blocks and place them in your custom user theme file.

coodoo commented 11 years ago

Thanks for the information, where should I store the png file ? seems there's no way to replace an file in the original theme package.

buymeasoda commented 11 years ago

You can store the file anywhere that you can reach via the local file system. The path is relative to the theme file.

coodoo commented 11 years ago

I see, thanks.