Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Provide a shared color blend helper in JFace

オープン
#4,486 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@vogella がすでに取り組んでいます。

2026年10月13日 から。

  • #4489 @vogella による — オープン

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
18/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
java

調査の方向性

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

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

eclipse-platform/eclipse.platform.ui のほかの issue

eclipse-platform/eclipse.platform.ui の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。