From dc2ba8e7243b310e4d53849a29aa33d54e802786 Mon Sep 17 00:00:00 2001 From: joshuaboud Date: Mon, 13 Jun 2022 17:36:44 -0300 Subject: [PATCH] add quick settings buttons in footer --- navigator/src/App.vue | 7 ++++++- navigator/src/components/IconToggle.vue | 23 ++++++++++++++++++++ navigator/src/views/Browser.vue | 28 +++++++++++++++++++++++-- 3 files changed, 55 insertions(+), 3 deletions(-) create mode 100644 navigator/src/components/IconToggle.vue diff --git a/navigator/src/App.vue b/navigator/src/App.vue index 7ae9069..26f30d4 100644 --- a/navigator/src/App.vue +++ b/navigator/src/App.vue @@ -4,7 +4,9 @@
- +
@@ -21,6 +23,9 @@ const props = defineProps({ notificationFIFO: FIFO }); const providesValid = ref(false); +const darkMode = ref(false); +provide('darkModeInjectionKey', darkMode); + const notifications = ref(); provide(notificationsInjectionKey, notifications); diff --git a/navigator/src/components/IconToggle.vue b/navigator/src/components/IconToggle.vue new file mode 100644 index 0000000..4f0a7d2 --- /dev/null +++ b/navigator/src/components/IconToggle.vue @@ -0,0 +1,23 @@ + + + diff --git a/navigator/src/views/Browser.vue b/navigator/src/views/Browser.vue index 2f680a0..4b5e633 100644 --- a/navigator/src/views/Browser.vue +++ b/navigator/src/views/Browser.vue @@ -73,16 +73,30 @@ + + + + + + + + + + + + + +