mirror of
https://github.com/VladimirMarkelov/clui.git
synced 2025-04-26 13:49:01 +08:00
rename some method to follow global style
This commit is contained in:
parent
92a3c3b9f1
commit
dc3de96cc7
8
theme.go
8
theme.go
@ -34,10 +34,6 @@ type theme struct {
|
||||
|
||||
const defaultTheme = "default"
|
||||
|
||||
// Theme color constants
|
||||
// const (
|
||||
// )
|
||||
|
||||
func NewThemeManager() *ThemeManager {
|
||||
sm := new(ThemeManager)
|
||||
sm.current = defaultTheme
|
||||
@ -126,7 +122,7 @@ func (s *ThemeManager) SysObject(object ObjId) string {
|
||||
return obj
|
||||
}
|
||||
|
||||
func (s *ThemeManager) GetThemeList() []string {
|
||||
func (s *ThemeManager) ThemeList() []string {
|
||||
str := make([]string, len(s.themes))
|
||||
for k := range s.themes {
|
||||
str = append(str, k)
|
||||
@ -135,7 +131,7 @@ func (s *ThemeManager) GetThemeList() []string {
|
||||
return str
|
||||
}
|
||||
|
||||
func (s *ThemeManager) GetCurrentTheme() string {
|
||||
func (s *ThemeManager) CurrentTheme() string {
|
||||
return s.current
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user