在Eclipse Photon中增加Project Explorer树的字体大小

时间:2018-09-13 08:08:05

标签: css eclipse themes pydev

在Debian的Xfce桌面上,使用Pydev(Photon Release 4.8.0)调整了Eclipse桌面的颜色和字体大小,使其达到了我想要的方式。 Python解释器窗口和终端必须进行调整,因为它们是明亮的白色,与其余月亮主题不同。然后,我设法轻松地增加了代码窗口的字体大小。但是,“项目资源管理器”树仍然很小,这也可能是由于监视器分辨率所致。我尝试在 Xcfe设置管理器>外观>字体>默认字体中增加字体,但所做的只是使顶部的菜单栏变大,而不是树。

然后尝试this解决方案,该解决方案如上所述:css:

.MPart Tree {
    font-family: Consolas;
    font-size: 14;
}

被添加到这两个文件的末尾:

.p2/pool/plugins/org.eclipse.ui.themes_1.2.100.v20180514-1547/css/e4_default_gtk.css
.p2/pool/plugins/org.eclipse.ui.themes_1.2.100.v20180514-1547/css/e4_default_win.css

..但是,正如一位评论者所说,它不适用于Photon。

这是因为Moonrise主题吗?

我在主目录中运行find -name "*.css"来查看还有什么,但是选择范围很大:

./.p2/pool/plugins/org.eclipse.ui.themes_1.2.100.v20180514-1547/css/e4-dark.css
./.p2/pool/plugins/org.eclipse.ui.themes_1.2.100.v20180514-1547/css/high-contrast.css
./.p2/pool/plugins/org.eclipse.ui.themes_1.2.100.v20180514-1547/css/e4-dark_win.css
./.p2/pool/plugins/org.eclipse.ui.themes_1.2.100.v20180514-1547/css/e4-dark_mac.css
./.p2/pool/plugins/org.eclipse.ui.themes_1.2.100.v20180514-1547/css/e4_default_gtk.css
./.p2/pool/plugins/org.eclipse.ui.themes_1.2.100.v20180514-1547/css/e4_basestyle.css
./.p2/pool/plugins/org.eclipse.ui.themes_1.2.100.v20180514-1547/css/e4_default_win.css
./.p2/pool/plugins/org.eclipse.ui.themes_1.2.100.v20180514-1547/css/e4_default_mru_on_win7.css
./.p2/pool/plugins/org.eclipse.ui.themes_1.2.100.v20180514-1547/css/dark/e4-dark_preferencestyle.css
./.p2/pool/plugins/org.eclipse.ui.themes_1.2.100.v20180514-1547/css/dark/e4-dark_globalstyle.css
./.p2/pool/plugins/org.eclipse.ui.themes_1.2.100.v20180514-1547/css/dark/e4-dark_partstyle.css
./.p2/pool/plugins/org.eclipse.ui.themes_1.2.100.v20180514-1547/css/dark/e4-dark_basestyle.css
./.p2/pool/plugins/org.eclipse.ui.themes_1.2.100.v20180514-1547/css/e4_classic_winxp.css
./.p2/pool/plugins/org.eclipse.ui.themes_1.2.100.v20180514-1547/css/e4_default_mac.css
./.p2/pool/plugins/org.eclipse.ui.themes_1.2.100.v20180514-1547/css/e4_classic_win7.css
./.p2/pool/plugins/org.python.pydev_6.5.0.201809011628/css/dark/e4-pydev-dark_preferencestyle.css
./.p2/pool/plugins/org.eclipse.platform_4.8.0.v20180611-0500/macosx_narrow_book.css
./.p2/pool/plugins/org.eclipse.platform_4.8.0.v20180611-0500/intro/css/overview.css
./.p2/pool/plugins/org.eclipse.platform_4.8.0.v20180611-0500/intro/css/migrate.css
./.p2/pool/plugins/org.eclipse.platform_4.8.0.v20180611-0500/intro/css/whatsnew.css
./.p2/pool/plugins/org.eclipse.platform_4.8.0.v20180611-0500/book.css
./.p2/pool/plugins/org.eclipse.platform_4.8.0.v20180611-0500/disabled_book.css
./.p2/pool/plugins/org.eclipse.platform_4.8.0.v20180611-0500/narrow_book.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/214/0/.cp/intro/css/overview.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/214/0/.cp/intro/css/samples.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/214/0/.cp/intro/css/migrate.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/214/0/.cp/intro/css/whatsnew.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/214/0/.cp/intro/css/tutorials.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/136/0/.cp/help/book.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/136/0/.cp/intro/css/overview.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/136/0/.cp/intro/css/whatsnew.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/136/0/.cp/intro/css/tutorials.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/152/0/.cp/intro/css/default.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/255/0/.cp/intro/css/overview.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/255/0/.cp/intro/css/whatsnew.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/404/0/.cp/intro/overview.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/436/0/.cp/themes/shared/html/shared.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/436/0/.cp/themes/circles/html/overview.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/436/0/.cp/themes/circles/html/root.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/436/0/.cp/themes/circles/html/webresources.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/436/0/.cp/themes/circles/html/firststeps.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/436/0/.cp/themes/circles/html/shared.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/436/0/.cp/themes/circles/html/rtl.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/436/0/.cp/themes/circles/html/samples.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/436/0/.cp/themes/circles/html/ltr.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/436/0/.cp/themes/circles/html/font-relative.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/436/0/.cp/themes/circles/html/migrate.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/436/0/.cp/themes/circles/html/whatsnew.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/436/0/.cp/themes/circles/html/font-absolute.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/436/0/.cp/themes/circles/html/standby.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/436/0/.cp/themes/circles/html/tutorials.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/436/0/.cp/themes/slate/html/overview.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/436/0/.cp/themes/slate/html/root.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/436/0/.cp/themes/slate/html/webresources.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/436/0/.cp/themes/slate/html/firststeps.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/436/0/.cp/themes/slate/html/shared.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/436/0/.cp/themes/slate/html/rtl.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/436/0/.cp/themes/slate/html/samples.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/436/0/.cp/themes/slate/html/ltr.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/436/0/.cp/themes/slate/html/font-relative.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/436/0/.cp/themes/slate/html/migrate.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/436/0/.cp/themes/slate/html/whatsnew.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/436/0/.cp/themes/slate/html/font-absolute.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/436/0/.cp/themes/slate/html/standby.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/436/0/.cp/themes/slate/html/tutorials.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/436/0/.cp/themes/solstice/html/overview.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/436/0/.cp/themes/solstice/html/root.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/436/0/.cp/themes/solstice/html/webresources.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/436/0/.cp/themes/solstice/html/firststeps.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/436/0/.cp/themes/solstice/html/shared.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/436/0/.cp/themes/solstice/html/rtl.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/436/0/.cp/themes/solstice/html/samples.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/436/0/.cp/themes/solstice/html/ltr.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/436/0/.cp/themes/solstice/html/font-relative.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/436/0/.cp/themes/solstice/html/qroot.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/436/0/.cp/themes/solstice/html/migrate.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/436/0/.cp/themes/solstice/html/whatsnew.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/436/0/.cp/themes/solstice/html/font-absolute.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/436/0/.cp/themes/solstice/html/standby.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/436/0/.cp/themes/solstice/html/tutorials.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/436/0/.cp/themes/purpleMesh/html/overview.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/436/0/.cp/themes/purpleMesh/html/root.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/436/0/.cp/themes/purpleMesh/html/webresources.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/436/0/.cp/themes/purpleMesh/html/firststeps.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/436/0/.cp/themes/purpleMesh/html/shared.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/436/0/.cp/themes/purpleMesh/html/rtl.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/436/0/.cp/themes/purpleMesh/html/samples.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/436/0/.cp/themes/purpleMesh/html/ltr.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/436/0/.cp/themes/purpleMesh/html/font-relative.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/436/0/.cp/themes/purpleMesh/html/migrate.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/436/0/.cp/themes/purpleMesh/html/whatsnew.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/436/0/.cp/themes/purpleMesh/html/font-absolute.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/436/0/.cp/themes/purpleMesh/html/standby.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/436/0/.cp/themes/purpleMesh/html/tutorials.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/303/0/.cp/intro/css/overview.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/303/0/.cp/intro/css/whatsnew.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/303/0/.cp/intro/css/tutorials.css
./eclipse/java-photon/eclipse/configuration/org.eclipse.osgi/303/0/.cp/book.css
./eclipse-workspace/.metadata/.plugins/com.genuitec.eclipse.ui.common.platform/splash-fix.css
./eclipse-workspace/.metadata/.plugins/com.genuitec.eclipse.ui.common.platform/color-definitions-fix.css
./eclipse-workspace/.metadata/.plugins/com.genuitec.eclipse.ui.common.platform/colors-org.eclipse.egit.ui-1849137576.css
./eclipse-workspace/.metadata/.plugins/com.genuitec.eclipse.ui.common.platform/colors-org.eclipse.epp.mpc.ui.css--1027399938.css
./eclipse-workspace/.metadata/.plugins/com.genuitec.eclipse.ui.common.platform/colors-org.eclipse.jdt.ui-326703266.css

