Change color theme option

This commit is contained in:
nelle 2024-02-17 17:29:20 -07:00
parent 17e1e93a14
commit 68f94064ad

View file

@ -0,0 +1,26 @@
package xyz.limepot.kotRemote.jexerWindow
import jexer.TAction
import jexer.TApplication
import jexer.TEditColorThemeWindow
import jexer.TWindow
import jexer.layout.StretchLayoutManager
class OptionsWindow private constructor(parent: TApplication, flags: Int) :
TWindow(parent, "Options", 0, 0, 36, 19, flags) {
constructor(parent: TApplication) : this(parent, CENTERED)
init {
layoutManager = StretchLayoutManager(
width - 2,
height - 2
)
addButton("Change Color Theme", 6, 2,
object : TAction() {
override fun DO() {
TEditColorThemeWindow(application)
}
})
}
}