Provide a shared color blend helper in JFace
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 18/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- java
- 領域
- desktop-dev, frontend
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Java
- スター
- 124
- フォーク
- 269
- 平均マージ
- 2日 2時間
- マージ済み PR(30日)
- 70
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
eclipse-platform/eclipse.platform.ui のほかの issue
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
eclipse-platform/eclipse.platform.ui#4125 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
eclipse-platform/eclipse.platform.ui#4016 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
eclipse-platform/eclipse.platform.ui#3892 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
eclipse-platform/eclipse.platform.ui#2687 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
eclipse-platform/eclipse.platform.ui#4487 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
eclipse-platform/eclipse.platform.ui の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
GantMan/jail-monkey#380 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
objectionary/jucs#145 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
objectionary/lints#1559 ·
メンテナーはふだん 2 日以内に返信
-
RRateLimiter acquire methods accept negative permits and raise available permits above the rate.対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 4 日以内に返信