Add color themes shared by the components of wicket-extensions
メンテナーはふだん 1 日以内に返信
@reiern70 がすでに取り組んでいます。
2026年10月2日 から。
評価
この issue はまだ評価されていません。
説明
The components of wicket-extensions each bring their own style sheet with their own hard-coded colors. An application that wants its tables, progress bars and panels to match its look has to override every style sheet separately, and has no way to give one part of a page a different look from another.
This proposes shared color themes, in a new package org.apache.wicket.extensions.theme:
- Properties: the colors are defined once, as CSS custom properties named --wicket-theme-* (primary, primary-dark, on-primary, accent, text, surface, surface-alt, hover, selected, highlight, toolbar, border, progress, progress-dark, track, color-scheme). The style sheets of the components read them.
- Themes: a theme is a CSS class setting the properties. Theme ships DEFAULT, BLUE, RED, GREY and GREEN; Theme.CSS is the style sheet defining them. An application defines a theme of its own as a CSS class setting the same properties.
- ThemeBehavior: puts a theme's class on a component and contributes the style sheet. On the page, the theme applies to every themable component inside it; on a single component, only to that one. The theme comes from a model, so re-rendering the component switches it, for example via Ajax from a drop-down.
- Form controls: --wicket-theme-color-scheme sets the color scheme of the text fields, selects and check boxes inside themed components, so they match the theme even on a page that declares color-scheme: light dark and is shown in dark mode.
- Content Security Policy: themes are switched by CSS class only and need no inline style, so they work under a strict CSP.
- Compatibility: components read the properties only inside a theme, so a component without a theme looks as it does without this change.
Components using it: the DynamicDataTable (header, rows, toolbars, resize handles), the ProgressBar (#1635) and the CollapsiblePanel (#1636). The examples get a theme drop-down on their pages.
- 主要言語
- Java
- スター
- 800
- フォーク
- 437
- 平均マージ
- 21時間 36分
- マージ済み PR(30日)
- 167
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
apache/wicket のほかの issue
-
PropertyResolver fails on JDK classes with a non-public field named like the property対応中かも @vaibhavgupta443 が今日担当しました。 オープンgood first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
apache/wicket#1991 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Stop the autocomplete from accumulating request parameters while typing対応中かも @aryankalantri が今日担当しました。 オープンgood first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
apache/wicket#1947 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
Validate the report-uri value given to CSPHeaderConfiguration#reportBack対応中かも @AzizOuertani が 3 日前に担当しました。 オープンgood first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
apache/wicket#1946 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
jenkinsci/user-guide-ai-chatbot-plugin#132 ·
メンテナーはふだん 6 日以内に返信
-
account assessment course feature lecture
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 1 日以内に返信
-
bug db/dameng user-priority/P2
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
app:learninggoalhub enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100