Browse Source

DSL: Update coordinates and implement hyperlink click color.

pull/245/head
weisj 4 years ago
parent
commit
03c715fe0b
No known key found for this signature in database
GPG Key ID: 31124CB75461DA2A
  1. 10
      core/src/main/java/com/github/weisj/darklaf/swingdsl/DarklafComponentFactory.java
  2. 4
      gradle/libs.versions.toml

10
core/src/main/java/com/github/weisj/darklaf/swingdsl/DarklafComponentFactory.java

@ -67,6 +67,11 @@ public class DarklafComponentFactory extends ComponentFactoryDelegate {
return UIManager.getColor("hyperlink"); return UIManager.getColor("hyperlink");
} }
@Override
public @NotNull Color getHyperlinkClickColor() {
return UIManager.getColor("hyperlinkAccent");
}
@Override @Override
public @NotNull StateValue<Icon> getExpandedIcon() { public @NotNull StateValue<Icon> getExpandedIcon() {
return new StateValue<>( return new StateValue<>(
@ -80,4 +85,9 @@ public class DarklafComponentFactory extends ComponentFactoryDelegate {
DarkUIUtil.ICON_LOADER.getIcon("navigation/arrow/thick/arrowRight.svg"), DarkUIUtil.ICON_LOADER.getIcon("navigation/arrow/thick/arrowRight.svg"),
DarkUIUtil.ICON_LOADER.getIcon("navigation/arrow/thick/arrowRightDisabled.svg")); DarkUIUtil.ICON_LOADER.getIcon("navigation/arrow/thick/arrowRightDisabled.svg"));
} }
@Override
public @NotNull Color getColorBackgroundColor() {
return UIManager.getColor("backgroundColorful");
}
} }

4
gradle/libs.versions.toml

@ -10,14 +10,14 @@ autoservice = "1.0-rc7"
lGoodDatePicker = "11.0.2" lGoodDatePicker = "11.0.2"
swingDsl = "latest.integration" swingDsl = "latest.integration"
nullabilityAnnotations = "16.0.2" nullabilityAnnotations = "16.0.2"
macOSFramework = "latest.integration" macOSFramework = "latest.release"
[libraries] [libraries]
jna = { module = "net.java.dev.jna:jna", version.ref = "jna" } jna = { module = "net.java.dev.jna:jna", version.ref = "jna" }
jxlayer = { module = "org.swinglabs:jxlayer", version.ref = "jxlayer" } jxlayer = { module = "org.swinglabs:jxlayer", version.ref = "jxlayer" }
swingx = { module = "org.swinglabs:swingx", version.ref = "swingx" } swingx = { module = "org.swinglabs:swingx", version.ref = "swingx" }
svgSalamander = { module = "com.formdev:svgSalamander", version.ref = "svgSalamander" } svgSalamander = { module = "com.formdev:svgSalamander", version.ref = "svgSalamander" }
swingDslLafSupport = { module = "com.github.weisj:swing-dsl-laf-support", version.ref = "swingDsl" } swingDslLafSupport = { module = "com.github.weisj:swing-extensions-laf-support", version.ref = "swingDsl" }
autoservice-annotations = { module = "com.google.auto.service:auto-service-annotations", version.ref = "autoservice" } autoservice-annotations = { module = "com.google.auto.service:auto-service-annotations", version.ref = "autoservice" }
autoservice-processor = { module = "com.google.auto.service:auto-service", version.ref = "autoservice" } autoservice-processor = { module = "com.google.auto.service:auto-service", version.ref = "autoservice" }
nullabilityAnnotations = { module = "org.jetbrains:annotations", version.ref = "nullabilityAnnotations" } nullabilityAnnotations = { module = "org.jetbrains:annotations", version.ref = "nullabilityAnnotations" }

Loading…
Cancel
Save