Skip to content

refactor(postgresql, mysql, sqlite): colours through context.colors; stats views off shadcn (#1731) - #1742

Merged
ZhuchkaTriplesix merged 1 commit into
devfrom
refactor/colors-sql
Oct 18, 2026
Merged

ZhuchkaTriplesix merged 1 commit into
devfrom
refactor/colors-sql

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Part of #1731 (folders features/postgresql, features/mysql, features/sqlite, ~43 reads). Epic #1465.

Mechanical, no visual change:

• Theme.of(context).colorScheme, Theme.of(ctx).colorScheme and shadcn.Theme.of(context).colorScheme → context.colors / ctx.colors;
• theme.colorScheme in routine views and workspace home → colors / cs;
• parameter ColorScheme theme in _buildListArea (postgres_table_privileges_dialog.dart) → QueryaUiColors theme;
• mysql_stats_view.dart and postgres_stats_view.dart drop their shadcn_flutter imports (the scheme was all they took from it). They leave the shadcn ratchet: 35 → 33 files.

The guard colors_through_context_test.dart now covers connections, mongodb, mysql, postgresql, redis, settings, sqlite and workspace.

dart analyze is clean; guards and SQL feature suites pass locally (86 tests).

@ZhuchkaTriplesix ZhuchkaTriplesix added this to the Theme system milestone Oct 18, 2026
@ZhuchkaTriplesix ZhuchkaTriplesix added theme Theming, colors, VS Code themes frontend Theme parser epic label: frontend ui User interface components and widgets P2 Medium priority / Parity & Refactoring labels Oct 18, 2026
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit 53d613b into dev Oct 18, 2026
14 checks passed
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 P2 Medium priority / Parity & Refactoring 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