Skip to content

refactor(ui): migrate hardcoded colors in onboarding and badges to QueryaTheme tokens (#1509) - #1666

Merged
ZhuchkaTriplesix merged 1 commit into
devfrom
issue/1509-onboarding-badges-theme-tokens
Oct 17, 2026
Merged

ZhuchkaTriplesix merged 1 commit into
devfrom
issue/1509-onboarding-badges-theme-tokens

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Closes #1509

Summary of changes

  • Onboarding / Welcome Tour:
    • Replaced hardcoded slide icon hex colors (0xFF06B6D4, 0xFF8B5CF6, 0xFF3B82F6, 0xFF10B981, 0xFFF59E0B) with theme workbench and chart palette tokens (wb.accent, cs.chart4, cs.chart1, cs.chart2, cs.chart3).
    • Replaced hardcoded keycap badge colors (0xFF1E2024, 0xFFF1F5F9, and black shadow) in _ShortcutKeyBadge with wb.surface and wb.shadow.
    • Replaced hardcoded pink 0xFFEC4899 in the cheat sheet slide icon with context.colors.chart5.
  • Connection Environment Badges:
    • Replaced raw fallback colors in environmentAccentColorOf with context.workbenchOrDefault delegation.
  • Buttons & Dialogs:
    • Removed hardcoded black/white literals in QueryaButton and used scheme.destructiveForeground and material.Colors.transparent.
    • Replaced hardcoded black backdrop tint in _DialogBackdrop with context.workbenchOrDefault.shadow.
  • Added unit tests in test/features/onboarding/welcome_tour_dialog_test.dart verifying slide icons and shortcut keycaps adapt to theme tokens.

@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit 10a2357 into dev Oct 17, 2026
10 of 11 checks passed
@github-actions github-actions Bot added theme Theming, colors, VS Code themes frontend Theme parser epic label: frontend ui User interface components and widgets P3 Low priority / Polish & Enhancements labels Oct 17, 2026
@github-actions github-actions Bot added this to the 0.5.0 milestone Oct 17, 2026
@ZhuchkaTriplesix
ZhuchkaTriplesix deleted the issue/1509-onboarding-badges-theme-tokens branch October 17, 2026 03:58
ZhuchkaTriplesix added a commit that referenced this pull request Oct 17, 2026
…dcn theme (#1671)

#1666 (#1509) made the dialog backdrop use workbenchOrDefault.shadow.
Without a QueryaThemeScope that getter fell back to colors.brightness,
which is shadcn Theme.of and asserts when there is no shadcn theme, so
every app_dialog test (a bare MaterialApp) failed and dev went red.

The fallbacks of workbenchOrDefault, editorTheme and semanticPalette
take the shadcn theme's brightness when there is one, else Material's.
The app always has both scopes, so nothing changes there.

The settled-tint test now expects the theme's shadow colour, which the
backdrop has used since #1666, instead of plain black.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend Theme parser epic label: frontend P3 Low priority / Polish & Enhancements theme Theming, colors, VS Code themes ui User interface components and widgets

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant