Sublime Forum

Increase side of the UI (menus, folders, etc.)

#1

How can increase the size of folders? They are so tiny it is driving me crazy.
My main window font is like 18 - but the folder list is so TINY i have to squint… Same with the status bar (lower left, where it says Line 1 Column 1 and lower right).


Can’t find a setting anywhere, and googling leads to really technical solutions.

Been a sublime user for years.

2 Likes

#2

You need to customize the theme. The example here should be of help: https://www.sublimetext.com/docs/3/themes.html#customization.

1 Like

#3
  1. Install PackageDev
  2. Run PackageDev: Edit Current Theme from Command Palette
  3. Paste the following snippet as a starting point into the right view.
{
    // http://www.sublimetext.com/docs/3/themes.html
    "variables": {
        "font_face": "system",
        "font_size": 12,
    },
    "rules": [

        // Label Controls
        {
            "class": "label_control",
            "font.face": "var(font_face)",
            "font.size": "var(font_size)",
        },

        // Quick Panels
        {
            "class": "quick_panel_label",
            "font.face": "var(font_face)"
            "font.size": "var(font_size)",
        },

        // Sidebar Header
        {
            "class": "sidebar_heading",
            "font.face": "var(font_face)",
            "font.size": "var(font_size)",
        },

        // Sidebar Label
        {
            "class": "sidebar_label",
            "font.face": "var(font_face)",
            "font.size": "var(font_size)",
        },

        // Tab Label
        {
            "class": "tab_label",
            "font.face": "var(font_face)",
            "font.size": "var(font_size)",
        },

        // Tooltip Control
        {
            "class": "tool_tip_label_control",
            "font.face": "var(font_face)",
            "font.size": "var(font_size)",
        },      
    ]
}
3 Likes

#4

There is no way I will remember this every time I install Sublime on a new machine…
Why isn’t this just part of the theme?

1 Like

#5

Normally you’d put all your customizations, including your themes in Packages > User and copy it to any new installation. Are you telling us you manually reset all your preferences when you install on a machine? That’s a lot of pointless work.

Why isn’t this just part of the theme?

Why isn’t the theme the way you want it? Probably because you didn’t write it.

1 Like

#6

What do you mean? Font face and font size definitions are actually part of a/the theme.

The provided snippet is an example of an user defined override file for the original theme to increase the font size of various GUI elements. You’ll might find most of those settings in the original theme as well.

1 Like

#7

To expand with two explicit examples of how to change the text size:

  1. If you want to scale the entire UI, including the size of buttons, tabs and so on, you can use the ui_scale setting in Preferences > Settings.
    {
        "ui_scale": 1.25,
    }
    
  2. The Default and Adaptive themes have variables that allow adjusting the size of the text in various portions of the theme. To change the variables for the Default theme, create a file named Packages/User/Default.sublime-theme and add the following:
    {
        "variables":
        {
            "font_size_sm": 13,
            "font_size": 14,
            "font_size_lg": 15,
        }
    }
    
    This will change the font size of all of the elements in the UI - the tab text, sidebar text, tooltip text, etc. You can play with different values to suit your needs.
7 Likes

#8

None of your solutions allow to change the menu font size.

0 Likes

#9

Menus are drawn using the native platform APIs. You change their size the same way you do for any native application.

0 Likes