|
|
@ -28,6 +28,7 @@ import java.awt.*; |
|
|
|
import java.util.function.Consumer; |
|
|
|
import java.util.function.Consumer; |
|
|
|
|
|
|
|
|
|
|
|
import com.github.weisj.darklaf.theme.info.*; |
|
|
|
import com.github.weisj.darklaf.theme.info.*; |
|
|
|
|
|
|
|
import com.github.weisj.darklaf.util.SystemInfo; |
|
|
|
|
|
|
|
|
|
|
|
public class MacOSThemePreferenceProvider implements ThemePreferenceProvider { |
|
|
|
public class MacOSThemePreferenceProvider implements ThemePreferenceProvider { |
|
|
|
|
|
|
|
|
|
|
@ -92,12 +93,12 @@ public class MacOSThemePreferenceProvider implements ThemePreferenceProvider { |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public boolean supportsNativeAccentColor() { |
|
|
|
public boolean supportsNativeAccentColor() { |
|
|
|
return MacOSLibrary.isLoaded(); |
|
|
|
return SystemInfo.isMacOSMojave && MacOSLibrary.isLoaded(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public boolean supportsNativeSelectionColor() { |
|
|
|
public boolean supportsNativeSelectionColor() { |
|
|
|
return MacOSLibrary.isLoaded(); |
|
|
|
return SystemInfo.isMacOSMojave && MacOSLibrary.isLoaded(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|