Skip to content

Commit b708b6b

Browse files
committed
First commit
0 parents  commit b708b6b

12 files changed

Lines changed: 375 additions & 0 deletions

File tree

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/local.properties
2+
/.gradle/
3+
/.idea/
4+
/build/

build.gradle

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
plugins {
2+
id 'org.jetbrains.kotlin.jvm' version "1.4.32"
3+
id 'application'
4+
id 'org.openjfx.javafxplugin' version '0.0.8'
5+
}
6+
group = 'com.test'
7+
version = '1.0-SNAPSHOT'
8+
9+
repositories {
10+
mavenCentral()
11+
}
12+
13+
application {
14+
mainClassName = "com.example.MainKt"
15+
}
16+
17+
dependencies {
18+
implementation "no.tornado:tornadofx:$tornadofx_version"
19+
testImplementation "org.jetbrains.kotlin:kotlin-test-junit"
20+
}
21+
22+
compileKotlin {
23+
kotlinOptions.jvmTarget = "11"
24+
}
25+
compileTestKotlin {
26+
kotlinOptions.jvmTarget = "11"
27+
}
28+
29+
javafx {
30+
version = "11.0.2"
31+
modules = ['javafx.controls', 'javafx.graphics']
32+
}

gradle.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
kotlin.code.style=official
2+
tornadofx_version=1.7.20

gradle/wrapper/gradle-wrapper.jar

57.3 KB
Binary file not shown.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.3-bin.zip
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists

gradlew

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

gradlew.bat

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

settings.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
rootProject.name = 'tornadofx-gradle-project'
2+
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package fr.minemobs.pepitedorlocalization
2+
3+
import fr.minemobs.pepitedorlocalization.view.MainView
4+
import tornadofx.App
5+
6+
class MyApp: App(MainView::class, Styles::class)
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
package fr.minemobs.pepitedorlocalization
2+
3+
import javafx.scene.text.FontWeight
4+
import tornadofx.Stylesheet
5+
import tornadofx.box
6+
import tornadofx.cssclass
7+
import tornadofx.px
8+
9+
class Styles : Stylesheet() {
10+
companion object {
11+
val heading by cssclass()
12+
}
13+
14+
init {
15+
label and heading {
16+
padding = box(10.px)
17+
fontSize = 20.px
18+
fontWeight = FontWeight.BOLD
19+
}
20+
}
21+
}

0 commit comments

Comments
 (0)