Make the other components of wicket-extensions support the shared themes

未关闭
#1,639 0 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 1 天内回复

@reiern70 已经在做这个了。

开始于 2026年10月2日。

评估

这个 Issue 还没有评估数据。

描述

#1638 adds color themes shared by the components of wicket-extensions: CSS custom properties named --wicket-theme-*, set by a theme class, and a ThemeBehavior that applies a theme to a page or a component. The DynamicDataTable, the ProgressBar and the CollapsiblePanel read their colors from them.

The other components of wicket-extensions keep their own hard-coded colors, so a themed page still shows them in their old look. This issue is about making them read the theme properties as well:

  • ModalDialog: its DefaultTheme (ajax/markup/html/modal/theme/theme.css) styles the dialog, the overlay and the title bar.
  • DataTable and its toolbars (headers, navigation, no-records toolbar, export toolbar), so a DataTable and a DynamicDataTable on the same page look alike.
  • Palette (markup/html/form/palette/theme/palette.css).
  • The tree themes (markup/html/repeater/tree/theme/windows and human).
  • AutoCompleteTextField (DefaultCssAutoCompleteTextField.css).
  • UploadProgressBar (UploadProgressBar.css), which could reuse the look of the ProgressBar.
  • RatingPanel (RatingPanel.css).
  • TabbedPanel, Wizard and BreadCrumbBar, which rely on the application's CSS today.

Goals, as for the components already themed:

  • Read the properties only inside a theme, so an application that does not use a theme sees no change.
  • Switch by CSS class only, with no inline style, so the components keep working under a strict Content Security Policy.
  • Add properties to the theme only where the existing ones cannot express what a component needs, and document them in wicket-theme.css.

The components can be done one at a time, each in its own pull request.

主要语言
Java
星标
800
派生
437
平均合并
21 小时 36 分钟
30 天内合并 PR
167

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

apache/wicket 的其他 Issue

查看 apache/wicket 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。