Skip to content

Commit

Permalink
title icons
Browse files Browse the repository at this point in the history
  • Loading branch information
halamix2 committed Aug 5, 2024
1 parent 381b492 commit dd86f25
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 27 deletions.
4 changes: 2 additions & 2 deletions src/components/InputItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ watch(inputMoney, () => {
label="Tytuł"
size="42"
required
prepend-inner-icon="uppercase"
prepend-inner-icon="mdso:uppercase"
/>
<v-text-field
clearable
Expand All @@ -162,7 +162,7 @@ watch(inputMoney, () => {
id="subtitle"
size="42"
label="Podtytuł (opcjonalne)"
prepend-inner-icon="lowercase"
prepend-inner-icon="mdso:lowercase"
/>
<v-text-field
clearable
Expand Down
63 changes: 38 additions & 25 deletions src/vuetifyInstance.ts
Original file line number Diff line number Diff line change
@@ -1,34 +1,47 @@
import { h } from 'vue'
import { createVuetify } from 'vuetify'
import type { IconSet, IconProps } from 'vuetify'
import { VLigatureIcon } from 'vuetify/components'
import { aliases, md } from 'vuetify/iconsets/md'
import { mdi } from 'vuetify/iconsets/mdi'
import { en, pl } from 'vuetify/locale'
import colors from 'vuetify/util/colors'

export const defaultVuetify = function () {
return createVuetify({
theme: {
defaultTheme: 'dark',
themes: {
dark: {
colors: {
primary: colors.deepPurple.base,
secondary: colors.deepPurple.lighten4
const mdso: IconSet = {
component: (props: IconProps) =>
h(VLigatureIcon, {
...props,
class: 'material-symbols-outlined'
})
},
defaultVuetify = function () {
return createVuetify({
theme: {
defaultTheme: 'dark',
themes: {
dark: {
colors: {
primary: colors.deepPurple.base,
secondary: colors.deepPurple.lighten4
}
}
}
},
locale: {
locale: 'pl',
fallback: 'en',
messages: { pl, en }
},
icons: {
defaultSet: 'md',
aliases,
sets: {
md,
mdi,
mdso
}
}
},
locale: {
locale: 'pl',
fallback: 'en',
messages: { pl, en }
},
icons: {
defaultSet: 'md',
aliases,
sets: {
md,
mdi
}
}
})
}
})
}

export { defaultVuetify }

0 comments on commit dd86f25

Please sign in to comment.