diff --git a/.drone.yml b/.drone.yml index 97f997c..ff33ed5 100644 --- a/.drone.yml +++ b/.drone.yml @@ -7,9 +7,7 @@ type: docker # os: linux # arch: amd64 - steps: - - name: jpackage image: docker.io/eclipse-temurin:17 environment: diff --git a/build.gradle b/build.gradle index 403b658..dab1a16 100644 --- a/build.gradle +++ b/build.gradle @@ -41,10 +41,12 @@ dependencies { implementation 'org.slf4j:slf4j-api:2.0.7' // Logging API runtimeOnly 'org.slf4j:slf4j-simple:2.0.7' // Logging API + implementation 'io.github.mkpaz:atlantafx-base:2.0.1' implementation 'jakarta.inject:jakarta.inject-api:2.0.1' implementation 'jakarta.annotation:jakarta.annotation-api:2.1.1' implementation 'org.jmdns:jmdns:3.5.8' + testImplementation 'org.spockframework:spock-core:2.3-groovy-3.0' testImplementation 'org.slf4j:slf4j-simple:2.0.7' } diff --git a/doc/mDNS-Explorer.png b/doc/mDNS-Explorer.png index a7ad97e..befd4ca 100644 Binary files a/doc/mDNS-Explorer.png and b/doc/mDNS-Explorer.png differ diff --git a/gradle.properties b/gradle.properties index c518c53..7aaff10 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1 +1 @@ -version = 1.0.1 +version = 1.0.2 diff --git a/src/main/java/biz/nellemann/mdexpl/App.java b/src/main/java/biz/nellemann/mdexpl/App.java index 03b466a..e952114 100644 --- a/src/main/java/biz/nellemann/mdexpl/App.java +++ b/src/main/java/biz/nellemann/mdexpl/App.java @@ -6,6 +6,7 @@ import javafx.fxml.FXMLLoader; import javafx.scene.Scene; import javafx.scene.image.Image; import javafx.stage.Stage; +import atlantafx.base.theme.NordDark; import java.awt.Taskbar; import java.awt.Toolkit; @@ -40,6 +41,9 @@ public class App extends Application { } + // find more themes in 'atlantafx.base.theme' package + Application.setUserAgentStylesheet(new NordDark().getUserAgentStylesheet()); + FXMLLoader fxmlLoader = new FXMLLoader(App.class.getResource("main.fxml")); Scene scene = new Scene(fxmlLoader.load()); primaryStage.setTitle("mDNS Explorer"); diff --git a/src/main/java/module-info.java b/src/main/java/module-info.java index 753b422..255b092 100644 --- a/src/main/java/module-info.java +++ b/src/main/java/module-info.java @@ -1,11 +1,12 @@ module biz.nellemann.mdexpl { requires javafx.controls; requires javafx.fxml; + requires java.desktop; requires javax.jmdns; requires org.slf4j; requires jakarta.inject; requires jakarta.annotation; - requires java.desktop; + requires atlantafx.base; opens biz.nellemann.mdexpl to javafx.fxml; exports biz.nellemann.mdexpl; diff --git a/src/main/resources/biz/nellemann/mdexpl/main.fxml b/src/main/resources/biz/nellemann/mdexpl/main.fxml index 933b83e..5648e9b 100644 --- a/src/main/resources/biz/nellemann/mdexpl/main.fxml +++ b/src/main/resources/biz/nellemann/mdexpl/main.fxml @@ -9,7 +9,7 @@ - +