diff --git a/src/layout/components/NavBar.vue b/src/layout/components/NavBar.vue
index 43202ed5..598ca372 100644
--- a/src/layout/components/NavBar.vue
+++ b/src/layout/components/NavBar.vue
@@ -51,6 +51,9 @@ limitations under the License. -->
+
+
+
@@ -84,11 +87,24 @@ limitations under the License. -->
const pathNames = ref<{ path?: string; name: string; selected: boolean }[][]>([]);
const timeRange = ref(0);
const pageTitle = ref("");
+ const theme = ref(false);
resetDuration();
getVersion();
getNavPaths();
+ function changeTheme() {
+ const root = document.documentElement;
+
+ if (theme.value) {
+ root.classList.add("dark");
+ root.classList.remove("light");
+ } else {
+ root.classList.add("light");
+ root.classList.remove("dark");
+ }
+ }
+
function getName(list: any[]) {
return list.find((d: any) => d.selected) || {};
}