Skip to content

Commit 0a19a51

Browse files
committed
Update platformtools
1 parent ff545e6 commit 0a19a51

7 files changed

Lines changed: 109 additions & 100 deletions

File tree

build.gradle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ plugins {
55
}
66

77
base.archivesName = "PlatformTools"
8-
version = "1.0.3"
8+
version = "1.0.4"
99
group = "org.redlance"
1010

1111
repositories {
@@ -19,7 +19,8 @@ dependencies {
1919
compileOnlyApi("org.jetbrains:annotations:24.0.0")
2020
api("net.java.dev.jna:jna:5.17.0")
2121

22-
api("com.github.dima-dencep:jfa:3cf4588cc7") {
22+
// macOS
23+
api("com.github.dima-dencep:jfa:7692527") {
2324
exclude(group: "net.java.dev.jna")
2425
}
2526
}

gradle/wrapper/gradle-wrapper.jar

59 Bytes
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.2-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

gradlew

100644100755
Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gradlew.bat

Lines changed: 94 additions & 94 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/java/org/redlance/platformtools/impl/TestingApp.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package org.redlance.platformtools.impl;
22

3+
import de.jangassen.jfa.appkit.NSHapticFeedbackManager;
34
import org.redlance.platformtools.PlatformAccent;
45
import org.redlance.platformtools.PlatformFileReferer;
56

@@ -20,6 +21,13 @@ public TestingApp(Color initialColor) {
2021

2122
this.colorPanel = new JPanel();
2223
this.colorPanel.setBackground(initialColor);
24+
this.colorPanel.addMouseMotionListener(new MouseMotionAdapter() {
25+
@Override
26+
public void mouseMoved(MouseEvent e) {
27+
super.mouseMoved(e);
28+
NSHapticFeedbackManager.defaultPerformer().performFeedbackPattern(0, 1);
29+
}
30+
});
2331
add(this.colorPanel);
2432

2533
JPanel controlsPanel = new JPanel();

src/main/java/org/redlance/platformtools/impl/macos/MacAccent.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
public class MacAccent implements PlatformAccent {
1717
@Override
1818
public Color getAccent(Supplier<Color> fallback) {
19-
NSColor accentColor = NSColor.controlAccentColor().colorUsingColorSpace(NSColorSpace.genericRGBColorSpace());
19+
NSColor accentColor = NSColor.controlAccentColor().colorUsingColorSpace(NSColorSpace.deviceRGBColorSpace());
2020

2121
DoubleByReference red = new DoubleByReference();
2222
DoubleByReference green = new DoubleByReference();

0 commit comments

Comments
 (0)