Change color theme option
This commit is contained in:
parent
17e1e93a14
commit
68f94064ad
1 changed files with 26 additions and 0 deletions
|
@ -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)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue