diff --git a/layouts/partials/navbar.html b/layouts/partials/navbar.html index 62fff0a1..3e461a41 100644 --- a/layouts/partials/navbar.html +++ b/layouts/partials/navbar.html @@ -14,9 +14,9 @@ {{- end -}} - diff --git a/layouts/partials/theme-toggle.html b/layouts/partials/theme-toggle.html index cb09b141..6b0573ce 100644 --- a/layouts/partials/theme-toggle.html +++ b/layouts/partials/theme-toggle.html @@ -1,21 +1,58 @@ -{{- $hideLabel := .hideLabel | default false -}} +{{- $hideLabel := .hideLabel -}} +{{- $iconHeight := .iconHeight | default 12 -}} +{{- $class := .class | default "hx:h-7 hx:px-2 hx:text-xs hx:hover:bg-gray-100 hx:hover:text-gray-900 hx:dark:hover:bg-primary-100/5 hx:dark:hover:text-gray-50 hx:font-medium hx:text-gray-600 hx:transition-colors hx:dark:text-gray-400" -}} +{{- $location := .location | default "bottom" -}} {{- $changeTheme := (T "changeTheme") | default "Change theme" -}} {{- $light := (T "light") | default "Light" -}} {{- $dark := (T "dark") | default "Dark" -}} +{{- $system := (T "system") | default "System" -}} - - \ No newline at end of file +
+ + +