diff --git a/src/css/injected.scss b/src/css/injected.scss index 0421500b..a1987176 100644 --- a/src/css/injected.scss +++ b/src/css/injected.scss @@ -3893,17 +3893,16 @@ div.day-empty { } .userInfoHouseWrap .bsplus-founder-badge-slot { display: block; - width: max-content; + width: 100%; max-width: 100%; margin-top: 4px; - margin-left: auto; - margin-right: auto; + box-sizing: border-box; } .bsplus-founder-badge-carousel { display: grid; + width: 100%; max-width: 100%; - margin-left: auto; - margin-right: auto; + box-sizing: border-box; } .bsplus-founder-badge-carousel > .bsplus-founder-badge { grid-area: 1 / 1; diff --git a/src/interface/components/SidebarAppearance.svelte b/src/interface/components/SidebarAppearance.svelte index fff8424e..bfcc2f7c 100644 --- a/src/interface/components/SidebarAppearance.svelte +++ b/src/interface/components/SidebarAppearance.svelte @@ -1,12 +1,14 @@ - - - - + ], + }, + }, + { + title: "Transparency Effects", + description: "Glass effects on supported surfaces (may impact battery life)", + id: 7, + Component: Switch, + props: { + state: transparencyOn, + onChange: (value: boolean) => (settingsState.transparencyEffects = value), + }, + }, + ]; + + if (!transparencyOn) return base; + + return [ + ...base, + { + title: "Blur Strength", + description: `Glass blur on the sidebar (${blur}px)`, + id: 8, + Component: Slider, + props: { + state: blur, + min: 0, + max: 80, + step: 1, + onChange: (value: number) => (settingsState.sidebarBlur = value), + }, + }, + ]; + }); + + const visible = $derived( + rows.some((row) => matchesSearch(searchQuery, row.title, row.description)), + ); + + +{#if visible} + + {#each rows as row (row.id)} + {#if matchesSearch(searchQuery, row.title, row.description)} + + {/if} + {/each} + +{/if} diff --git a/src/interface/pages/settings/sections/appearance.svelte b/src/interface/pages/settings/sections/appearance.svelte index e33cd8f5..92f8cafd 100644 --- a/src/interface/pages/settings/sections/appearance.svelte +++ b/src/interface/pages/settings/sections/appearance.svelte @@ -44,9 +44,7 @@ {/if} {#if !isEngage && matchesSearch(searchQuery, "Sidebar Style", "Item Size", "Corner Radius", "Active Indicator", "Sidebar Position", "Sidebar Width", "Transparency Effects", "Blur Strength")} -
- -
+ {/if} {#if matchesSearch(searchQuery, "Adaptive Theme Colour", "Soft Gradient", "Smooth colour transition")} diff --git a/src/interface/pages/themeCreator.svelte b/src/interface/pages/themeCreator.svelte index 27dbd0bc..6a17a2ac 100644 --- a/src/interface/pages/themeCreator.svelte +++ b/src/interface/pages/themeCreator.svelte @@ -632,7 +632,7 @@ -
+
@@ -721,13 +721,4 @@ {/if}
- - - \ No newline at end of file + \ No newline at end of file diff --git a/src/seqta/ui/founderBadge/mountTitlebarFounderBadge.ts b/src/seqta/ui/founderBadge/mountTitlebarFounderBadge.ts index 33780019..0e77f483 100644 --- a/src/seqta/ui/founderBadge/mountTitlebarFounderBadge.ts +++ b/src/seqta/ui/founderBadge/mountTitlebarFounderBadge.ts @@ -43,25 +43,6 @@ function setActiveBadgeChip(chips: HTMLButtonElement[], index: number): void { }); } -/** Carousel chips share the widest label width so the pill does not shrink while cycling. */ -function syncCarouselTrackWidth( - carousel: HTMLElement, - chips: HTMLButtonElement[], -): void { - carousel.style.removeProperty("width"); - for (const chip of chips) chip.style.width = "max-content"; - - let maxWidth = 0; - for (const chip of chips) { - maxWidth = Math.max(maxWidth, chip.getBoundingClientRect().width); - } - if (maxWidth <= 0) return; - - const px = `${Math.ceil(maxWidth)}px`; - carousel.style.width = px; - for (const chip of chips) chip.style.width = "100%"; -} - function startBadgeCarousel( slot: HTMLElement, chips: HTMLButtonElement[], @@ -137,9 +118,6 @@ function renderTitlebarBadges( wireBadgeChip(chip, entry.badge, signupNumber); }); - const carousel = slot.querySelector(".bsplus-founder-badge-carousel"); - if (carousel) syncCarouselTrackWidth(carousel, chips); - startBadgeCarousel( slot, chips,