Escaffre Alain wrote:
Hello,
I have two questions about the theme editor , probably for JM.
- About the palettes : what happens when we delete a palette and there
are some style that uses it ?
Hello,
The presets contained in the palette won't be created/loaded. But they
will still be referenced in the theme styles (presets are simply encoded
as properties with quoted values, e.g. color: "red color (palette
name)". So it's a soft dependency based on preset names.
It means that you can remove the palette, and still import / export
themes without losing the information related to presets, and then put
the palette (or another palette) back in place to restore the style
information.
If the palette isn't present the CSS renderer will skip the properties
with unknown presets. The idea is that a palette can be loaded afterwards.
- About the <application> definition, in which we define the default
theme. I had, bymistake, set the default theme to a non existing one,
and as a consequence could not display anything in the web app (error
message). Fortunately, it was on a file system URL, so I could modify
to set the name theme to map the default one. I was surprised it
didn't take any other theme, since he had two more (one in a custom
package and the default one). How does the falling down works ?
here too, the theme descriptors refer to themes that may not exist yet,
or that may be loaded later from a remote server, so the fallback
mecanism doesn't take into account the fact that a theme exists or not.
The theme's name is real though.
Did it raise an exception, or was it a blank page you got?
/JM
Thank you,
Alain
------------------------------------------------------------------------
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm