mirror of
https://github.com/sst/opencode.git
synced 2025-07-07 16:14:59 +00:00
fix(tui): make opencode theme default
This commit is contained in:
parent
7d13baadc8
commit
ccbc9e00f2
2 changed files with 6 additions and 6 deletions
|
@ -18,7 +18,7 @@ type State struct {
|
|||
|
||||
func NewState() *State {
|
||||
return &State{
|
||||
Theme: "system",
|
||||
Theme: "opencode",
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -93,16 +93,16 @@ func AvailableThemes() []string {
|
|||
names = append(names, name)
|
||||
}
|
||||
slices.SortFunc(names, func(a, b string) int {
|
||||
if a == "system" {
|
||||
return -1
|
||||
} else if b == "system" {
|
||||
return 1
|
||||
}
|
||||
if a == "opencode" {
|
||||
return -1
|
||||
} else if b == "opencode" {
|
||||
return 1
|
||||
}
|
||||
if a == "system" {
|
||||
return -1
|
||||
} else if b == "system" {
|
||||
return 1
|
||||
}
|
||||
return strings.Compare(a, b)
|
||||
})
|
||||
return names
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue