Color Schemes

Đang mở
#6,029 0 bình luận 1 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
15/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
php
Lĩnh vực
design

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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?
Ngôn ngữ chính
PHP
Star
248
Fork
147
Merge trung bình
17 phút
Pull request đã merge (30 ngày)
21

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của WoltLab/WCF

Tất cả issue của WoltLab/WCF

Issue tương tự

Thêm issue về PHP

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.