How can I configure the font size for the tree item in the package explorer in Eclipse?

前端 未结 23 780
孤城傲影
孤城傲影 2020-11-29 16:33

How can I configure the font size for the tree item in the package explorer/outline in Eclipse?

Which item in Font under Preferences I should change?

23条回答
  •  有刺的猬
    2020-11-29 17:00

    The following solution works on Mac OS with Eclipse v4.4 (Luna).

    Choose Mac appearance: menu WindowPreferencesGeneralAppearancesTheme: Mac.

    Add a copy of the following code snippet contained in

    plugins/org.eclipse.ui.themes_1.0.1.v20140819-1717/css/dark/e4-dark_globalstyle.css
    

    to the end of the file

    plugins/org.eclipse.ui.themes_1.0.1.v20140819-1717/css/e4_default_mac.css.
    
    
    Tree,
    RegistryFilteredTree,
    /* The following are required due to Bug 419482 (see <1>): */
    Composite > Tree,
    TabFolder > Composite > Tree,
    TabFolder > Composite > * > Tree,
    DocCommentOwnerComposite > Group > Tree,
    TabFolder > Composite > ScrolledComposite > Tree,
    Shell > Composite > Composite > Tree,
    Composite > Composite > Composite > Group > Tree,
    Shell > Composite > Composite > Composite > Tree,
    ScrolledComposite > Composite > Composite > Composite > Tree,
    Shell > Composite > Composite > Composite > Composite > Composite > Tree,
    Shell[style~='SWT.RADIO'][style~='SWT.CASCADE'][style~='SWT.SHADOW_ETCHED_IN']
    [style~='SWT.SHADOW_ETCHED_OUT'][style~='SWT.RESIZE'][style~='SWT.MENU']
    [style~='SWT.FULL_SELECTION'][style~='SWT.DATE'] > Composite > Tree, Shell[style~='SWT.RADIO']
    [style~='SWT.CASCADE'][style~='SWT.SHADOW_ETCHED_IN'][style~='SWT.SHADOW_ETCHED_OUT']
    [style~='SWT.RESIZE'][style~='SWT.MENU'][style~='SWT.FULL_SELECTION'][style~='SWT.DATE'] > Composite > * > Tree {
        font-size: 13;
    }
    

提交回复
热议问题