0

在查看主题中的所有类选项时,我无法弄清楚如何更改面板输入字段中的字体颜色(command-p、command-shift-p 和 command-f)。第一张图片来自 Sublime Text 3,它可以工作。在 Sublime Text 4 中,我已经弄清楚了大部分内容,接受输入框的字体颜色。我目前的背景是蓝色的,所以我可以看到白色的字体颜色。这是崇高的文字 3在此处输入图像描述

这是 Sublime Text 4 的截图。 在此处输入图像描述

我相信这将在“text_line_control”类之一中完成。喜欢:

        {
            // Input box boarder
            "class": "text_line_control",
            "layer0.texture": "Theme - Default/common/input.png",
            "layer0.tint": [255, 255, 255],
            "layer0.opacity": 1.0,
            "layer0.inner_margin": 4,
            "tint_index": 1,
            "content_margin": 4,
            // CHANGEME
            "color_scheme_tint": [0, 0, 255],
        },
        {
            // Input box command-p
            "class": "text_line_control",
            "parents": [{"class": "overlay_control"}],
            "font.face": "system",
            "font.size": 18,
        },
        {
            "class": "text_line_control",
            "parents": [{"class": "switch_project_window"}],
            "font.face": "system",
            "font.size": "var(font_size_lg)",
        },

或者也许在“text_area_control”中,但我似乎无法弄清楚如何让它工作。

        {
            "class": "text_area_control",
            "settings": {
                "inactive_sheet_dimming": true,
            },
            "attributes": ["!highlighted"],
            "parents": [{"class": "text_line_control"}],
            //"background_modifier": "l(- 5%)",
        },
        {
            "class": "text_area_control",
            "settings": {
                "inactive_sheet_dimming": true,
            },
            "attributes": ["file_light", "!highlighted"],
            "parents": [{"class": "text_line_control"}],
            //"background_modifier": "l(- 5%)",
        },
4

0 回答 0