How to change Sublime Text 2 selected tab color

后端 未结 7 1047
天命终不由人
天命终不由人 2020-12-23 20:12

I like the Sublime Text 2 default color scheme Monokai alot. The only problem is the tab colors, the selected tabs and the rest of the tabs all look the sam

7条回答
  •  离开以前
    2020-12-23 21:09

    If you change the color of active tab header - then you will loose the logic of that theme(tab header and body has the same color and looks like single object)

    Rather than changing the color of active tab header, the best approach is changing the color of non-active tab header, just change the "layer0.texture" value to white tab header background .png file in Default.sublime-theme:

    /** Tabs **/
    {
        "class": "tab_control",
    
        "layer0.texture": "Theme - Default/tab_mask_white.png",
        "layer0.inner_margin": [22, 4],
        "layer0.opacity": 1.0,
        "tint_index": 0,        // tint layer 0
        "tint_modifier": [255, 0, 0, 0],
    
        "layer1.texture": "",
        "layer1.inner_margin": [22, 4],
        "layer1.opacity": 0.0,
    
        "layer2.inner_margin": [22, 4],
    
        "content_margin": [24, 8, 23, 4],
        "max_margin_trim": 6,
        "hit_test_level": 0.4
    },
    

提交回复
热议问题