cosmos-explorer/packages/dashboard/themeConfig.ts

52 lines
1.9 KiB
TypeScript
Raw Normal View History

2023-02-06 14:21:46 +00:00
import { breakpointsVuetify } from '@vueuse/core'
2023-02-12 12:09:10 +00:00
import { VAvatar } from 'vuetify/components'
2023-02-06 14:21:46 +00:00
// ❗ Logo SVG must be imported with ?raw suffix
2023-02-11 01:04:36 +00:00
// import logo from '@/assets/logo.svg?raw'
2023-02-06 14:21:46 +00:00
import { defineThemeConfig } from '@/plugins/vuetify/@core'
import { RouteTransitions, Skins } from '@/plugins/vuetify/@core/enums'
import { AppContentLayoutNav, ContentWidth, FooterType, NavbarType } from '@layouts/enums'
export const { themeConfig, layoutConfig } = defineThemeConfig({
app: {
2023-02-11 01:04:36 +00:00
title: 'Ping.pub',
2023-02-06 14:21:46 +00:00
// ❗ if you have SVG logo and want it to adapt according to theme color, you have to apply color as `color: rgb(var(--v-global-theme-primary))`
2023-02-11 01:04:36 +00:00
// logo: h('div', { innerHTML: logo, style: 'line-height:0; color: rgb(var(--v-global-theme-primary))' }),
logo: h('img', {src: '/logo.svg', width: 50, height: 50}),
2023-02-06 14:21:46 +00:00
contentWidth: ContentWidth.Boxed,
contentLayoutNav: AppContentLayoutNav.Vertical,
overlayNavFromBreakpoint: breakpointsVuetify.md + 16, // 16 for scrollbar. Docs: https://next.vuetifyjs.com/en/features/display-and-platform/
2023-02-13 10:59:58 +00:00
enableI18n: true,
2023-02-06 14:21:46 +00:00
theme: 'system',
isRtl: false,
skin: Skins.Default,
routeTransition: RouteTransitions.Fade,
2023-02-12 12:09:10 +00:00
iconRenderer: VAvatar,
2023-02-06 14:21:46 +00:00
},
navbar: {
type: NavbarType.Sticky,
navbarBlur: true,
},
footer: { type: FooterType.Static },
verticalNav: {
isVerticalNavCollapsed: false,
defaultNavItemIconProps: { icon: 'mdi-circle' },
isVerticalNavSemiDark: false,
},
horizontalNav: {
type: 'sticky',
transition: 'slide-y-reverse-transition',
},
icons: {
chevronDown: { icon: 'mdi-chevron-down' },
chevronRight: { icon: 'mdi-chevron-right' },
close: { icon: 'mdi-close' },
verticalNavPinned: { icon: 'custom-vertical-nav-header-arrow', size: 22 },
verticalNavUnPinned: { icon: 'custom-vertical-nav-header-arrow', size: 22 },
sectionTitlePlaceholder: { icon: 'mdi-minus' },
},
})