Skip to content

Fix Demos: Use public API to detect the current theme - #35454

Merged
16adianay merged 6 commits into
DevExpress:mainfrom
16adianay:fix/demos-use-public-theme-api
Oct 2, 2026
Merged

16adianay merged 6 commits into
DevExpress:mainfrom
16adianay:fix/demos-use-public-theme-api

Conversation

@16adianay

Copy link
Copy Markdown
Contributor

No description provided.

@16adianay 16adianay self-assigned this Oct 2, 2026
Copilot AI balanced review requested due to automatic review settings October 2, 2026 09:15
@16adianay
16adianay requested a review from a team as a code owner October 2, 2026 09:15
@16adianay 16adianay added the 26_1 label Oct 2, 2026
@16adianay
16adianay requested a review from a team as a code owner October 2, 2026 09:15

Copilot AI 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.

Copilot review overview

🟢 Approval recommended

The changes consistently use the public theme API, with no identified blocking issues.

Review effort: Balanced
Findings: None

What changed in this PR

Updates Scheduler and DataGrid demos to detect the current theme through DevExtreme’s public API.

Changes:

  • Replaces Scheduler’s DOM-based theme detection with themes.current().
  • Replaces DataGrid’s internal isGeneric helper with a theme-name prefix check.
File Description
apps/​demos/​Demos/​Scheduler/​Templates/​Vue/​App.vue Uses public theme detection for editor styling.
apps/​demos/​Demos/​Scheduler/​Templates/​ReactJs/​App.js Uses public theme detection for editor styling.
apps/​demos/​Demos/​Scheduler/​Templates/​React/​App.tsx Uses public theme detection for editor styling.
apps/​demos/​Demos/​Scheduler/​Templates/​jQuery/​index.js Uses the public global theme API.
apps/​demos/​Demos/​Scheduler/​Templates/​Angular/​app/​app.component.ts Uses public theme detection for editor styling.
apps/​demos/​Demos/​DataGrid/​MultipleRecordSelectionModes/​Vue/​App.vue Replaces the internal helper for checkbox defaults.
apps/​demos/​Demos/​DataGrid/​MultipleRecordSelectionModes/​ReactJs/​App.js Replaces the internal helper for checkbox defaults.
apps/​demos/​Demos/​DataGrid/​MultipleRecordSelectionModes/​React/​App.tsx Replaces the internal helper for checkbox defaults.
apps/​demos/​Demos/​DataGrid/​MultipleRecordSelectionModes/​Angular/​app/​app.component.ts Replaces the internal helper for checkbox defaults.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Copilot AI balanced review requested due to automatic review settings October 2, 2026 09:59

Copilot AI 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.

Copilot review overview

🟢 Approval recommended

The focused changes consistently use the public theme API, with no blocking issues identified.

Review effort: Balanced
Findings: None

Copilot AI balanced review requested due to automatic review settings October 2, 2026 10:26

Copilot AI 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.

Copilot review overview

🟢 Approval recommended

The changes consistently use the public theme API, preserve behavior for supported theme families, and have no identified blocking issues.

Review effort: Balanced
Findings: None

sjbur
sjbur previously approved these changes Oct 2, 2026
Comment thread apps/demos/Demos/DataGrid/MultipleRecordSelectionModes/React/App.tsx Outdated
bit-byte0
bit-byte0 previously approved these changes Oct 2, 2026
@16adianay 16adianay added 26_2 and removed 26_1 labels Oct 2, 2026
Copilot AI balanced review requested due to automatic review settings October 2, 2026 13:27
@16adianay
16adianay dismissed stale reviews from aleksei-semikozov and sjbur via 7ac960f October 2, 2026 13:27

Copilot AI 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.

Copilot review overview

🟢 Approval recommended

The focused changes consistently use the public API and preserve behavior for supported theme families.

Review effort: Balanced
Findings: None

Copilot AI balanced review requested due to automatic review settings October 2, 2026 13:48
bit-byte0
bit-byte0 previously approved these changes Oct 2, 2026

Copilot AI 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.

Copilot review overview

🟢 Approval recommended

The focused changes consistently use the public theme API, with no unresolved blocking issues.

Review effort: Balanced
Findings: None

Copilot AI balanced review requested due to automatic review settings October 2, 2026 14:10

Copilot AI 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.

Copilot review overview

🟢 Approval recommended

The focused changes consistently use the public theme API, with no unresolved findings.

Review effort: Balanced
Findings: None

@16adianay
16adianay enabled auto-merge October 2, 2026 14:54
@16adianay
16adianay added this pull request to the merge queue Oct 2, 2026
Merged via the queue into DevExpress:main with commit c063dba Oct 2, 2026
149 checks passed
@16adianay
16adianay deleted the fix/demos-use-public-theme-api branch October 2, 2026 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants