mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Let's try with Monaco as default font on Macs,
Patch UI defaults for CIDR: don't show toolbar, toolwindow buttons, action icons in menus.
This commit is contained in:
@@ -97,10 +97,20 @@ public class UISettings implements PersistentStateComponent<UISettings>, Exporta
|
||||
|
||||
/** Invoked by reflection */
|
||||
public UISettings(){
|
||||
tweakPlatformDefaults();
|
||||
myListenerList=new EventListenerList();
|
||||
setSystemFontFaceAndSize();
|
||||
}
|
||||
|
||||
private void tweakPlatformDefaults() {
|
||||
// TODO: Make it pluggable
|
||||
if ("CIDR".equalsIgnoreCase(System.getProperty("idea.platform.prefix"))) {
|
||||
HIDE_TOOL_STRIPES = true;
|
||||
SHOW_MAIN_TOOLBAR = false;
|
||||
SHOW_ICONS_IN_MENUS = false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @deprecated use {@link UISettings#addUISettingsListener(com.intellij.ide.ui.UISettingsListener, Disposable disposable)} instead
|
||||
|
||||
+2
-1
@@ -26,6 +26,7 @@ import com.intellij.openapi.editor.markup.EffectType;
|
||||
import com.intellij.openapi.editor.markup.TextAttributes;
|
||||
import com.intellij.openapi.util.Comparing;
|
||||
import com.intellij.openapi.util.InvalidDataException;
|
||||
import com.intellij.openapi.util.SystemInfo;
|
||||
import com.intellij.openapi.util.WriteExternalException;
|
||||
import com.intellij.util.containers.HashMap;
|
||||
import gnu.trove.THashMap;
|
||||
@@ -53,7 +54,7 @@ public abstract class AbstractColorsScheme implements EditorColorsScheme {
|
||||
protected Map<ColorKey, Color> myColorsMap = new HashMap<ColorKey, Color>();
|
||||
protected Map<TextAttributesKey, TextAttributes> myAttributesMap = new HashMap<TextAttributesKey, TextAttributes>();
|
||||
|
||||
@NonNls private static final String DEFAULT_FONT_NAME = "Courier";
|
||||
@NonNls private static final String DEFAULT_FONT_NAME = SystemInfo.isMac ? "Monaco" : "Courier";
|
||||
@NonNls private static final String EDITOR_FONT_NAME = "EDITOR_FONT_NAME";
|
||||
@NonNls protected static final String SCHEME_NAME = "SCHEME_NAME";
|
||||
protected DefaultColorSchemesManager myDefaultColorSchemesManager;
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
<scheme name="Default" default_scheme="true" version="1">
|
||||
<option name="LINE_SPACING" value="1.0"/>
|
||||
<option name="EDITOR_FONT_SIZE" value="12"/>
|
||||
<option name="EDITOR_FONT_NAME" value="Monospaced"/>
|
||||
|
||||
<colors>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user