Skip to content

Commit e1e079e

Browse files
committed
[Win32] Enable monitor-specific scaling by default
The monitor-specific UI scaling on Windows is disabled by default and can be activated via a preference. This change inverts the default enablement: it enables the feature by default and allows to disable it via preference. The existing experimental preference is renamed to reset the configuration for every consumer. All information about the feature being experimental is removed.
1 parent b6af990 commit e1e079e

File tree

6 files changed

+1057
-1054
lines changed

6 files changed

+1057
-1054
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<component id="org.eclipse.ui.workbench" version="2">
3+
<resource path="eclipseui/org/eclipse/ui/IWorkbenchPreferenceConstants.java" type="org.eclipse.ui.IWorkbenchPreferenceConstants">
4+
<filter id="388194388">
5+
<message_arguments>
6+
<message_argument value="org.eclipse.ui.IWorkbenchPreferenceConstants"/>
7+
<message_argument value="RESCALING_AT_RUNTIME"/>
8+
<message_argument value="RESCALING_AT_RUNTIME"/>
9+
</message_arguments>
10+
</filter>
11+
</resource>
12+
</component>

bundles/org.eclipse.ui.workbench/eclipseui/org/eclipse/ui/IWorkbenchPreferenceConstants.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -722,11 +722,10 @@ public interface IWorkbenchPreferenceConstants {
722722

723723
/**
724724
* <p>
725-
* <strong>EXPERIMENTAL</strong>. Whether the UI adapts to DPI changes at
726-
* runtime. It only effects Windows.
725+
* Whether the UI adapts to DPI changes at runtime. It only effects Windows.
727726
* </p>
728727
*
729728
* @since 3.134
730729
*/
731-
String RESCALING_AT_RUNTIME = "RESCALING_AT_RUNTIME"; //$NON-NLS-1$
730+
String RESCALING_AT_RUNTIME = "monitorSpecificScaling"; //$NON-NLS-1$
732731
}

bundles/org.eclipse.ui.workbench/eclipseui/org/eclipse/ui/internal/Workbench.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,7 @@ private static void setRescaleAtRuntimePropertyFromPreference() {
691691
));
692692
} else {
693693
boolean rescaleAtRuntime = ConfigurationScope.INSTANCE.getNode(WorkbenchPlugin.PI_WORKBENCH)
694-
.getBoolean(IWorkbenchPreferenceConstants.RESCALING_AT_RUNTIME, false);
694+
.getBoolean(IWorkbenchPreferenceConstants.RESCALING_AT_RUNTIME, true);
695695
System.setProperty(SWT_RESCALE_AT_RUNTIME_PROPERTY, Boolean.toString(rescaleAtRuntime));
696696
}
697697
}

0 commit comments

Comments
 (0)