This commit is contained in:
parent
93214862b1
commit
ff59089ad9
|
@ -5,7 +5,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div
|
<div
|
||||||
:class="[$style.root, { [$style.paged]: isMainColumn, [$style.naked]: naked, [$style.active]: active, [$style.draghover]: draghover, [$style.dragging]: dragging, [$style.dropready]: dropready }]"
|
:class="[$style.root, { [$style.paged]: isMainColumn, [$style.naked]: naked, [$style.active]: active, [$style.draghover]: draghover, [$style.dragging]: dragging, [$style.dropready]: dropready, [$style.withWallpaper]: withWallpaper }]"
|
||||||
@dragover.prevent.stop="onDragover"
|
@dragover.prevent.stop="onDragover"
|
||||||
@dragleave="onDragleave"
|
@dragleave="onDragleave"
|
||||||
@drop.prevent.stop="onDrop"
|
@drop.prevent.stop="onDrop"
|
||||||
|
@ -48,11 +48,14 @@ import type { MenuItem } from '@/types/menu.js';
|
||||||
import { updateColumn, swapLeftColumn, swapRightColumn, swapUpColumn, swapDownColumn, stackLeftColumn, popRightColumn, removeColumn, swapColumn } from '@/deck.js';
|
import { updateColumn, swapLeftColumn, swapRightColumn, swapUpColumn, swapDownColumn, stackLeftColumn, popRightColumn, removeColumn, swapColumn } from '@/deck.js';
|
||||||
import * as os from '@/os.js';
|
import * as os from '@/os.js';
|
||||||
import { i18n } from '@/i18n.js';
|
import { i18n } from '@/i18n.js';
|
||||||
|
import { miLocalStorage } from '@/local-storage.js';
|
||||||
|
|
||||||
provide('shouldHeaderThin', true);
|
provide('shouldHeaderThin', true);
|
||||||
provide('shouldOmitHeaderTitle', true);
|
provide('shouldOmitHeaderTitle', true);
|
||||||
provide('forceSpacerMin', true);
|
provide('forceSpacerMin', true);
|
||||||
|
|
||||||
|
const withWallpaper = miLocalStorage.getItem('wallpaper') != null;
|
||||||
|
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
column: Column;
|
column: Column;
|
||||||
isStacked?: boolean;
|
isStacked?: boolean;
|
||||||
|
@ -352,9 +355,7 @@ function onDrop(ev) {
|
||||||
}
|
}
|
||||||
|
|
||||||
&.naked {
|
&.naked {
|
||||||
background: var(--MI_THEME-acrylicBg) !important;
|
background: color(from var(--MI_THEME-bg) srgb r g b / 0.5) !important;
|
||||||
-webkit-backdrop-filter: var(--MI-blur, blur(10px));
|
|
||||||
backdrop-filter: var(--MI-blur, blur(10px));
|
|
||||||
|
|
||||||
> .header {
|
> .header {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
|
@ -372,6 +373,22 @@ function onDrop(ev) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.withWallpaper {
|
||||||
|
&.naked {
|
||||||
|
background: color(from var(--MI_THEME-bg) srgb r g b / 0.75) !important;
|
||||||
|
-webkit-backdrop-filter: var(--MI-blur, blur(10px));
|
||||||
|
backdrop-filter: var(--MI-blur, blur(10px));
|
||||||
|
|
||||||
|
> .header {
|
||||||
|
color: light-dark(#000000bf, #ffffffbf);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.tabShape {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
&.paged {
|
&.paged {
|
||||||
background: var(--MI_THEME-bg) !important;
|
background: var(--MI_THEME-bg) !important;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue