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/input.go

34 lines
970 B
Go
Raw Normal View History

2023-01-17 22:38:58 -07:00
package theme
import "git.tebibyte.media/sashakoshka/tomo/artist"
2023-01-20 17:24:21 -07:00
var inputPattern = artist.NewMultiBordered (
artist.Stroke { Weight: 1, Pattern: strokePattern },
artist.Stroke {
2023-01-17 22:38:58 -07:00
Weight: 1,
2023-01-20 21:00:26 -07:00
Pattern: artist.Beveled {
artist.NewUniform(hex(0x89925AFF)),
artist.NewUniform(hex(0xD2CB9AFF)),
2023-01-17 22:38:58 -07:00
},
},
artist.Stroke { Pattern: artist.NewUniform(hex(0xD2CB9AFF)) })
2023-01-20 17:24:21 -07:00
var selectedInputPattern = artist.NewMultiBordered (
artist.Stroke { Weight: 1, Pattern: strokePattern },
artist.Stroke { Weight: 1, Pattern: accentPattern },
artist.Stroke { Pattern: artist.NewUniform(hex(0xD2CB9AFF)) })
2023-01-20 17:24:21 -07:00
var disabledInputPattern = artist.NewMultiBordered (
artist.Stroke { Weight: 1, Pattern: weakForegroundPattern },
artist.Stroke { Pattern: backgroundPattern })
2023-01-17 22:38:58 -07:00
func InputPattern (enabled, selected bool) (artist.Pattern) {
if enabled {
if selected {
return selectedInputPattern
} else {
return inputPattern
}
} else {
return disabledInputPattern
}
}