Sublime Forum

Problem customizing theme on ST4

#1

On Sublime Text 3 I could easily customize the theme so that some fonts would be bigger. Now, only the two first rules seem to work — the ones related to tabs, but not the bottom two (those about statusbar and sidebar, which has a painfully small text):

// Documentation at https://www.sublimetext.com/docs/themes.html
{
	"variables":
	{
	},
	"rules":
	[
	// Tabset
	{
            "class": "tabset_control",
            "content_margin": [4, 0, 8, 0],
            "tint_index": 0,
            "tab_height": 34,
            "tab_width": 350,
            "tab_min_width": 150,
            "tab_overlap": 16
        },

    	// Tabs
	{
            "class": "tab_label",
            "fg": [152, 152, 152],
            //"font.face": "var(font_face)",
            "font.face": "Open Sans Semibold",
            "font.size": 15.0,
            "shadow_color": [0, 0, 0, 0.25],
            "shadow_offset": [0, -1]
        },

        // Status bar
	{
		"class": "label_control",
		"parents": [{"class": "status_bar"}],
		"font.size": "16",
		"fg": "var(status_bar_label_color)",
		"shadow_color": "var(status_bar_label_shadow)",
		"shadow_offset": [0, 1]
	},

	// Side bar
	{
		"class": "sidebar_label",
		"fg": "var(sidebar_label)",
		"font.face": "var(font_face)",
		"font.size": "16"
	},
	]
}

What am I missing?

0 Likes

Can't change tab font size on Soda 3 Theme
#2

The default theme in ST4 has variables for font face and font size. Using those would be much simpler.

0 Likes

#3

Thanks, I got it. I copied the “variables”: section onto the customized Default.sublime-theme and tweaked the “font_size_lg” variable.

0 Likes