I
I
Igor Nistakov2015-08-11 18:39:17
Sublime Text
Igor Nistakov, 2015-08-11 18:39:17

How to change sidebar style in Sublime Text?

How to make the same dark sidebar (screenshot) with icons indicating the file type and tabs with sharp corners?f59f8e3098f045dab4acb3746b30eaab.jpg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kovalsky, 2015-08-11
@belloni

Click on Preferences -> Browse packages, you will be taken to the Packages folder. In it, you need to go to the Theme - Default folder and find the Default.sublime-theme file. In this file, you need to edit objects whose class field matches the sidebar_* mask.
For example:

...
{
    "class": "sidebar_container",
    // $base02:    #073642         
    "layer0.tint": [7,54,66],
    "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": [238,232,213],
    "layer0.opacity": 1.0,
    "dark_content": false
},
{
    "class": "sidebar_heading",
    // $base1:     #93a1a1         
    "color": [147,161,161],
    "font.bold": true,
    // $base3:     #fdf6e3         
    "shadow_color": [253,246,227],
    "shadow_offset": [0, 1]
},
{
    "class": "sidebar_heading",
    "parents":
    [
        { "class": "tree_row", "attributes": ["selected"] }
    ],

    "shadow_color": [160, 174, 192]
},
{
    "class": "sidebar_label",
    // $base01:    #586e75         
    "color": [88,110,117],
    "font.bold": false
    // , "shadow_color": [250, 250, 250], "shadow_offset": [0, 0]
},
{
    "class": "sidebar_label",
    "parents": [{"class": "tree_row", "attributes": ["selected"]}],
    // $base01:    #586e75         
    "color": [88,110,117]
    // , "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
}
...

Just don’t add this code, this is the code for a light sidebar xD
Look at this or this
Oh yes, you also want it to show you the type of file)
Here is a decent list of topics for sublime, for example, from 15 to 20 topics have file type designations, but they are some very perishing default. I did not find any information about a ready-made solution for customizing icons, but I think it will not be difficult for you to get to the folder with icons and to the config that links icons and file types)
Here is a whole bunch of icons for the sublime, and they are all very similar there the ones you have screened. I even think they are. Installation instructions are there.
All my writing didn't seem to make sense - the guy below gavea link to a theme that uses icons from your screen
by default) It seems that only the third sublime can use icons by default, so if you don’t have them on the second sublime, then just install Sublime Text 3 and roll this theme onto it . After installing the theme, it may seem that you slipped a fake and this shit (which you put) should be urgently removed. I don't know why the theme developer did this, but from the very beginning it looks... a little strange. Instructions on how to make from this topic what you see on the screenshots are in the same place, on the git.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question