还看着this

更新:

还找到了this的答案,该答案特定于Moonrise主题,涉及到编辑jar文件。在我的系统上找到一个jar文件:

/home/cardamom/.p2/pool/plugins/com.github.eclipseuitheme.themes.moonrise-ui_0.8.9.201404052318.jar

我能够用vim打开它。首先,您将转到目录如下:

META-INF/MANIFEST.MF 
META-INF/ 
plugin.xml 
themes/ 
themes/css/ 
themes/css/moonrise-ui-standalone.css 
themes/css/moonrise-ui-standalone_OSX.css 
themes/css/moonrise-ui-standalone_WIN.css 
themes/css/moonrise-ui.css 
themes/css/moonrise-ui_OSX.css 
themes/css/moonrise-ui_WIN.css 
themes/css/moonrise-ui_[OSX-patch].css 
themes/css/moonrise-ui_[WIN-patch].css 
com/ 
com/github/ 
com/github/eclipseuitheme/ 
com/github/eclipseuitheme/themes/ 
com/github/eclipseuitheme/themes/Activator.class 
com/github/eclipseuithemes/ 
com/github/eclipseuithemes/plugin/ 
com/github/eclipseuithemes/plugin/Activator.class
~                                                                                                                                                                                                                                                             
~  

moonrise-ui-standalone.cssmoonrise-ui.css都出现了两次font-size,我尝试过更改两者,但尚未奏效。

是否有人知道在这种情况下应该将css粘贴到哪个相关文件中,或者在PyDev和Moonrise主题的Eclipse Photon中是否可能有更简单的方法来实现此目的?

0 个答案:

没有答案