Package Explorer Font Size

This topic contains 6 replies, has 4 voices, and was last updated by  support-swapna 3 weeks, 4 days ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #549467 Reply

    otterslide
    Participant

    How do I change the Package Explorer font size?
    I want to add this CSS:
    #org-eclipse-jdt-ui-PackageExplorer Tree,
    #org-eclipse-ui-navigator-ProjectExplorer Tree {
    font-size: 10px; /* <– Desired font size */
    }
    but where do I add it with Darkest Dark?

    #549630 Reply

    support-swapna
    Moderator

    otterslide,

    I am afraid currently there is no way to change the font size for Package Explorer in Darkest Dark. I have filed an enhancement request for the dev team to work on it. We will keep you posted when it is supported.

    Apologies for inconvenience caused.

    –Swapna
    MyEclipse Support

    #604265 Reply

    andi1337
    Participant

    Hi,

    I’m also trying to increase the font-size of the Package Explorer inside Eclipse under the Darkest Dark theme.
    My Eclipse version is 2018-09 (4.9.0) Build id: 20180917-1800

    I’ve already tried to add the respective CSS to all the standard css files inside Eclipse.app/Contents/Eclipse/plugins/org.eclipse.ui.themes_1.2.200.v20180828-1350/css (directory under macOS) but it didn’t work. Are there some updates on this issue?

    That would be really great! Thanks in advance.
    Best regards,
    Andi

    #604266 Reply

    andi1337
    Participant

    Hi again,

    I was able to figure it out how to increase the font-size of the Package Explorer using the Darkest Dark theme or in general using the DevStyle Theming stuff. It’s a bit hackish but it’s working. Maybe this approach is also relevant for others or the author of this topic. You must perform the following steps:

    1. Go to the plugin folder of your eclipse installation (Under macOS this is “Eclipse.app/Contents/Eclipse/plugins”)

    2. Search for the file of the DevStyle plugin which contains all the CSS stuff. In my case, the name is “com.genuitec.eclipse.theming.css_1.11.0.201810241355.jar” (possibly the version number differs in future).

    3. Make a copy of this file inside another directory and open a Terminal. Run the following command to extract the jar-archive (This assumes, that Java is installed or at least the jar tool):
    jar xf com.genuitec.eclipse.theming.css_1.11.0.201810241355.jar

    4. I’ve modified all CSS files (except “css/dark/contributed-preferences.css”) inside the exctracted folder “css” by adding the following lines to the end:

    5. After that, you have to update the css files inside the jar archive by using the following command:
    jar uf com.genuitec.eclipse.theming.css_1.11.0.201810241355.jar css/*

    6. Now copy the modified jar file back to the Eclipse plugin directory (overwrite the old jar file, maybe make a backup of the old one before performing this step) and restart Eclipse. The font-size should be 14.

    Hope this is helpful. This approach is also not “optimal” cause I’ve used the brute force method by modifying all CSS files. May it would be enough to add the respective CSS only to “css/include/basestyle.css” (here a hint would be useful from one of the developers). A more user-friendly way would also be nice 😉

    Best regards,
    Andi

    • This reply was modified 5 months, 2 weeks ago by  andi1337.
    #604402 Reply

    support-swapna
    Moderator

    Andi,

    Thank you for sharing the workaround details. You are right that it is not an ideal approach. I have escalated it to the dev team to check if we can make it work in a better way.

    Thank you for raising it.

    –Swapna
    Genuitec Support

    #613123 Reply

    Brian
    Participant

    I have recently run into the problem on MacOS. Is there any update on this issue?

    #613256 Reply

    support-swapna
    Moderator

    Brian,

    Sorry for the delayed response. I have escalated this concern to the dev team and they will get back to you regarding the fix.

    –Swapna
    Genuitec Support

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: Package Explorer Font Size

You must be logged in to post in the forum log in