mirror of
https://github.com/sst/opencode.git
synced 2025-08-04 05:28:16 +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 {
|
func NewState() *State {
|
||||||
return &State{
|
return &State{
|
||||||
Theme: "system",
|
Theme: "opencode",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -93,16 +93,16 @@ func AvailableThemes() []string {
|
||||||
names = append(names, name)
|
names = append(names, name)
|
||||||
}
|
}
|
||||||
slices.SortFunc(names, func(a, b string) int {
|
slices.SortFunc(names, func(a, b string) int {
|
||||||
if a == "system" {
|
|
||||||
return -1
|
|
||||||
} else if b == "system" {
|
|
||||||
return 1
|
|
||||||
}
|
|
||||||
if a == "opencode" {
|
if a == "opencode" {
|
||||||
return -1
|
return -1
|
||||||
} else if b == "opencode" {
|
} else if b == "opencode" {
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
if a == "system" {
|
||||||
|
return -1
|
||||||
|
} else if b == "system" {
|
||||||
|
return 1
|
||||||
|
}
|
||||||
return strings.Compare(a, b)
|
return strings.Compare(a, b)
|
||||||
})
|
})
|
||||||
return names
|
return names
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue