From 70ca3fef77ee8bdc6e3ac28589a6fa08c024cc69 Mon Sep 17 00:00:00 2001 From: AlexanderCurl Date: Sat, 18 Apr 2026 17:46:06 +0100 Subject: Replaced file structures for themes in the correct format --- .../DankMaterialShell/core/internal/utils/math.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 raveos-hyprland-theme/theme-data/DankMaterialShell/core/internal/utils/math.go (limited to 'raveos-hyprland-theme/theme-data/DankMaterialShell/core/internal/utils/math.go') diff --git a/raveos-hyprland-theme/theme-data/DankMaterialShell/core/internal/utils/math.go b/raveos-hyprland-theme/theme-data/DankMaterialShell/core/internal/utils/math.go new file mode 100644 index 0000000..408af9f --- /dev/null +++ b/raveos-hyprland-theme/theme-data/DankMaterialShell/core/internal/utils/math.go @@ -0,0 +1,13 @@ +package utils + +import "golang.org/x/exp/constraints" + +func Clamp[T constraints.Ordered](val, min, max T) T { + if val < min { + return min + } + if val > max { + return max + } + return val +} -- cgit v1.3