Sublime Forum

Adaptive Theme Command Palette Font?

#1

How would I go about finding what font the Command Palette(ctrl + P) uses?

Im on windows 10, ST3 Build 3143, using Adaptive Theme with Legacy Monokai colorscheme.

Im not talking about the “font_face” setting(aka the font, displayed in the editor. Its Consolas on my machine), im asking about the font that the Command Palette(and other similar menus) uses.

I tried unpacking Default, Theme -Default, Colorscheme - Default, etc with PackageResourceViewer, but couldnt find anything of relevance.

As per https://www.sublimetext.com/docs/3/themes.html#font_properties, when inspecting Adaptive.sublime-theme a couple mentions of ‘font.size’, ‘font.bold’, ‘font.italic’ are found, however, no ‘font.face’.

Where is this being set? What is the default value? or simply tell me what font is being used.

thanks

0 Likes

#2

Here’s my Packages/User/Adaptive.sublime-theme which overloads some of the defaults.

A look to the bottom of it will give you some hints about modifying font faces. I changed everything to Roboto Mono as I find monospace fonts more readable.

The stuff at the top fixes some IMHO coloring issues. May or may not be interesting for you.

[
    //
    // Making the background color of the tab set control the same
    // as for the sidebar.
    //

    {
        "class": "tabset_control",
        "tint_index": -1, // Disabling tab set tinting.
        "layer0.tint": ["background", 0, 0, 0, 0.4]
    },
    {
        "class": "tabset_control",
        "parents": [{"class": "window", "attributes": ["file_dark"]}],
        "layer0.tint": ["background", 255, 255, 255, 0.15]
    },
    {
        "class": "tabset_control",
        "parents": [{"class": "window", "attributes": ["file_medium"]}],
        "layer0.tint": ["background", 0, 0, 0, 0.2]
    },
    {
        "class": "tabset_control",
        "parents": [{"class": "window", "attributes": ["file_light"]}],
        "layer0.tint": ["background", 0, 0, 0, 0.1]
    },

    //
    // Fixing the color of the tab set icon buttons
    //

    {
        "class": "scroll_tabs_left_button",
        "parents": [
            {"class": "window", "attributes": ["file_dark"]},
            {"class": "tabset_control", "attributes": ["file_light"]}
        ],
        "layer0.tint": [255, 255, 255, 1.0]
    },
    {
        "class": "scroll_tabs_left_button",
        "parents": [
            {"class": "window", "attributes": ["file_medium_dark"]},
            {"class": "tabset_control", "attributes": ["file_light"]}
        ],
        "layer0.tint": [255, 255, 255, 1.0]
    },
    {
        "class": "scroll_tabs_left_button",
        "parents": [
            {"class": "window", "attributes": ["file_medium"]},
            {"class": "tabset_control", "attributes": ["file_light"]}
        ],
        "layer0.tint": [255, 255, 255, 1.0]
    },
    {
        "class": "scroll_tabs_left_button",
        "parents": [
            {"class": "window", "attributes": ["file_light"]},
            {"class": "tabset_control", "attributes": ["file_dark"]}
        ],
        "layer0.tint": [0, 0, 0, 0.4]
    },
    {
        "class": "scroll_tabs_left_button",
        "parents": [
            {"class": "window", "attributes": ["file_light"]},
            {"class": "tabset_control", "attributes": ["file_medium_dark"]}
        ],
        "layer0.tint": [0, 0, 0, 0.4]
    },
    {
        "class": "scroll_tabs_left_button",
        "parents": [
            {"class": "window", "attributes": ["file_light"]},
            {"class": "tabset_control", "attributes": ["file_medium"]}
        ],
        "layer0.tint": [0, 0, 0, 0.4]
    },

    {
        "class": "scroll_tabs_right_button",
        "parents": [
            {"class": "window", "attributes": ["file_dark"]},
            {"class": "tabset_control", "attributes": ["file_light"]}
        ],
        "layer0.tint": [255, 255, 255, 1.0]
    },
    {
        "class": "scroll_tabs_right_button",
        "parents": [
            {"class": "window", "attributes": ["file_medium_dark"]},
            {"class": "tabset_control", "attributes": ["file_light"]}
        ],
        "layer0.tint": [255, 255, 255, 1.0]
    },
    {
        "class": "scroll_tabs_right_button",
        "parents": [
            {"class": "window", "attributes": ["file_medium"]},
            {"class": "tabset_control", "attributes": ["file_light"]}
        ],
        "layer0.tint": [255, 255, 255, 1.0]
    },
    {
        "class": "scroll_tabs_right_button",
        "parents": [
            {"class": "window", "attributes": ["file_light"]},
            {"class": "tabset_control", "attributes": ["file_dark"]}
        ],
        "layer0.tint": [0, 0, 0, 0.4]
    },
    {
        "class": "scroll_tabs_right_button",
        "parents": [
            {"class": "window", "attributes": ["file_light"]},
            {"class": "tabset_control", "attributes": ["file_medium_dark"]}
        ],
        "layer0.tint": [0, 0, 0, 0.4]
    },
    {
        "class": "scroll_tabs_right_button",
        "parents": [
            {"class": "window", "attributes": ["file_light"]},
            {"class": "tabset_control", "attributes": ["file_medium"]}
        ],
        "layer0.tint": [0, 0, 0, 0.4]
    },

    {
        "class": "show_tabs_dropdown_button",
        "parents": [
            {"class": "window", "attributes": ["file_dark"]},
            {"class": "tabset_control", "attributes": ["file_light"]}
        ],
        "layer0.tint": [255, 255, 255, 1.0]
    },
    {
        "class": "show_tabs_dropdown_button",
        "parents": [
            {"class": "window", "attributes": ["file_medium_dark"]},
            {"class": "tabset_control", "attributes": ["file_light"]}
        ],
        "layer0.tint": [255, 255, 255, 1.0]
    },
    {
        "class": "show_tabs_dropdown_button",
        "parents": [
            {"class": "window", "attributes": ["file_medium"]},
            {"class": "tabset_control", "attributes": ["file_light"]}
        ],
        "layer0.tint": [255, 255, 255, 1.0]
    },
    {
        "class": "show_tabs_dropdown_button",
        "parents": [
            {"class": "window", "attributes": ["file_light"]},
            {"class": "tabset_control", "attributes": ["file_dark"]}
        ],
        "layer0.tint": [0, 0, 0, 0.4]
    },
    {
        "class": "show_tabs_dropdown_button",
        "parents": [
            {"class": "window", "attributes": ["file_light"]},
            {"class": "tabset_control", "attributes": ["file_medium_dark"]}
        ],
        "layer0.tint": [0, 0, 0, 0.4]
    },
    {
        "class": "show_tabs_dropdown_button",
        "parents": [
            {"class": "window", "attributes": ["file_light"]},
            {"class": "tabset_control", "attributes": ["file_medium"]}
        ],
        "layer0.tint": [0, 0, 0, 0.4]
    },

    //
    // Creating tab set line
    //

    {
        "class": "tabset_control",

        // Adding 10pt bottom padding for tab set line.
        // Default padding is [4, 0, 8, 0].
        "content_margin": [4, 0, 8, 10],

        // Adding the layer for tab set line.
        "tint_index": 1,
        "tint_modifier": [0, 0, 0, 0.0],
        "layer1.opacity": 1.0,
        "layer1.draw_center": false,

        // It should be the same as tab set bottom padding.
        "layer1.inner_margin": [0, 0, 0, 10]
    },

    // Label Controls
    {
        "class": "label_control",
        "font.face": "Roboto Mono",
    },


    // Quick Panels
    {
        "class": "quick_panel_label",
        "font.face": "Roboto Mono"
    },

    // Sidebar Header
    {
        "class": "sidebar_heading",
        "font.face": "Roboto Mono",
    },

    // Sidebar Label
    {
        "class": "sidebar_label",
        "font.face": "Roboto Mono",
        "font.size": 13,
    },

    // Tab Label
    {
        "class": "tab_label",
        "font.face": "Roboto Mono",
        "font.size": 12,
    },

    // Tooltip Control
    {
        "class": "tool_tip_label_control",
        "font.face": "Roboto Mono",
    },

    // Side Bar
    {
        "class": "sidebar_tree",
        "indent_offset": 0,
        "indent": 12
    }

]
1 Like

#3

i couldnt find a definitive answer per se, but im fairly certain its Myriad Pro, in case anyone from the future is wondering the same thing

0 Likes

#4

The default font used for theme elements is "system". This works out to be:

  • Windows: Segoe UI or MS Sans Serif
  • Linux: Sans
  • Mac: San Francisco, Helvetica or Lucida Grande (depending on the release)
5 Likes

Non-code font looks thin, hard to read