summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Master/texmf-dist/scripts/tlcockpit/tlcockpit.jarbin11646457 -> 11651966 bytes
-rw-r--r--Master/texmf-dist/source/support/tlcockpit/src/main/resources/TLCockpit/tlcockpit-128.jpgbin0 -> 3479 bytes
-rw-r--r--Master/texmf-dist/source/support/tlcockpit/src/main/resources/TLCockpit/tlcockpit-48.jpgbin0 -> 1166 bytes
-rw-r--r--Master/texmf-dist/source/support/tlcockpit/src/main/scala/TLCockpit/ApplicationMain.scala15
4 files changed, 10 insertions, 5 deletions
diff --git a/Master/texmf-dist/scripts/tlcockpit/tlcockpit.jar b/Master/texmf-dist/scripts/tlcockpit/tlcockpit.jar
index 4fe251977c0..ee194fe5d2e 100644
--- a/Master/texmf-dist/scripts/tlcockpit/tlcockpit.jar
+++ b/Master/texmf-dist/scripts/tlcockpit/tlcockpit.jar
Binary files differ
diff --git a/Master/texmf-dist/source/support/tlcockpit/src/main/resources/TLCockpit/tlcockpit-128.jpg b/Master/texmf-dist/source/support/tlcockpit/src/main/resources/TLCockpit/tlcockpit-128.jpg
new file mode 100644
index 00000000000..fe92ead1e31
--- /dev/null
+++ b/Master/texmf-dist/source/support/tlcockpit/src/main/resources/TLCockpit/tlcockpit-128.jpg
Binary files differ
diff --git a/Master/texmf-dist/source/support/tlcockpit/src/main/resources/TLCockpit/tlcockpit-48.jpg b/Master/texmf-dist/source/support/tlcockpit/src/main/resources/TLCockpit/tlcockpit-48.jpg
new file mode 100644
index 00000000000..d9d5dc6ca8a
--- /dev/null
+++ b/Master/texmf-dist/source/support/tlcockpit/src/main/resources/TLCockpit/tlcockpit-48.jpg
Binary files differ
diff --git a/Master/texmf-dist/source/support/tlcockpit/src/main/scala/TLCockpit/ApplicationMain.scala b/Master/texmf-dist/source/support/tlcockpit/src/main/scala/TLCockpit/ApplicationMain.scala
index c281308d6b4..5831e4828e4 100644
--- a/Master/texmf-dist/source/support/tlcockpit/src/main/scala/TLCockpit/ApplicationMain.scala
+++ b/Master/texmf-dist/source/support/tlcockpit/src/main/scala/TLCockpit/ApplicationMain.scala
@@ -9,6 +9,7 @@ package TLCockpit
import javafx.collections.ObservableList
import javafx.scene.control
+import TLCockpit.ApplicationMain.getClass
import TeXLive.{TLBackup, TLPackage, TlmgrProcess}
import scala.collection.mutable
@@ -20,6 +21,7 @@ import scalafx.beans.Observable
import scalafx.beans.property.{ObjectProperty, ReadOnlyStringWrapper}
import scalafx.geometry.{HPos, Pos, VPos}
import scalafx.scene.control.Alert.AlertType
+import scalafx.scene.image.{Image, ImageView}
import scalafx.scene.input.{KeyCode, KeyEvent}
// needed see https://github.com/scalafx/scalafx/issues/137
import scalafx.scene.control.TableColumn._
@@ -47,6 +49,9 @@ object ApplicationMain extends JFXApp {
tlmgr.cleanup()
}
+ val iconImage = new Image(getClass.getResourceAsStream("tlcockpit-48.jpg"))
+ val logoImage = new Image(getClass.getResourceAsStream("tlcockpit-128.jpg"))
+
val pkgs: ArrayBuffer[TLPackage] = ArrayBuffer()
val errorText: ObservableBuffer[String] = ObservableBuffer[String]()
@@ -224,10 +229,8 @@ object ApplicationMain extends JFXApp {
expanded = true
children = updkids
}
+ update_update_menu_state()
}
- updateTable.refresh()
- packageTable.refresh()
- update_update_menu_state()
})
}
@@ -286,8 +289,9 @@ object ApplicationMain extends JFXApp {
new Alert(AlertType.Information) {
initOwner(stage)
title = "About TLCockpit"
- headerText = "TLCockpit version " + version + "\nLicense: GPL3+"
- contentText = "Brought to you by Norbert\nSources: https://github.com/TeX-Live/tlcockpit"
+ graphic = new ImageView(logoImage)
+ headerText = "TLCockpit version " + version + "\n\nManage your TeX Live with speed!"
+ contentText = "Copyright 2017 Norbert Preining\nLicense: GPL3+\nSources: https://github.com/TeX-Live/tlcockpit"
}.showAndWait()
}
@@ -714,6 +718,7 @@ object ApplicationMain extends JFXApp {
}
}
}
+ icons.add(iconImage)
}
/* TODO implement splash screen - see example in ProScalaFX