summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/support
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2017-09-28 15:28:35 +0000
committerNorbert Preining <preining@logic.at>2017-09-28 15:28:35 +0000
commitb8b310a36a06faca05d82e2acce750b163eca2de (patch)
tree4a1dc0f94ca76ab2ed4e2848ebb5c26835440811 /Master/texmf-dist/source/support
parentd71a0698b1309b3ff094b32532f041659b585a9b (diff)
another update with icon
git-svn-id: svn://tug.org/texlive/trunk@45425 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/support')
-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
3 files changed, 10 insertions, 5 deletions
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