This repository has been archived on 2023-08-08. You can view files and clone it, but cannot push or open issues or pull requests.
tomo-old/theme/list.go

48 lines
1.2 KiB
Go
Raw Normal View History

2023-01-23 00:05:09 -07:00
package theme
import "git.tebibyte.media/sashakoshka/tomo/artist"
var listPattern = artist.NewMultiBordered (
artist.Stroke { Weight: 1, Pattern: strokePattern },
artist.Stroke {
Weight: 1,
Pattern: artist.Beveled {
artist.NewUniform(hex(0x383C3AFF)),
artist.NewUniform(hex(0x999C99FF)),
2023-01-23 00:05:09 -07:00
},
},
artist.Stroke { Pattern: artist.NewUniform(hex(0x999C99FF)) })
2023-01-23 21:54:12 -07:00
var listEntryPattern = artist.NewMultiBordered (
artist.Stroke { Weight: 1, Pattern: artist.QuadBeveled {
artist.NewUniform(hex(0x999C99FF)),
strokePattern,
artist.NewUniform(hex(0x999C99FF)),
strokePattern,
}},
artist.Stroke { Pattern: artist.NewUniform(hex(0x999C99FF)) })
2023-01-23 00:05:09 -07:00
2023-01-23 21:54:12 -07:00
var selectedListEntryPattern = artist.NewMultiBordered (
artist.Stroke { Weight: 1, Pattern: strokePattern },
artist.Stroke {
Weight: 1,
Pattern: artist.Beveled {
artist.NewUniform(hex(0x3b534eFF)),
artist.NewUniform(hex(0x97a09cFF)),
2023-01-23 21:54:12 -07:00
},
},
artist.Stroke { Pattern: artist.NewUniform(hex(0x97a09cFF)) })
2023-01-23 00:05:09 -07:00
func ListPattern () (pattern artist.Pattern) {
return listPattern
}
func ListEntryPattern (selected bool) (pattern artist.Pattern) {
if selected {
return selectedListEntryPattern
} else {
return listEntryPattern
}
}