mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 22:17:05 +07:00
Improve default values for antialiasing on Mac
This commit is contained in:
@@ -294,6 +294,8 @@ public class UISettings extends SimpleModificationTracker implements PersistentS
|
||||
|
||||
UISettings uiSettings = getInstance();
|
||||
|
||||
g2d.setRenderingHint(RenderingHints.KEY_FRACTIONALMETRICS, RenderingHints.VALUE_FRACTIONALMETRICS_ON);
|
||||
|
||||
if (uiSettings != null) {
|
||||
g2d.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, AntialiasingType.getKeyForCurrentScope(false));
|
||||
} else {
|
||||
|
||||
@@ -35,6 +35,8 @@ public class EditorUIUtil {
|
||||
|
||||
int lcdContrastValue = UIUtil.getLcdContrastValue();
|
||||
|
||||
g2d.setRenderingHint(RenderingHints.KEY_FRACTIONALMETRICS, RenderingHints.VALUE_FRACTIONALMETRICS_ON);
|
||||
|
||||
g2d.setRenderingHint(RenderingHints.KEY_TEXT_LCD_CONTRAST, lcdContrastValue);
|
||||
g2d.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, AntialiasingType.getKeyForCurrentScope(true));
|
||||
|
||||
|
||||
@@ -3078,7 +3078,7 @@ public class UIUtil {
|
||||
// Evaluate the value depending on our current theme
|
||||
if (lcdContrastValue == 0) {
|
||||
if (SystemInfo.isMacIntel64) {
|
||||
lcdContrastValue = UIUtil.isUnderDarcula() ? 100 : 250;
|
||||
lcdContrastValue = isUnderDarcula() ? 140 : 200;
|
||||
} else {
|
||||
Map map = (Map)Toolkit.getDefaultToolkit().getDesktopProperty("awt.font.desktophints");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user