Skip to content

Fix startup loading background - #46

Merged
johannesschiessl merged 1 commit into
mainfrom
t3code/fix-startup-loading-background
Aug 5, 2026
Merged

Fix startup loading background#46
johannesschiessl merged 1 commit into
mainfrom
t3code/fix-startup-loading-background

Conversation

@johannesschiessl

Copy link
Copy Markdown
Member

Summary

  • Match pre-rendered web and Electron window backgrounds to the dark theme.
  • Use shared theme tokens for the app shell, body, and title bar.

Testing

  • Not run: styling-only startup smoke test.

- Match the pre-render and desktop window backgrounds to the dark theme
- Use shared background and foreground theme tokens in the app shell

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 5 files

Architecture diagram
sequenceDiagram
    participant User
    participant Browser as Web Browser
    participant Electron as Electron Shell
    participant React as React App
    participant Theme as Theme System

    Note over User,Theme: Startup Background Flow

    User->>Browser: Open app URL
    Browser->>Browser: Parse index.html
    Note over Browser: style="background-color: #0a0a0a"<br/>on <html> and <body>
    Browser->>Browser: Render dark background immediately
    Browser->>React: Load JavaScript bundle

    par Electron Startup Path
        User->>Electron: Launch desktop app
        Electron->>Electron: Create BrowserWindow
        Note over Electron: backgroundColor: "#0a0a0a"
        Electron->>Electron: Show window with dark background
        Electron->>React: Load renderer process
    end

    React->>Theme: Initialize theme system
    Theme->>Theme: Apply CSS variables (bg-background, text-foreground)

    alt Web Path
        React->>React: Mount root component
        React->>Theme: Use bg-background on app container
        React->>Theme: Use bg-background on TitleBar
        Note over React: TitleBar uses bg-background<br/>instead of hardcoded color
    else Electron Path
        React->>React: Mount root component
        React->>Theme: Use bg-background on app container
        React->>Theme: Use bg-background on TitleBar
        Note over React: TitleBar uses bg-background
    end

    Note over Browser,Electron: Background color matches shared theme token #0a0a0a
Loading

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread apps/web/index.html
@johannesschiessl
johannesschiessl merged commit f471323 into main Aug 5, 2026
2 checks passed
@johannesschiessl
johannesschiessl deleted the t3code/fix-startup-loading-background branch August 5, 2026 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant