# How to change the font size of the whole web application?

gyowanny
283 1 2 6

Hi folks

I would like to decrease the font size of all the UI components of my web application, like the three "A" of the ZK Explorer demo .
How can I do that?

Cheers

Gyo

delete retag edit

## 10 Replies

9393 3 7 16
http://www.oxitec.de/

Hi

i have done it like following:

in zk.xml

  <language-config>
</language-config>


  <language-addon>
<language-name>xul/html</language-name>

<library-property>
<name>org.zkoss.zul.theme.fontSizeM </name>
<value>11px</value>
</library-property>

<library-property>
<name>org.zkoss.zul.theme.fontSizeS </name>
<value>10px</value>
</library-property>

<library-property>
<name>org.zkoss.zul.theme.fontSizeXS </name>
<value>9px</value>
</library-property>

<library-property>
<name>org.zkoss.zul.theme.fontSizeMS </name>
<value>10px</value>
</library-property>



whishes
Stephan

PS: help to prevent the global warming by writing cool software.

gyowanny
283 1 2 6

Stephan, thanks for the quickly answer.

Is there any way to choose/set which font size for example fontSizeXS I want for my application?

Cheers

9393 3 7 16
http://www.oxitec.de/

I would know it too :-)
I hope somebody can help us. (Java-code preferred for me)

gyowanny
283 1 2 6

Hey,

Do you have msn or skype? It would be nice to exchange some ZK experience :-)

9393 3 7 16
http://www.oxitec.de/

Skype, not over daytime. Sorry

Wich national are you from?

gyowanny
283 1 2 6

I'm from Brazil and I'm gonna start a partnership with ZK here so I have to get more experience / more contacts to make this right :-)
I'm also working on a commercial application based on ZK.

Well, this is my skype account: gyowannyteste
and my email: [email protected]

Cheers

jumperchen
3909 2 8
http://jumperchen.blogspo...

Hi,

You can use the Theme Provider, please take a look at here.
And also grab the example from ZK Demo.

/Jumper

9393 3 7 16
http://www.oxitec.de/

Hmmm, i mean there is something missing in the wiki code:

where is the getMyThemeURI methode()?
and the setter for the theme??

Stephan

jumperchen
3909 2 8
http://jumperchen.blogspo...

Hi,

Here you are.

/Jumper

9393 3 7 16
http://www.oxitec.de/

many thanks jumper.

That's exactly what i need.
Is this the right place for extend a methode to force a 'Locale'
other than the browsers default?

Stephan

[hide preview]