From 242ba7f412d4e54f21385afff3f2b884f57f6ced Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Thu, 30 May 2024 15:06:28 +0200 Subject: feat: Add navbar selection --- templates/navbar.qtpl | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 templates/navbar.qtpl (limited to 'templates/navbar.qtpl') diff --git a/templates/navbar.qtpl b/templates/navbar.qtpl new file mode 100644 index 0000000..26991a3 --- /dev/null +++ b/templates/navbar.qtpl @@ -0,0 +1,23 @@ +{% code +type Selection int +const ( + Git Selection = iota + List + About + Config +) +%} + +{% func insertIfEqual(s, d Selection) %}{% if s == d %} selected{% endif %}{% endfunc %} + + +{% func Navbar (s Selection) %} + +{% endfunc %} -- cgit v1.2.3