mirror of
https://github.com/eeeXun/GTT.git
synced 2025-05-18 08:40:35 -07:00
feat: enable select borderColor
This commit is contained in:
parent
8901983ccc
commit
e208428e8a
18
ui.go
18
ui.go
@ -197,11 +197,13 @@ func uiInit() {
|
||||
IndexOf(strconv.FormatBool(transparent),
|
||||
[]string{"true", "false"}))
|
||||
srcBorderDropDown.SetLabel("Border Color: ").
|
||||
SetOptions(Palette, nil)
|
||||
SetOptions(Palette, nil).
|
||||
SetCurrentOption(IndexOf(style.SrcBorderStr(), Palette))
|
||||
srcBorderDropDown.SetBorder(true).
|
||||
SetTitle("Source")
|
||||
dstBorderDropDown.SetLabel("Border Color: ").
|
||||
SetOptions(Palette, nil)
|
||||
SetOptions(Palette, nil).
|
||||
SetCurrentOption(IndexOf(style.DstBorderStr(), Palette))
|
||||
dstBorderDropDown.SetBorder(true).
|
||||
SetTitle("Destination")
|
||||
|
||||
@ -258,8 +260,16 @@ func uiInit() {
|
||||
SetSelectedFunc(themeSelected)
|
||||
transparentDropDown.SetDoneFunc(styleDropDownHandler).
|
||||
SetSelectedFunc(transparentSelected)
|
||||
srcBorderDropDown.SetDoneFunc(styleDropDownHandler)
|
||||
dstBorderDropDown.SetDoneFunc(styleDropDownHandler)
|
||||
srcBorderDropDown.SetDoneFunc(styleDropDownHandler).
|
||||
SetSelectedFunc(func(text string, index int) {
|
||||
style.SetSrcBorderColor(text)
|
||||
updateBorderColor()
|
||||
})
|
||||
dstBorderDropDown.SetDoneFunc(styleDropDownHandler).
|
||||
SetSelectedFunc(func(text string, index int) {
|
||||
style.SetDstBorderColor(text)
|
||||
updateBorderColor()
|
||||
})
|
||||
langButton.SetSelectedFunc(func() {
|
||||
mainPage.HidePage("stylePage")
|
||||
mainPage.ShowPage("langPage")
|
||||
|
Loading…
x
Reference in New Issue
Block a user