Skip to content

Open source personal finance application

fix: update color computation and manifest display settings

Ilya Komichev390af8bcd412
diff --git a/app/app.vue b/app/app.vue
index 78bf3eb0..ea3a46ac 100644
--- a/app/app.vue
+++ b/app/app.vue
@@ -1,8 +1,6 @@
<script setup lang="ts">
import type { ToasterProps } from '@nuxt/ui'
-import colors from 'tailwindcss/colors'
-
import { useGuard } from '~/components/user/useGuard'
const appConfig = useAppConfig()
@@ -23,7 +21,7 @@ useEventListener(document, 'click', (e) => {
})
const isDark = usePreferredDark()
-const color = computed(() => (colorMode.value === 'dark' || (colorMode.value === 'system' && isDark.value)) ? (colors as Record<string, Record<string, string>>)[appConfig.ui.colors.neutral][900] : 'white')
+const color = computed(() => (colorMode.value === 'dark' || (colorMode.value === 'system' && isDark.value)) ? '#171717' : 'white')
const blackAsPrimary = computed(() => appConfig.theme.blackAsPrimary ? `:root { --ui-primary: black; } .dark { --ui-primary: #ededed; }` : ':root {}')
const radius = computed(() => `:root { --ui-radius: ${appConfig.theme.radius ?? 0.375}rem; }`)
diff --git a/nuxt.config.ts b/nuxt.config.ts
index d9367d06..725edbb7 100644
--- a/nuxt.config.ts
+++ b/nuxt.config.ts
@@ -115,8 +115,7 @@ export default defineNuxtConfig({
},
manifest: {
background_color: '#171717',
- display: 'fullscreen',
- display_override: ['standalone', 'minimal-ui'],
+ display: 'standalone',
icons: [{
sizes: '192x192',
src: 'pwa-192x192.png',