Provide a shared color blend helper in JFace
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
- #4489 của @vogella — đã đóng, không merge
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 18/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- java
- Lĩnh vực
- desktop-dev, frontend
Hướng nghiên cứu
Start with org.eclipse.jface.resource.JFaceColors and the existing private blend copies listed in the issue, such as PopupDialog.blend and Colors.blend. The open question is the ratio type, which the issue leaves undecided, so the design needs maintainer input. A pull request (#4489) is already open against this issue, so check its state and discussion before starting. Done means one public RGB blend in JFaceColors with the public Forms and Workbench versions delegating to it, and no color shift.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Blending two RGB values by a ratio is implemented over a dozen times in platform.ui, each with its own parameter type and rounding:
PopupDialog.blend(jface)SWTUtil.mix(jface.databinding)Colors.blend,SourceViewerInformationControl.blend,OverviewRuler.interpolate,DiffPainter.interpolate(jface.text)SourceViewerInformationControl.blend(ui.editors)FormColors.blend, public (ui.forms)ColorUtil.blend, public,ShowViewDialog.blend,HeapStatus.blend(ui.workbench)CTabRendering.blend(e4 renderers)
The two public versions live in Forms and Workbench, so JFace-level code cannot use them.
As more UI derives colors from the theme instead of fixed system colors, this pattern keeps spreading.
Proposal: add a public blend method for RGB to the existing org.eclipse.jface.resource.JFaceColors, which every bundle above already depends on.
FormColors.blend and ColorUtil.blend delegate to it, and the private copies migrate to it.
The ratio type needs to be decided up front: the existing callers use int percent, float and double, and a migration should not shift colors.
Copies in other repositories (Compare in eclipse.platform, JDT UI, PDE) can follow once the API is released.
- Ngôn ngữ chính
- Java
- Star
- 124
- Fork
- 269
- Merge trung bình
- 2 ngày 5 giờ
- Pull request đã merge (30 ngày)
- 65
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của eclipse-platform/eclipse.platform.ui
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
eclipse-platform/eclipse.platform.ui#4125 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
eclipse-platform/eclipse.platform.ui#4016 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
eclipse-platform/eclipse.platform.ui#3892 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
eclipse-platform/eclipse.platform.ui#2687 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Move generic breadcrumb implementation from JDT to JFaceCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 12/100
eclipse-platform/eclipse.platform.ui#4495 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của eclipse-platform/eclipse.platform.ui
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
scylladb/scylla-cdc-source-connector#350 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
agent:working documentation enhancement go:build lane:needs-decision
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Sanne/incus-spawn#1435 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:shuffle bug priority:high requires-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
apache/datafusion-comet#7062 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
wait for review
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement good first issue up-for-grabs
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
AnikethTS/ChangeRadar#22 ·
Maintainer thường phản hồi trong vòng 1 ngày