Add application icon

This commit is contained in:
Marvin Elsen 2024-10-01 20:08:08 +02:00
parent 1ab6ef453a
commit 3939021285
Signed by: marvinelsen
GPG Key ID: 820672408CC318C2
3 changed files with 2 additions and 0 deletions

View File

@ -12,6 +12,7 @@ import com.marvinelsen.willow.ui.util.SearchService
import javafx.application.Application
import javafx.fxml.FXMLLoader
import javafx.scene.Scene
import javafx.scene.image.Image
import javafx.scene.layout.BorderPane
import javafx.scene.text.Font
import javafx.stage.Stage
@ -69,6 +70,7 @@ class WillowApplication : Application() {
minWidth = WINDOW_MIN_WIDTH
minHeight = WINDOW_MIN_HEIGHT
scene = primaryScene
icons.add(Image(javaClass.getResourceAsStream("/img/icon.png")))
}.show()
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

Binary file not shown.