From ecc8efc56509af874da1c80ecedd68ce89a086c5 Mon Sep 17 00:00:00 2001 From: Daniel Wolf Date: Fri, 2 Feb 2018 23:05:17 +0100 Subject: [PATCH] Added window icon --- .../rhubarb_for_spine/MainView.kt | 13 ++++++------- .../src/main/resources/icon-16.png | Bin 0 -> 386 bytes .../src/main/resources/icon-256.png | Bin 0 -> 7080 bytes .../src/main/resources/icon-32.png | Bin 0 -> 942 bytes .../src/main/resources/icon-48.png | Bin 0 -> 1398 bytes 5 files changed, 6 insertions(+), 7 deletions(-) create mode 100644 extras/rhubarb-for-spine/src/main/resources/icon-16.png create mode 100644 extras/rhubarb-for-spine/src/main/resources/icon-256.png create mode 100644 extras/rhubarb-for-spine/src/main/resources/icon-32.png create mode 100644 extras/rhubarb-for-spine/src/main/resources/icon-48.png diff --git a/extras/rhubarb-for-spine/src/main/kotlin/com/rhubarb_lip_sync/rhubarb_for_spine/MainView.kt b/extras/rhubarb-for-spine/src/main/kotlin/com/rhubarb_lip_sync/rhubarb_for_spine/MainView.kt index e15a50a..98f24fa 100644 --- a/extras/rhubarb-for-spine/src/main/kotlin/com/rhubarb_lip_sync/rhubarb_for_spine/MainView.kt +++ b/extras/rhubarb-for-spine/src/main/kotlin/com/rhubarb_lip_sync/rhubarb_for_spine/MainView.kt @@ -4,27 +4,26 @@ import javafx.beans.property.SimpleStringProperty import javafx.event.ActionEvent import javafx.event.EventHandler import javafx.scene.control.* +import javafx.scene.image.Image import javafx.scene.input.DragEvent import javafx.scene.input.TransferMode -import javafx.scene.paint.Paint import javafx.scene.text.Text import javafx.stage.FileChooser import tornadofx.* import java.io.File -import java.time.LocalDate -import java.time.Period import java.util.concurrent.Executors class MainView : View() { private val executor = Executors.newSingleThreadExecutor() private val mainModel = MainModel(executor) - class Person(val id: Int, val name: String, val birthday: LocalDate) { - val age: Int get() = Period.between(birthday, LocalDate.now()).years - } - init { title = "Rhubarb Lip Sync for Spine" + + // Set icon + for (iconSize in listOf(16, 32, 48, 256)) { + addStageIcon(Image(this.javaClass.getResourceAsStream("/icon-$iconSize.png"))) + } } override val root = form { diff --git a/extras/rhubarb-for-spine/src/main/resources/icon-16.png b/extras/rhubarb-for-spine/src/main/resources/icon-16.png new file mode 100644 index 0000000000000000000000000000000000000000..5ac439bd0c6b87805f08516b01509a704626f715 GIT binary patch literal 386 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbK}T7XZ8>;M1%y}UeEMYjG=oC;(B z(UK*Lfr1fW;O*^&j6y(kv$F~c@=HrgGBY#s@^XP}pqj|Y$k^DJ$jFG`;2;Pi zCMJ4Wa0AfTWkL0Q48K55VJ!*r1KG^5c>?p3b|B4J;1OBOz#uLN!i=ZXKHCEY*-Jcq zUD+RUv5A=SoZG+PG*GD0)5S4FLX!31!9W&60S3dZxvPFmIPg^dwjkr44}3v$p7G6j zcB*}6!`%I~Ud&}LRX8_SE!#UQH8r&V_AZ+S_U{LHm=Di9xo%b6ddqhoBSZf_GN=u^ z`dz^)?!&iqotfclt9WnD`uVe~GTy_YfPHi7IoZ!^8W+eG^ZsMZ?6q)Ts>8k==m^OY v*NBqf{Irtt#G+IN$CUh}R0Yr6#Prml)Wnp^!jq{sKt&9mu6{1-oD!M<=l71I literal 0 HcmV?d00001 diff --git a/extras/rhubarb-for-spine/src/main/resources/icon-256.png b/extras/rhubarb-for-spine/src/main/resources/icon-256.png new file mode 100644 index 0000000000000000000000000000000000000000..bbeaebd3509e8d13ee06708ee2ed8b07ea0a83f3 GIT binary patch literal 7080 zcmbt(_gB-;^Ytqs2_dx5qzIuY(u;^l550E~6{HF%J#?gn-V{U>cuNZ?qM(3M6+%Ks zL5ftV5vBK{1PJ8u^ZX0nIcI0~?43Jj&;GEx=T4f1nLZOCgb(2buu_nGkG)qT#*Odt)@_} zR%1=u36?)xp^w|+{>JPS)}fe#Jhw}N2Gv&Pcl3F_h2vF%c8U&8i+6Uy&K(5df{942 z|EqhNgpdIV9)I*-pmA#-UEVGskQa>^5rAMf-Qk_x#9pK4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#DL8|8FIt%fad!sRFoh1>ByL8GBqa9#e z3+ZDN`Fv6E;XAwEZ$O49%4ivNK7Cye#}K0oR1^W>A{#vyE`Lr&4(8BEYNVWq0%k`J z`0MAxjf?MzliQe)V#*lv>znMr%EkS}R8;jM<#7I!dbM2$v8H3&9FxosCFbez*%H0J zCeMl#906aGKv8#(re}yk0BbBh3TtpLo_VvS@5mHmzU|UTReav_WOm@Gssa|SdWkZ_$7S~GM#YX5klJ<#Xvs>?&LHdS zP%cq!7Fr-2m%|KS_#;hoQDBK9VNmdsTqz-7Qli2?)w}Zv!$SmsF=6ky_YD}TtaLK9 z)W81~t05eDB0^IPMyF?M>HOVg2>ieFn1Uz-fCf-0zMh*_D-Z_!Gecc7ooX%T`2PpU CCmJFE literal 0 HcmV?d00001 diff --git a/extras/rhubarb-for-spine/src/main/resources/icon-32.png b/extras/rhubarb-for-spine/src/main/resources/icon-32.png new file mode 100644 index 0000000000000000000000000000000000000000..04c0eb812115decbcc250573704fe3d7cf07f342 GIT binary patch literal 942 zcmV;f15x~mP){mTZQ&AK?eJxTbQFLe>N>XY%Ryx|P!*h_OFiIE8(8NT7&&f@V46s-j9P9!e zn1KZcn^0WZ!NlTQOwhIo#!wSXMaqvz^qkAR=JEQsfZB~(MV((KmbChk5HYc_i4<*(b2>xYJ{U(K%GQ{ zRSPi;aOWg(iXQz&Z1{0UGeIb`s8hIL-XiKLs3eabIQ4^KUZM{i=*35xkCDL~8kSI# ze1n!8qb|8zuBBKk7Sc?m4U>>3Nr}Gu{eBo4ia|b~gIq2LwOXypnOWh_GEt~=*v+Gi za=LwqL;_^_CS)?NAeBndvMSnLZg>iClR0h-Zv8)z=5KKgoNJrjzvG@^YXJ?x^7z<66 zVqTQqT3rc|UBj|387!n%P`22A!=fgg)SyL4pA^89h0e>zm367X`zrHfJk{tModO|G z_`Sd++(O~@TyaN9fT#+8eGVtv8PxhVk3 z1&mU8_!Ud*&&|4dJu8Bl%E5M3fHxD1}$sLdEZD)>!9d__?^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