Theme variations

Description

Hi,

Idea is to be able to make some changes on the theme, at tenant/org/role/user levels.
Sometimes you just need little adjustments and duplicating/maintaining themes can be time-consuming.
Another usecase would be to adapt themes for color-blind people.

  • Add a AD_UserDef_Theme and AD_UserDef_Theme_Detail tables

  • Load the content of the table into a map on login

  • Adapt ThemeManager.getThemeResource to replace the default value by the customized one (if set)

Refs:
- original thread : https://groups.google.com/g/idempiere/c/GdRpqQ7Y_xs
- MM discussion : https://mattermost.idempiere.org/idempiere/pl/rq6d5jbna3nimydpdruqn6py9a
- https://idempiere.atlassian.net/browse/IDEMPIERE-2463

Environment

None

Attachments

6
  • 25 Nov 2024, 02:46 PM
  • 24 Nov 2024, 04:33 PM
  • 24 Nov 2024, 04:33 PM
  • 24 Nov 2024, 04:33 PM
  • 24 Nov 2024, 04:33 PM
  • 12 Nov 2024, 11:04 AM

Activity

Show:

Nicolas Micoud December 2, 2024 at 10:47 AM

Reopening to handle infinite loop

Milos R November 29, 2024 at 7:35 PM

If theme is not default there is recursive loop on line String themeCSSURL = getStyleSheet(); (ThemeManager) getStyleSheet calls getTheme and cycle repeats

Nicolas Micoud November 25, 2024 at 2:48 PM

Reopening to integrate unique index
And, I wanted to add a 2Pack example on the wiki page, but seems attaching zip file is forbidden.
So I've added it here - but can't find a way to get its link :-/

Nicolas Micoud November 25, 2024 at 2:24 PM


Ok, I’ll do it.
In the meantime, I’ll realize that there was no unique index on main table ; see https://github.com/idempiere/idempiere/pull/2559

Carlos Ruiz November 25, 2024 at 2:03 PM

, the only pending here is to finish the documentation on the wiki, the last option added by supporting https and attachment must be documented too.

Flagged
Fixed

Details

Assignee

Reporter

Fix versions

Priority

Created November 12, 2024 at 9:39 AM
Updated January 1, 2025 at 12:40 PM
Resolved December 2, 2024 at 12:15 PM