From cfb08f02bc1a5242df6b25ee88f2b695872581be Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Fri, 20 Jan 2023 14:40:00 -0500 Subject: [PATCH] Added scroll stuff to theme --- theme/scroll.go | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 theme/scroll.go diff --git a/theme/scroll.go b/theme/scroll.go new file mode 100644 index 0000000..634e4fb --- /dev/null +++ b/theme/scroll.go @@ -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 + } +}