Allow minor customizations in default theme

Description

Hi, in 8.1 we have a customer that would like to have a different font.

They like all the changes, but they would like just a different font.

As this case, there can be many cases where a minor change is requested, and the actual approach is to create and maintain in sync a full theme with all the icons and zul files.

The proposed change is to allow creating a fragment for the default theme with just the changes.

The change is really simple, just add this line at the end of theme.css.dsp:

That file doesn't exist in core, but is intended to create fragments with minor customizations.

We tested with this simple plugin:


and it worked fine.

For reference the file theme/default/css/fragment/custom.css.dsp in the fragment just contains these lines:

Environment

None

Activity

Show:
Carlos Ruiz
December 2, 2020, 5:33 PM
Carlos Ruiz
December 2, 2020, 5:23 PM

Updated the attached example

for

Heng Sin Low
November 13, 2020, 12:38 PM

hi , will try it out. perhaps just a timing issue.

Carlos Ruiz
November 12, 2020, 10:01 PM

Sharing here my attempt to make a conditional include, but unfortunately didn't work:

Diego Ruiz
November 10, 2020, 8:20 PM

I noticed the following message in the log every time you land on the login Page (at startup and when you logout)

21:19:38.347===========> InterpreterServlet.error: Not found: /theme/default/css/fragment/custom.css.dsp [39]

 

Best Regards,

Diego Ruiz

Fixed

Assignee

Carlos Ruiz

Reporter

Carlos Ruiz

Labels

None

Tested By

None

Fix versions

Priority

Major