Color Schemes

未关闭
#6,029 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
15/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
停滞
技术栈
php
领域
design

调研方向

Read #6028 for the broader style system initiative and #6027 for the style options under discussion. The issue identifies color schemes, style variants, images, typography, and graphics customization as unresolved areas; first map how those concerns fit the existing style system. Done means agreeing on how variants and customization options should work, including which options belong to a variant and how light, dark, and dynamic selection behaves.

由索引模型根据 Issue 内容生成。

描述

Discussion

Note: This is part of a larger initiative to overhaul the style system and the customization options in general. See #6028 to learn more.

The dark mode was among the most painful things to add to the style system because it really showed that the existing implementation is not aging well. It’s also extremely limiting that a style can only have two color schemes and one is always the dark variant. To add insult to injury, explicitly opting in to either “always dark color scheme” or “always light color scheme” is impossible, because the dark color scheme contains some hidden customization options that are not accessible otherwise.

This will also eliminate the mess that is created by styles that come in a variety of color schemes but have to be implemented as separate styles with all the drawbacks that come with them.

Potential Solution: Decouple Style from Color Scheme

Ideally, a style should be able to contain an infinite number of color schemes. Each color scheme has a dedicated option that defines if this variant is considered to be “light” or “dark”. This should toggle things like the color tint of UI element.

Mix-and-match: Light vs. Dark

The administrator should be able to define the style to be always of a certain color scheme, for example, always “light” or “dark”. If the style is set to “dynamic” it should automagically switch based on the user preferences but in that case only “light” variants may be eligible for the “light” style, and vice versa for the “dark” variant. This is due to the styling of built-in UI elements.

Unclear

  • It is not enough to simply allow multiple sets of color schemes to be set up. Some aspects like images are sensitive to the color scheme and might not work with a different background color. Figure out which customization options must be bound to the style variant instead.
  • Typography should remain bound to the style itself, but what about the style options outlined in #6027? It is tempting to allow options to be (optionally) customizable per variant, but this opens up a big can of worms, like, should some options be shared and others not? We need to explore this a bit to figure out the right approach.
  • How do we want to support customization options like swapping out graphics provided by the style?
主要语言
PHP
星标
248
派生
147
平均合并
17 分钟
30 天内合并 PR
21

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

WoltLab/WCF 的其他 Issue

查看 WoltLab/WCF 的全部 Issue

相似的 Issue

更多 PHP Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。