Skip to content

Commit c144a79

Browse files
committed
small changes
1 parent ef95a9f commit c144a79

File tree

5 files changed

+6
-8
lines changed

5 files changed

+6
-8
lines changed

modules/javafx.graphics/src/main/java/com/sun/javafx/application/preferences/PreferenceProperties.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ private void fireValueChangedIfNecessary() {
189189

190190
/**
191191
* DeferredProperty implements a deferred notification mechanism, where change notifications
192-
* are only fired after changes to all properties have been applied.
192+
* are only fired after changes of all properties have been applied.
193193
* This ensures that observers will never see a transient state where two properties
194194
* are inconsistent (for example, both foreground and background could be the same color
195195
* when going from light to dark mode).

modules/javafx.graphics/src/main/native-glass/mac/PlatformSupport.m

+2-4
Original file line numberDiff line numberDiff line change
@@ -106,15 +106,13 @@ + (jobject)collectPreferences {
106106
[PlatformSupport queryNSColors:preferences];
107107
[NSAppearance setCurrentAppearance:lastAppearance];
108108

109-
bool reduceMotion = [[NSWorkspace sharedWorkspace] accessibilityDisplayShouldReduceMotion];
110109
[PlatformSupport putBoolean:preferences
111110
key:"macOS.NSWorkspace.accessibilityDisplayShouldReduceMotion"
112-
value:reduceMotion];
111+
value:[[NSWorkspace sharedWorkspace] accessibilityDisplayShouldReduceMotion]];
113112

114-
bool reduceTransparency = [[NSWorkspace sharedWorkspace] accessibilityDisplayShouldReduceTransparency];
115113
[PlatformSupport putBoolean:preferences
116114
key:"macOS.NSWorkspace.accessibilityDisplayShouldReduceTransparency"
117-
value:reduceTransparency];
115+
value:[[NSWorkspace sharedWorkspace] accessibilityDisplayShouldReduceTransparency]];
118116

119117
return preferences;
120118
}

modules/javafx.graphics/src/main/native-glass/win/GlassApplication.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ LRESULT GlassApplication::WindowProc(UINT msg, WPARAM wParam, LPARAM lParam)
168168
}
169169
break;
170170
case WM_SETTINGCHANGE:
171-
if (m_platformSupport.settingChanged(m_grefThis, wParam, lParam)) {
171+
if (m_platformSupport.onSettingChanged(m_grefThis, wParam, lParam)) {
172172
return 0;
173173
}
174174

modules/javafx.graphics/src/main/native-glass/win/PlatformSupport.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ bool PlatformSupport::updatePreferences(jobject application) const
124124
return false;
125125
}
126126

127-
bool PlatformSupport::settingChanged(jobject application, WPARAM wParam, LPARAM lParam) const
127+
bool PlatformSupport::onSettingChanged(jobject application, WPARAM wParam, LPARAM lParam) const
128128
{
129129
switch ((UINT)wParam) {
130130
case SPI_SETHIGHCONTRAST:

modules/javafx.graphics/src/main/native-glass/win/PlatformSupport.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class PlatformSupport final
5151
/**
5252
* Handles the WM_SETTINGCHANGE message.
5353
*/
54-
bool settingChanged(jobject application, WPARAM, LPARAM) const;
54+
bool onSettingChanged(jobject application, WPARAM, LPARAM) const;
5555

5656
private:
5757
JNIEnv* env;

0 commit comments

Comments
 (0)