xiaochong / zkui

Grails ZK UI Plugin
http://grails.org/plugin/zkui
GNU Lesser General Public License v3.0
24 stars 8 forks source link

Using zk.xml #32

Open geemang2000 opened 13 years ago

geemang2000 commented 13 years ago

I've generated a zk.xml using zk-install-xml since I'd like to globally change org.zkoss.zul.theme.fontFamilytT and org.zkoss.zul.theme.fontFamilytC to 'verdana, arial, helvetica, sans-serif' .

I added these to my zk.xml

    <library-property>
        <name>org.zkoss.zul.theme.fontFamilytT</name>
        <value>verdana, arial, helvetica, sans-serif</value>
    </library-property>
    <library-property>
        <name>org.zkoss.zul.theme.fontFamilytC</name>
        <value>verdana, arial, helvetica, sans-serif</value>
    </library-property>   

FYI: I have runtime "org.zkoss.theme:silvertail:5.0.8" in my BuildConfig.groovy so I'm using this theme

The fontFamily setting doesn't seem to be taking effect. I see the fontFamily of my components as : arial,sans-serif

I'm wondering if the zk.xml file is being loaded???

xiaochong commented 13 years ago

Are you add the following to the zk.xml?

 <library-property>
         <name>org.zkoss.theme.preferred</name>
         <value>silvertail</value>
</library-property>
geemang2000 commented 13 years ago

No, by adding the theme asruntime "org.zkoss.theme:silvertail:5.0.8" in the dependencies section in the Buildconfig.groovy it seems to use silvertail by default.

xiaochong commented 13 years ago

Add the

 <library-property>
         <name>org.zkoss.theme.preferred</name>
         <value>silvertail</value>
</library-property>

then see whether the fontFamily is effect

geemang2000 commented 13 years ago

Did not work. Same result as above.

NOTE: I added this as a test too. Did not do anything either

    <client-config>
        <debug-js>true</debug-js>
    </client-config>
xiaochong commented 13 years ago

Font Size is work

    <library-property>
        <name>org.zkoss.zul.theme.fontSizeM</name>
        <value>12px</value>
    </library-property>
    <library-property>
        <name>org.zkoss.zul.theme.fontSizeMS</name>
        <value>12px</value>
    </library-property>
    <library-property>
        <name>org.zkoss.zul.theme.fontSizeS</name>
        <value>12px</value>
    </library-property>

I will find out the reasons why fontFamily is not work.

geemang2000 commented 13 years ago

Yes, those work fontSize settings work here too

geemang2000 commented 13 years ago

Any word on the other settings?

xiaochong commented 13 years ago

I have no idea to solve the problem up to now, need some time to find the reason.