Sublime Text3 修改侧边栏颜色

Sublime Text3 修改侧边栏颜色

话不多说,直接上教程
1.打开程序包,在user下面新建一个Default.sublime-theme文件Sublime Text3 修改侧边栏颜色_第1张图片Sublime Text3 修改侧边栏颜色_第2张图片
2.在Default.sublime-theme文件中贴上以下代码,windows同样适用

// An highlighted block
[
{
    "class": "sidebar_container",
    // $base02: #073642
    "layer0.tint": [115, 115, 115],
    "layer0.opacity": 1.0,
    "layer0.draw_center": false,
    "layer0.inner_margin": [0, 0, 1, 0],
    "content_margin": [0, 0, 1, 0]
},
{
    "class": "sidebar_tree",
    "row_padding": [8, 3],
    "indent": 12,
    "indent_offset": 17,
    "indent_top_level": false,
    // $base2: #eee8d5
    "layer0.tint": [40,41,35], // Background color
    "layer0.opacity": 1.0,
    "dark_content": false
},
{
    "class": "sidebar_heading",
    // $base1: #93a1a1
    "color": [204,204,204], // Font color
    "font.bold": true,
    // $base3: #fdf6e3
    "shadow_color": [204,204,204],
    "shadow_offset": [0, 1]
},
{
    "class": "sidebar_heading",
    "parents":
[
{ "class": "tree_row", "attributes": ["selected"] }
],

    "shadow_color": [160, 174, 192]
},
{
    "class": "sidebar_label",
    // $base01:    #586e75
    "color": [240, 157, 56],
    "font.bold": false
    // , "shadow_color": [250, 250, 250], "shadow_offset": [0, 0]
},
{
    "class": "sidebar_label",
    "parents": [{"class": "tree_row", "attributes": ["selected"]}],
    // $base01:    #586e75
    "color": [0, 92, 230]
    // , "shadow_color": [60, 60, 60], "shadow_offset": [0, 1]
},

{
    "class": "sidebar_label",
    "parents": [{"class": "tree_row", "attributes": ["expandable"]}],
    "settings": ["bold_folder_labels"],
    "font.bold": true
}
]

3.其中修改背景颜色和字体颜色的代码已经在后面加上了注释,下面贴上我自己的侧边栏
Sublime Text3 修改侧边栏颜色_第3张图片

你可能感兴趣的:(Sublime Text3 修改侧边栏颜色)