Sublime Forum

Changing status bar background color

#1

Hello. I am trying to change the background color of the status bar. I figured out how to change the font color, by editing this section in the .sublime-theme file.

{
    "class": "label_control",
    "parents": [{"class": "status_bar"}],
    "font.bold": false,
    "font.size": 16,
    "color": [255,255,255],

  },

Now, the color is only for the Font. How do I configure it to change the Background also? I tried to add another argument like this, but I guess it doesn’t work.
{
“class”: “label_control”,
“parents”: [{“class”: “status_bar”}],
“font.bold”: false,
“font.size”: 16,
“color”: [255,255,255],
“background”: [0,0,0],
},

Never coded in HTML before so I am just digging my way through the configuration file. Any help is greatly appreciated. Thanks

0 Likes

#2

you need to target class status_bar and set the layer0 tint (or texture)

    // Status Bar
    {
        "class": "status_bar",
        "layer0.tint": ["background", 0, 0, 100, 0.4],
        "layer0.opacity": 1.0,
        "content_margin": [8, 4, 12, 4]
    },
1 Like