feat(themes): flag unpublished edits and share parallax motion
Compare theme content hashes with a stored Workshop baseline so creators can see when their local copy is not synced. Extract pointer tracking into a shared action for the launcher and editor preview, and use the slider component for parallax depth.
This commit is contained in:
1 parent
d56ed9d786
commit
323a6f18af
12 files changed
+667
-134
No files matched your search
@@ -43,6 +43,7 @@
|
||||
themeMediaSuspended,
|
||||
themeMediaSuspension,
|
||||
} from '$lib/themeMedia';
|
||||
import { themeParallax } from '$lib/themeParallax';
|
||||
import { isThemeTrusted } from '$lib/themeTrust';
|
||||
import { themeV2Css } from '$lib/themeV2';
|
||||
import { getThemes, loadTheme } from '$lib/themes';
|
||||
@@ -550,7 +551,13 @@
|
||||
</AlertDialog.Content>
|
||||
</AlertDialog.Root>
|
||||
|
||||
<main use:themeMediaSuspension>
|
||||
<main
|
||||
use:themeMediaSuspension
|
||||
use:themeParallax={{
|
||||
enabled: $active_custom_theme?.definition?.parallax?.enabled === true,
|
||||
intensity: $active_custom_theme?.definition?.parallax?.intensity ?? 0.25,
|
||||
}}
|
||||
>
|
||||
<div class:hidden={!!$active_custom_theme?.definition}>
|
||||
<div class="opacity-30">
|
||||
<div transition:fade={{ duration: $reduceAnimations ? 0 : 500 }}>
|
||||
|
||||
Reference in new issue
Block a user