mirror of
				https://github.com/crater-invoice/crater.git
				synced 2025-10-27 19:51:09 -04:00 
			
		
		
		
	add dark mode toggle in installation step
This commit is contained in:
		| @ -1,5 +1,6 @@ | |||||||
| <template> | <template> | ||||||
|   <div class="flex flex-col items-center justify-between w-full pt-10"> |   <div class="flex flex-col items-center justify-between w-full pt-10"> | ||||||
|  |       <LightDarkButton class="absolute z-10 top-2 right-2"/> | ||||||
|     <img |     <img | ||||||
|       id="logo-crater" |       id="logo-crater" | ||||||
|       src="/img/crater-logo.png" |       src="/img/crater-logo.png" | ||||||
| @ -29,6 +30,7 @@ import Step7CompanyInfo from './Step7CompanyInfo.vue' | |||||||
| import Step8CompanyPreferences from './Step8CompanyPreferences.vue' | import Step8CompanyPreferences from './Step8CompanyPreferences.vue' | ||||||
| import { useInstallationStore } from '@/scripts/admin/stores/installation' | import { useInstallationStore } from '@/scripts/admin/stores/installation' | ||||||
| import { useRouter } from 'vue-router' | import { useRouter } from 'vue-router' | ||||||
|  | import LightDarkButton from '@/scripts/components/LightDarkButton.vue' | ||||||
|  |  | ||||||
| export default { | export default { | ||||||
|   components: { |   components: { | ||||||
| @ -40,6 +42,7 @@ export default { | |||||||
|     step_6: Step6AccountSettings, |     step_6: Step6AccountSettings, | ||||||
|     step_7: Step7CompanyInfo, |     step_7: Step7CompanyInfo, | ||||||
|     step_8: Step8CompanyPreferences, |     step_8: Step8CompanyPreferences, | ||||||
|  |     LightDarkButton | ||||||
|   }, |   }, | ||||||
|  |  | ||||||
|   setup() { |   setup() { | ||||||
|  | |||||||
| @ -14,7 +14,7 @@ | |||||||
|     " |     " | ||||||
|     @click="onChange" |     @click="onChange" | ||||||
|   > |   > | ||||||
|     <BaseIcon v-if="!globalStore.isDarkModeOn" class="h-5 w-5 text-black" name="SunIcon" /> |   <BaseIcon v-if="!globalStore.isDarkModeOn" class="h-5 w-5 text-yellow-500" name="SunIcon" /> | ||||||
|     <BaseIcon v-else class="h-5 w-5 text-white" name="MoonIcon" /> |     <BaseIcon v-else class="h-5 w-5 text-white" name="MoonIcon" /> | ||||||
|   </button> |   </button> | ||||||
| </template> | </template> | ||||||
| @ -45,7 +45,7 @@ | |||||||
|         </div> |         </div> | ||||||
|         <div class="hidden sm:ml-6 sm:flex sm:items-center"> |         <div class="hidden sm:ml-6 sm:flex sm:items-center"> | ||||||
|           <!-- Dark mode Toggle --> |           <!-- Dark mode Toggle --> | ||||||
|           <CustomerLightDarkButton/> |           <LightDarkButton/> | ||||||
|  |  | ||||||
|           <!-- Profile dropdown --> |           <!-- Profile dropdown --> | ||||||
|  |  | ||||||
| @ -151,7 +151,7 @@ | |||||||
|             </div> |             </div> | ||||||
|         </div> |         </div> | ||||||
|           <!-- Dark mode Toggle --> |           <!-- Dark mode Toggle --> | ||||||
|           <CustomerLightDarkButton/> |           <LightDarkButton/> | ||||||
|         </div> |         </div> | ||||||
|         <div class="mt-3 space-y-1"> |         <div class="mt-3 space-y-1"> | ||||||
|           <router-link |           <router-link | ||||||
| @ -178,7 +178,7 @@ import { useRoute, useRouter } from 'vue-router' | |||||||
| import { ref, watch, computed } from 'vue' | import { ref, watch, computed } from 'vue' | ||||||
| import { useGlobalStore } from '@/scripts/customer/stores/global' | import { useGlobalStore } from '@/scripts/customer/stores/global' | ||||||
| import MainLogo from '@/scripts/components/icons/MainLogo.vue' | import MainLogo from '@/scripts/components/icons/MainLogo.vue' | ||||||
| import CustomerLightDarkButton from '@/scripts/components/CustomerLightDarkButton.vue' | import LightDarkButton from '@/scripts/components/LightDarkButton.vue' | ||||||
| import { | import { | ||||||
|   Disclosure, |   Disclosure, | ||||||
|   DisclosureButton, |   DisclosureButton, | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user