Added scroll stuff to theme

This commit is contained in:
Sasha Koshka 2023-01-20 14:40:00 -05:00
parent afd543ce92
commit cfb08f02bc

19
theme/scroll.go Normal file
View File

@ -0,0 +1,19 @@
package theme
import "git.tebibyte.media/sashakoshka/tomo/artist"
func ScrollGutterPattern (horizontal bool, enabled bool) (artist.Pattern) {
if enabled {
return sunkenPattern
} else {
return disabledButtonPattern
}
}
func ScrollBarPattern (horizontal bool, enabled bool) (artist.Pattern) {
if enabled {
return buttonPattern
} else {
return disabledButtonPattern
}
}