Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .changeset/nightly-title.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
### Changes
- **Stroke Nightly's title bar** - The night sky behind the title bar and the line along the top of the window are gone. Nightly now says "Stroke Nightly" in the title bar instead, where Stable says "Stroke".
2 changes: 0 additions & 2 deletions src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import { onMount } from 'svelte'
import { Toaster } from '$lib/components/ui/sonner/index.js'
import ZoomIndicator from '$lib/components/ZoomIndicator.svelte'
import NightlyEdge from '$lib/components/NightlyEdge.svelte'
import StudioShell from './lib/components/StudioShell.svelte'


Expand Down Expand Up @@ -95,7 +94,6 @@
<!-- The corner is a setting (Appearance → Notifications). Top corners clear
the titlebar, bottom ones the status bar. -->
<ZoomIndicator />
<NightlyEdge />
<Toaster
position={$toastPosition}
offset={{ top: '42px', bottom: '32px', left: '12px', right: '12px' }}
Expand Down
58 changes: 0 additions & 58 deletions src/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -1879,61 +1879,3 @@ html[data-os="linux"]:has([role="dialog"][data-state="open"], [role="alertdialog
[data-slot="dialog-content"] > .flex-1 {
flex-basis: auto;
}

/* Stroke Nightly: a violet to amber accent and a night sky behind the title
bar, only on Nightly builds (NightlyEdge.svelte, NightlySky.svelte). */
:root {
--nightly-a: oklch(0.62 0.19 295);
--nightly-b: oklch(0.76 0.15 65);
--nightly-glow: oklch(0.62 0.19 295 / 0.2);
--nightly-glow-2: oklch(0.6 0.16 255 / 0.12);
--nightly-star: oklch(0.55 0.17 295 / 0.75);
}
.dark {
--nightly-a: oklch(0.7 0.17 295);
--nightly-b: oklch(0.8 0.14 65);
--nightly-glow: oklch(0.5 0.2 295 / 0.32);
--nightly-glow-2: oklch(0.45 0.16 260 / 0.24);
--nightly-star: oklch(0.97 0.02 290 / 0.9);
}
.nightly-edge {
background: linear-gradient(90deg, transparent, var(--nightly-a) 30%, var(--nightly-b) 70%, transparent);
opacity: 0.85;
}
.nightly-sky {
background:
radial-gradient(120% 160% at 0% 0%, var(--nightly-glow), transparent 55%),
radial-gradient(80% 140% at 28% 120%, var(--nightly-glow-2), transparent 60%);
}
.nightly-star {
background: var(--nightly-star);
box-shadow: 0 0 3px var(--nightly-star);
animation: nightly-twinkle 5.5s ease-in-out infinite;
}
@keyframes nightly-twinkle {
0%, 100% { opacity: 0.25; }
50% { opacity: 1; }
}
/* One streak, mostly idle: crosses the left of the bar for ~0.8s every 18s. */
.nightly-shooting-star {
left: 6%;
top: 10%;
width: 56px;
height: 1px;
background: linear-gradient(90deg, transparent, var(--nightly-star));
opacity: 0;
transform: rotate(11deg);
animation: nightly-shoot 18s ease-out 4s infinite;
}
@keyframes nightly-shoot {
0%, 95% { opacity: 0; transform: translate(0, 0) rotate(11deg); }
96% { opacity: 1; }
100% { opacity: 0; transform: translate(160px, 32px) rotate(11deg); }
}
/* A light bar is a daytime sky: the glow stays, stars on it read as dust. */
:root:not(.dark) .nightly-star,
:root:not(.dark) .nightly-shooting-star { display: none; }
@media (prefers-reduced-motion: reduce) {
.nightly-star { animation: none; opacity: 0.7; }
.nightly-shooting-star { display: none; }
}
11 changes: 0 additions & 11 deletions src/lib/components/NightlyEdge.svelte

This file was deleted.

35 changes: 0 additions & 35 deletions src/lib/components/NightlySky.svelte

This file was deleted.

2 changes: 1 addition & 1 deletion src/lib/components/SettingsDialog.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@
// Stable and Nightly are separate apps (own name and data), so the track is
// which app runs: switching installs the other one if needed, opens it and
// quits this one.
// The one copy of the version (build-track.js), shared with the Nightly sky.
// The one copy of the version (build-track.js), shared with the title bar.
const appVersion = $derived($runningVersion)
const onNightly = $derived(isNightlyVersion(appVersion))

Expand Down
4 changes: 3 additions & 1 deletion src/lib/components/StudioShell.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<script>
import { formatApiCall } from '$lib/dynamo-json.js'
import { isNightly } from '$lib/build-track.js'
import { sqlFamily, SQL_SNIPPETS } from '$lib/sql-complete-data.js'
import { spannerIsPg } from '$lib/sql-ident.js'
import ArrowLeft from '@lucide/svelte/icons/arrow-left'
Expand Down Expand Up @@ -2931,7 +2932,8 @@ let rowSearch = $state('')
*/
const windowTitle = $derived.by(() => {
const c = connection
if (!c) return 'Stroke'
// Nightly says so where the app's name shows, so it isn't taken for Stable.
if (!c) return $isNightly ? 'Stroke Nightly' : 'Stroke'
// A provider connection is named after where it lives ("Railway ·
// luminous-flexibility / MySQL"). Its database name is usually the
// template's generic one - Railway's `railway`, Supabase's `postgres`,
Expand Down
6 changes: 1 addition & 5 deletions src/lib/components/TitleBar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import WindowControls from './WindowControls.svelte'
import TitleBarMenu from './TitleBarMenu.svelte'
import WorkspaceSwitcher from './WorkspaceSwitcher.svelte'
import NightlySky from './NightlySky.svelte'
import PanelLeft from '@lucide/svelte/icons/panel-left'
import { tabDisplayTitle } from '$lib/studio-tabs.js'
import { bindNativeMenu, syncNativeMenuState, watchFullscreen } from '$lib/native-menu.js'
Expand Down Expand Up @@ -112,7 +111,7 @@
style) floating over this bar, so it only reserves space for them here.
-->
<div
class="studio-chrome relative isolate flex shrink-0 items-center border-b border-border/50 bg-panel h-(--app-titlebar-h) {isMac ? 'pr-[calc(10px*var(--app-scale))]' : 'pl-[calc(10px*var(--app-scale))] pr-0'} select-none"
class="studio-chrome relative flex shrink-0 items-center border-b border-border/50 bg-panel h-(--app-titlebar-h) {isMac ? 'pr-[calc(10px*var(--app-scale))]' : 'pl-[calc(10px*var(--app-scale))] pr-0'} select-none"
data-studio-chrome
style:--spacing="calc(4px * var(--app-scale, 1))"
data-studio-region="titlebar"
Expand All @@ -122,9 +121,6 @@
aria-label="Window title bar"
tabindex="-1"
>
<!-- Stroke Nightly only: a night sky behind the bar, so it is told from Stable
at a glance. Painted under the bar's content (the bar is `isolate`). -->
<NightlySky />

{#if isMac}
<!-- Room for the native traffic lights (inset set in mac_chrome.rs: they end
Expand Down
Loading