Skip to content

Dark theme support for New Connection Wizard dialog - #17290

Merged
gtritchie merged 1 commit into
mainfrom
feature/dark-theme-new-connection-wizard
Mar 26, 2026
Merged

gtritchie merged 1 commit into
mainfrom
feature/dark-theme-new-connection-wizard

Conversation

@gtritchie

@gtritchie gtritchie commented Mar 25, 2026 •

Copy link
Copy Markdown
Member

Intent

Additional work on #10296

Adds dark theme support for the New Connection Wizard dialog and all its sub-pages.

Summary

GWT changes:

  • Call setThemeAware(true) in NewConnectionWizard constructor
  • Add dark CSS overrides for the wizard body panel border, warning panels, code viewer, ODBC console/pre-install areas
  • Remove newConnectionWizardBackground sprite image in dark mode — all connection pages override getWizardPageBackgroundStyle() with this custom sprite, which was not covered by the base Wizard.css dark override
  • Remove duplicate .codeViewer CSS block in NewConnectionShinyHost.css

Shiny iframe dark mode (Spark Connection, etc.):

  • Inject dark-mode CSS into the Shiny mini-UI iframe for labels, form controls, and select option elements
  • In Server, use native JSNI to inject styles into the same-origin iframe document
  • In Desktop, add an Electron bridge method (injectShinyDialogCss) that uses WebFrameMain.executeJavaScript() to inject CSS into cross-origin iframes, matching the Shiny dialog frame by its full URL

Example Screenshots

01-livy-connection-light 02-livy-connection-dark 03-new-connection-light 04-new-connection-dark 05-spark-connection-light 06-spark-connection-dark

Test plan

  • Open New Connection wizard with a dark editor theme enabled
  • Verify connection selector page: items have dark backgrounds, arrows visible
  • Navigate to a Snippet connection (e.g., Livy): text inputs dark, code viewer dark
  • Navigate to a Shiny connection (e.g., Spark): labels readable, form controls dark (Desktop)
  • Navigate to ODBC install/pre-install pages if available: console and warning areas dark
  • Verify all above also look correct with a light editor theme (no regressions)

@gtritchie gtritchie added this to the Globemaster Allium milestone Mar 25, 2026
@posit-snyk-bot

posit-snyk-bot commented Mar 25, 2026 •

Copy link
Copy Markdown
Contributor

✅ Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
✅ Open Source Security 0 0 0 0 0 issues
✅ Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@gtritchie
gtritchie force-pushed the feature/dark-theme-new-connection-wizard branch 2 times, most recently from 0002d11 to 4054b3d Compare March 25, 2026 21:38
Enable dark theme styling for the New Connection Wizard and all its
sub-pages (snippet, Shiny, ODBC install/pre-install).

GWT changes:
- Call setThemeAware(true) in NewConnectionWizard constructor
- Add dark CSS overrides for wizardBodyPanel border, warning panels,
  code viewer, and ODBC console areas
- Remove newConnectionWizardBackground sprite in dark mode (all
  connection pages override getWizardPageBackgroundStyle with this
  custom sprite, which was not covered by the base Wizard.css dark
  override)
- Remove duplicate .codeViewer CSS block in NewConnectionShinyHost.css

Shiny iframe dark mode (Spark Connection, etc.):
- Inject dark-mode CSS into the Shiny mini-UI iframe for labels,
  form controls, and select option elements
- In Server, use native JSNI to inject styles into the same-origin
  iframe document
- In Desktop, add an Electron bridge method (injectShinyDialogCss)
  that uses WebFrameMain.executeJavaScript() to inject CSS into
  cross-origin iframes, matching the Shiny dialog frame by its full
  URL (origin + pathname)
@gtritchie
gtritchie force-pushed the feature/dark-theme-new-connection-wizard branch from 4054b3d to 33e8b73 Compare March 25, 2026 21:40
@gtritchie
gtritchie requested a review from kevinushey March 25, 2026 21:40
@gtritchie
gtritchie merged commit 5bd535a into main Mar 26, 2026
8 checks passed
@gtritchie
gtritchie deleted the feature/dark-theme-new-connection-wizard branch March 26, 2026 15:46
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.

2 participants