Le Apr 10, 2007 à 4:37 PM, Jean-Marc Orliaguet a écrit :


ok
where would it be wise to put the nuxeo-default palettes according to you ? i was thinking of ...webapp/resources/WEB-INF/palettes, what do you think?
webapp/resources/themes/palettes

I would say

WEB-INF is somehow reserved for J2EE web files I guess
ok

- the "src" parameter can be a URL too (e.g. http://server/ palettes/fonts.properties)
- the "name" parameter is added to the preset name
- the "category" parameter is used in the style editor to make it possible to select items among 'font', 'color', 'image', categories.
about that, to me colors are colors, so can i do something like that :
<palette name="Nuxeo default colors" src="themes/palettes/ nxcolors.aco" category="color,border-color," />
? what should i use ? color, border-... or mayve color|border... ?

<font preset="preset name (palette name)" />
ok



when the server starts the log file will read
that i can't get!


that was an example (unless you have org.nuxeo.theme.demo installed you won't get access to the palettes installed in it :-) ) see http://svn.nuxeo.org/nuxeo/org.nuxeo.theme/trunk/demo/resources/ nxthemes/demo/palettes http://svn.nuxeo.org/nuxeo/org.nuxeo.theme/trunk/demo/OSGI-INF/ nxthemes-demo-contrib.xml

i can't get it, even if i put preset palettes in theme-contrib.xml, is what i meant.
Here is what is my theme-contrib :

   <!-- Styles presets -->

<extension target="org.nuxeo.theme.services.ThemeService" point="presets">

<palette name="Nuxeo default fonts" src="themes/palettes/ nxfonts.properties" category="font" /> <palette name="Nuxeo default font colors" src="themes/palettes/ nxfontcolors.properties" category="color" /> <palette name="Nuxeo default border colors" src="themes/palettes/ nxbordercolors.properties" category="border-color" /> <palette name="Nuxeo default backgrounds" src="themes/palettes/ nxbackgrounds.properties" category="background" /> <palette name="Nuxeo default colors" src="themes/palettes/ nxcolors.aco" category="color" />

  </extension>


in my palettes i have things like that :

default=11px Verdana, Arial, sans-serif
small=9px Verdana, Arial, sans-serif

title1=bold 21px Verdana, Arial, sans-serif
title2=bold 16px Verdana, Arial, sans-serif
title3=bold 14px Verdana, Arial, sans-serif
title4+=bold 12px Verdana, Arial, sans-serif


and in my nxthemes-setup.xml i have :

 <!-- Header -->

    <!-- Banner -->
    <style element="page[1]/section[1]">

      <selector path="">
        <background preset="banner (Nuxeo default backgrounds)" />
        <border-style>none none solid none</border-style>
        <border-color preset="dark (Nuxeo default border colors)" />
        <border-width>0 0 1px 0</border-width>
      </selector>

    </style>

    <!-- user services -->

    <style element="page[1]/section[1]/cell[2]/fragment[1]">

    <selector path="div">
        <color preset="light (Nuxeo default colors)" />
        <padding>2px 2px 0px 0px</padding>
        <margin>0</margin>
        <line-height>185%</line-height>
      </selector>

    ... etc

yet i won't work.

In the log i don't have any "palette" or "font", i just have that line with "presets"

2007-04-10 17:32:49,772 INFO [org.nuxeo.theme.types.TypeRegistry] Registered NEGOTIATION: nuxeo5/engine 2007-04-10 17:32:49,773 INFO [org.nuxeo.theme.types.TypeRegistry] Registered NEGOTIATION: nuxeo5/mode 2007-04-10 17:32:49,773 INFO [org.nuxeo.theme.types.TypeRegistry] Registered NEGOTIATION: nuxeo5/theme 2007-04-10 17:32:49,774 INFO [org.nuxeo.theme.types.TypeRegistry] Registered NEGOTIATION: nuxeo5/perspective 2007-04-10 17:32:49,774 DEBUG [org.nuxeo.runtime.model.ComponentManager] Dispatching event: UNKNOWN: service:org.nuxeo.theme.nuxeo.default 2007-04-10 17:32:49,774 DEBUG [org.nuxeo.runtime.model.ComponentManager] Register contributed extension: ExtensionImpl {target: service:org.nuxeo.theme.services.ThemeService, point:presets} 2007-04-10 17:32:49,776 DEBUG [org.nuxeo.runtime.model.ComponentManager] Dispatching event: UNKNOWN: service:org.nuxeo.theme.nuxeo.default 2007-04-10 17:32:49,776 DEBUG [org.nuxeo.runtime.model.ComponentManager] Dispatching event: COMPONENT_ACTIVATED: service:org.nuxeo.theme.nuxeo.default

but i'm not even sure that's related :-)

++






--
Thibaut Soulcié – GraphicDesign – Nuxeo
Open Source Enterprise Content Management (ECM)
http://www.nuxeo.com & http://www.nuxeo.org


_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

Reply via email to