Skip to content

chore: add color-scheme property to root.less#4357

Merged
imorland merged 1 commit intoflarum:2.xfrom
zDaleZ:patch-1
Feb 15, 2026
Merged

chore: add color-scheme property to root.less#4357
imorland merged 1 commit intoflarum:2.xfrom
zDaleZ:patch-1

Conversation

@zDaleZ
Copy link
Copy Markdown
Contributor

@zDaleZ zDaleZ commented Feb 8, 2026

This property helps browser to understand which color scheme we're using, and it can make adjustments to the user interface, such as scrollbars and form controls(checkbox). We're able to change most of things, but there're actually some things controlled by browser, which can't be controlled by us. Besides, if a user is using Chrome's Auto Dark Theme, set this property can turn off color overrides in this case. Chrome's Auto Dark Theme sometimes inverts avatars' color.

Changes proposed in this pull request:
The whole UI.

Reviewers should focus on:
Scrollbar, checkbox in dark mode, etc.

Screenshot
N/A

Necessity

  • Has the problem that is being solved here been clearly explained?
  • If applicable, have various options for solving this problem been considered?
  • For core PRs, does this need to be in core, or could it be in an extension?
  • Are we willing to maintain this for years / potentially forever?

Confirmed

  • Frontend changes: tested on a local Flarum installation.
  • Backend changes: tests are green (run composer test).
  • Core developer confirmed locally this works as intended.
  • Tests have been added, or are not appropriate here.

This property helps browser to understand which color scheme we're using, and it can make adjustments to the user interface, such as scrollbars.
@zDaleZ zDaleZ requested a review from a team as a code owner February 8, 2026 04:22
@imorland imorland added this to the 2.0.0-beta.7 milestone Feb 9, 2026
@imorland imorland merged commit 2585f5d into flarum:2.x Feb 15, 2026
24 of 28 checks passed
@zDaleZ zDaleZ deleted the patch-1 branch February 16, 2026 03:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants