Sublime Text 3 - 如何在第三方主题上更改UI文本字体?

时间:2016-03-04 15:32:29

标签: fonts themes sublimetext3

我是网页设计和开发方面的新手,我将有一篇关于我的主题的论文,所以我想以自己的方式自定义我的Sublime,以便我在使用它时感到高兴。我即将编写代码(我是一个非常敏感的设计人员),所以我尝试了尽可能美观的主题,所以我使用Material theme by equinusocio所以我通过Package Control安装并启用,调整它,下载Roboto和Roboto Mono字体(Material Design的官方字体)并将其设置为。我能够使用代码画布的字体,但我也想更改Ui字体,所以我在网上研究了这个并发现了"class": "sidebar_label",但问题是我无法使用这是正确的,因为我还不知道JSOn和它的hiercacy。我无法保存,因为它显示错误。虽然它说的确切,但我不知道如何纠正它。然后在Sublime重新启动后,它会回到丑陋的默认皮肤

以下是代码,请帮我纠正:

{
     "class": "sidebar_label"
     , "color": [0, 0, 0]
     , "font.face": "Roboto" // ADDED THIS LINE     
},
{
      "always_show_minimap_viewport": true,
      "bold_folder_labels": true,
      "class": "sidebar_label",
      "color_scheme": "Packages/Material Theme/schemes/OLD/Material-Theme-          Darker.tmTheme",
      "font_face": "Roboto Mono",
      "font_size": 12,
      "indent_guide_options":
             [
                   "draw_normal",
                   "draw_active"
             ],
      "line_padding_bottom": 3,
      "line_padding_top": 3,
      "material_theme_accent_indigo": true,
      "material_theme_compact_sidebar": true,
      "material_theme_small_statusbar": true,
      "material_theme_small_tab": true,
      "material_theme_tabs_autowidth": true,
      "overlay_scroll_bars": "enabled",
      "theme": "Material-Theme-Darker.sublime-theme"
},

1 个答案:

答案 0 :(得分:0)

This a change in the theme not in the settings. Hence you must change the theme. The easiest way to do this is to install the PackageResourceViewer and run the command PackageResourceViewer: Open Resource. Afterwards navigate to file Material-Theme.sublime-theme and open it. If you have installed the theme via Package Control, then it should be inside a zip file. However if you save the file, this should be created in the right folder and the saved theme hides the original one.

Now just search for sidebar_label and apply your changes. If you want to have the original theme just remove or rename the file.