mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
minor
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
package com.intellij.openapi.ui;
|
||||
|
||||
import com.intellij.openapi.util.SystemInfo;
|
||||
import com.intellij.util.ui.MacUIUtil;
|
||||
import com.intellij.util.ui.UIUtil;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
@@ -295,7 +296,7 @@ public class FixedComboBoxEditor implements ComboBoxEditor {
|
||||
bottomColor = new Color(200, 200, 200);
|
||||
}
|
||||
|
||||
int _y = y + (SystemInfo.isMacOSLion ? 1 : 0);
|
||||
int _y = y + MacUIUtil.MAC_COMBO_BORDER_V_OFFSET;
|
||||
|
||||
g.setColor(topColor);
|
||||
g.drawLine(x + 3, _y + 3, x + width - 1, _y + 3);
|
||||
|
||||
@@ -33,6 +33,7 @@ public class MacUIUtil {
|
||||
|
||||
public static final boolean USE_QUARTZ = "true".equals(System.getProperty("apple.awt.graphics.UseQuartz"));
|
||||
public static final String MAC_FILL_BORDER = "MAC_FILL_BORDER";
|
||||
public static final int MAC_COMBO_BORDER_V_OFFSET = SystemInfo.isMacOSLion ? 1 : 0;
|
||||
private static Cursor INVERTED_TEXT_CURSOR;
|
||||
|
||||
private MacUIUtil() {
|
||||
@@ -176,7 +177,7 @@ public class MacUIUtil {
|
||||
g2d.setRenderingHint(RenderingHints.KEY_STROKE_CONTROL,
|
||||
USE_QUARTZ ? RenderingHints.VALUE_STROKE_PURE : RenderingHints.VALUE_STROKE_NORMALIZE);
|
||||
|
||||
int _y = SystemInfo.isMacOSLion ? 1 : 0;
|
||||
int _y = MAC_COMBO_BORDER_V_OFFSET;
|
||||
|
||||
final GeneralPath path1 = new GeneralPath();
|
||||
path1.moveTo(2, _y + 4);
|
||||
|
||||
Reference in New Issue
Block a user