Cleanup material specific configuration

pull/7277/head
Cagatay Civici 2025-02-18 21:21:27 +03:00
parent 87645d9f22
commit d5b5616fbf
5 changed files with 1 additions and 22 deletions

View File

@ -5,10 +5,6 @@ html {
line-height: normal;
}
.material {
font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}
body {
margin: 0px;
min-height: 100%;

View File

@ -306,13 +306,6 @@ export default {
const preset = presets[value];
const surfacePalette = this.surfaces.find((s) => s.name === this.selectedSurfaceColor)?.palette;
if (value === 'Material') {
document.body.classList.add('material');
this.$primevue.config.ripple = true;
} else {
document.body.classList.remove('material');
}
$t().preset(preset).preset(this.getPresetExt()).surfacePalette(surfacePalette).use({ useDefaultOptions: true });
},
onRTLChange(value) {

View File

@ -103,13 +103,6 @@ export default {
} else {
const newPreset = presets[this.basePreset];
if (this.basePreset === 'Material') {
document.body.classList.add('material');
this.$primevue.config.ripple = true;
} else {
document.body.classList.remove('material');
}
if (this.$appState.designer.verified) {
const { data, error } = await $fetch(this.designerApiUrl + '/theme/create', {
method: 'POST',

View File

@ -195,8 +195,6 @@ export default {
this.currentTheme = null;
usePreset(Aura);
document.body.classList.remove('material');
this.$primevue.config.ripple = false;
}
},
openNewTheme() {

View File

@ -73,8 +73,7 @@ export default defineNuxtConfig({
],
link: [
{ rel: 'icon', href: baseUrl + 'favicon.ico' },
{ rel: 'stylesheet', href: 'https://rsms.me/inter/inter.css' },
{ rel: 'stylesheet', href: 'https://fonts.googleapis.com/css?family=Roboto:400|Roboto:500|Roboto:600|Roboto:700', fetchpriority: 'low' }
{ rel: 'stylesheet', href: 'https://rsms.me/inter/inter.css' }
],
script: [
{