简体   繁体   English

Sublime Text 2:如何更改苏打主题的标签字体?

[英]Sublime Text 2: How to change tab font for the soda theme?

The tab font in sublime, for the Soda Theme are too small on my screen. 在我的屏幕上,苏打主题的sublime中的选项卡字体太小。

I added a font.size element to the appropriate file, which made the font larger (more detail below), but the viewing area hasn't grown with the font. 我在相应的文件中添加了一个font.size元素,使得字体更大(下面有更多细节),但是查看区域没有随字体增长。 How do I fix this? 我该如何解决?

在此输入图像描述

As you can see, I also tried the margins of tabset_control. 如您所见,我也尝试了tabset_control的边距。


Where I added the font.size element: 我在哪里添加了font.size元素:

I added "font.size": 15.0 to C:\\Users\\ ...\\AppData\\Roaming\\Sublime Text 2\\Packages\\Theme - Soda\\Soda Dark.sublime-theme, around line 189 for me: 我添加了"font.size": 15.0到C:\\ Users \\ ... \\ AppData \\ Roaming \\ Sublime Text 2 \\ Packages \\ Theme - Soda \\ Soda Dark.sublime-theme,我在189行左右:

//
// TAB LABELS
//

{
    "class": "tab_label",
    "fade": true,
    "fg": [170, 170, 170],
    "shadow_color": [25, 25, 25],
    "shadow_offset": [0, -1],
    "tab_height": 50,
    "font.size": 15.0
},

This is a long-standing bug, still hasn't been fixed. 这是一个长期存在的错误,仍然没有得到修复。 http://www.sublimetext.com/forum/viewtopic.php?f=3&t=8889 http://www.sublimetext.com/forum/viewtopic.php?f=3&t=8889

Keep the location of font.size the same, and change the tab_height in the Tab set section at the beginning of the .sublime-theme file: 保留的位置font.size相同,并更改tab_heightTab set在开始时部分.sublime-theme文件:

 // Tab set
    {
        "class": "tabset_control",
        "layer0.texture": "Theme - Soda/Soda Dark/tabset-background.png",
        "layer0.inner_margin": [1, 7],
        "layer0.opacity": 1.0,
        "content_margin": [-4, 0, -4, 3],
        "tab_overlap": 5,
        "tab_width": 180,
        "tab_min_width": 45,
        "tab_height": 25,
        "mouse_wheel_switch": false

    },

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM