From a27487fbe78d747c6b615f0619863ed62da77382 Mon Sep 17 00:00:00 2001 From: limepotato Date: Sat, 17 Feb 2024 17:30:41 -0700 Subject: [PATCH] About Winow --- .../kotRemote/jexerWindow/AboutWindow.kt | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/main/kotlin/xyz/limepot/kotRemote/jexerWindow/AboutWindow.kt diff --git a/src/main/kotlin/xyz/limepot/kotRemote/jexerWindow/AboutWindow.kt b/src/main/kotlin/xyz/limepot/kotRemote/jexerWindow/AboutWindow.kt new file mode 100644 index 0000000..1f2cc01 --- /dev/null +++ b/src/main/kotlin/xyz/limepot/kotRemote/jexerWindow/AboutWindow.kt @@ -0,0 +1,21 @@ +package xyz.limepot.kotRemote.jexerWindow + +import jexer.TApplication +import jexer.TWindow +import jexer.layout.StretchLayoutManager + +class AboutWindow private constructor(parent: TApplication, flags: Int) : + TWindow(parent, "About", 0, 0, 52, 19, flags) { + constructor(parent: TApplication) : this(parent, CENTERED) + + init { + layoutManager = StretchLayoutManager( + width - 2, + height - 2 + ) + + addLabel("kotRemote", 20, 0) + addLabel("Wrapper for sshfs built in Kotlin, with Jexer.", 3, 2) + addLabel("Created by LimePotato", 13, 6) + } +} \ No newline at end of file