在Apache Netbeans 9.0中更改主题 [英] Changing theme in Apache Netbeans 9.0
问题描述
我最近在运行
I have installed Apache Netbeans 9.0 recently in Mac running macOS Mojave. I am trying to change the Netbeans theme to "Dark Look And Feel Themes" but I can't find the options.
以前,我使用过较旧的Netbeans版本(8.2、8.1、8.0.2).要更改主题,我导航至
Previously, I have used the older versions (8.2, 8.1, 8.0.2) of Netbeans. To change the theme, I navigate to
Tools -> Plugins -> Available Plugins
安装"深色外观主题"插件,然后重新启动IDE以反映所做的更改.
Install the "Dark Look And Feel Themes" plugin and restart the IDE to reflect the change.
但是,我在Apache Netbeans 9.0中找不到此插件
But, I don't find this plugin in the Apache Netbeans 9.0
我还检查了这些插件是否可以从网上下载.这样我就可以使用已下载" 选项添加它们.但是,它们仅适用于旧版本.
I also checked whether these plugins are available to download from online. So that I can add them using 'Downloaded' option. But, they are only available for older versions.
http://plugins.netbeans.org/plugin/62424/darcula-laf-for-netbeans http://plugins.netbeans.org/plugin/52624/netbeans-dark-theme
所以,我有点卡在这里.任何帮助都感激不尽.前面提出了很少的类似堆栈溢出问题,但它们都谈论过旧版本的Netbeans.
So, I am a bit stuck here. Any help will be much appreciated. There are few similar stack overflow questions raised earlier, but they all talk about the old version of Netbeans.
推荐答案
19年4月11日更新:
Updated 4/11/19:
基于下面@superbiji的评论,Darcula + Norway Today在 NetBeans 11.0 上运行良好.
Based on a comment from @superbiji below, Darcula + Norway Today works fine with NetBeans 11.0.
更新2/7/19:
请注意,以下答案仅适用于 NetBeans 9.0 .在 NetBeans 10.0 上,情况有所不同,其中Dark Look and Feel插件(主题"Dark Metal"和"Dark Nimbus")也可以正常工作.参见项目,文件,服务,导航器彩色背景.
Note that the answer below applies only to NetBeans 9.0. The situation is a little different on NetBeans 10.0 where the Dark Look and Feel plugin (themes "Dark Metal" and "Dark Nimbus") also worked fine. See Projects, Files, Services, Navigator color background.
我尝试下载然后在NetBeans 9.0上手动安装这两个插件,但对我而言不起作用:
I tried to download then manually install those two plugins on NetBeans 9.0, but it didn't work for me:
- 将插件下载为zip文件,然后将其解压缩.
- 工具>插件> 单击已下载标签> 单击添加插件...
- 打开添加插件对话框,但是它要求您选择一个 jar 或 nbm 文件,并且其中没有这些类型的文件下载的zip文件.
- Download the plugins as zip files, and unzip them.
- Tools > Plugins > click the Downloaded tab > click Add Plugins...
- The Add Plugins dialog opens, but it requires you to select a jar or nbm file, and no files of those types exist in the downloaded zip files.
但是,还有一种替代方法适用于 Darcula (但不适用于深色外观主题).这是一个简单的两步过程:
However, there is an alternative approach that works for Darcula (but not for Dark Look And Feel Themes). It is a simple two step process:
- 使 Darcula 插件可用.
- 自动安装插件,就像在NetBeans 8.2上一样.
- Make the Darcula plugin available.
- Automatically install the plugin, just as you would on NetBeans 8.2.
要使该插件可用:
- 工具>插件>设置选项卡> .单击添加按钮.
-
在打开的更新中心定制程序对话框中:
- Tools > Plugins > Settings tab > Click the Add button.
In the Update Center Customizer dialog that opens:
- 在名称字段中输入一些描述性值,例如 NetBeans 8.2插件
- 输入 http://plugins.netbeans.org/nbpluginportal/updates /8.2/catalog.xml.gz 在"URL"字段中.
-
单击确定,使与该URL相关的插件可用于安装.
- Enter some descriptive value in the Name field such as NetBeans 8.2 plugins
- Enter http://plugins.netbeans.org/nbpluginportal/updates/8.2/catalog.xml.gz in the URL field.
Click OK to make the plugins associated with that URL available for installation.
现在单击可用插件标签.您应该会看到很多新条目,其中包括 Darcula LAF for NetBeans 的条目:
Now click the Available Plugins tab. You should see a lot of new entries, including one for Darcula LAF for NetBeans:
检查该条目,然后单击安装,就像在NetBeans 8.2上一样.
Check that entry and click Install, just as you would on NetBeans 8.2.
NetBeans 9.0应该使用 Darcula 主题重新启动:
NetBeans 9.0 should restart using the Darcula theme:
注意:
- 我不认为NetBeans或插件作者会正式支持这种方法,但是效果很好.
- 要自定义 Darcula 设置:工具>选项>外观> 单击 Darcula外观标签.
- 要从 Darcula 切换到内置的NetBeans外观选项之一:工具>选项>外观> 单击外观 >标签>从首选外观下拉列表中选择一个条目.
- I don't think this approach is formally supported by NetBeans or the plugin author, but it works fine.
- To customize Darcula settings: Tools > Options > Appearance > click the Darcula Look and Feel tab.
- To switch from Darcula to one of the built in NetBeans look and feel options: Tools > Options > Appearance > click the Look and Feel tab > select an entry from the Preferred look and feel drop list.
这篇关于在Apache Netbeans 9.0中更改主题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!