0

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

asked 2009-03-12 12:25:43 +0800

gyowanny gravatar image 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 flag offensive retag edit

10 Replies

Sort by ยป oldest newest

answered 2009-03-12 13:45:11 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

Hi

i have done it like following:

in zk.xml

  <language-config>
     <addon-uri>/WEB-INF/lang-addon.xml</addon-uri>
  </language-config>

in lang-addon.xml

  <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>

  </language-addon>

whishes
Stephan

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

link publish delete flag offensive edit

answered 2009-03-12 14:11:00 +0800

gyowanny gravatar image gyowanny
283 1 2 6

updated 2009-03-12 14:15:03 +0800

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

link publish delete flag offensive edit

answered 2009-03-12 14:13:19 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

updated 2009-03-12 14:14:03 +0800

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

link publish delete flag offensive edit

answered 2009-03-12 14:22:03 +0800

gyowanny gravatar image gyowanny
283 1 2 6

Hey,

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

link publish delete flag offensive edit

answered 2009-03-12 14:31:52 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

Skype, not over daytime. Sorry

Wich national are you from?

link publish delete flag offensive edit

answered 2009-03-12 15:07:04 +0800

gyowanny gravatar image 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

link publish delete flag offensive edit

answered 2009-03-13 01:07:46 +0800

jumperchen gravatar image jumperchen
3909 2 8
http://jumperchen.blogspo... ZK Team

Hi,

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

/Jumper

link publish delete flag offensive edit

answered 2009-03-13 10:03:15 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

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

uris.add(getMyThemeURI(req));

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

Stephan

link publish delete flag offensive edit

answered 2009-03-16 01:15:38 +0800

jumperchen gravatar image jumperchen
3909 2 8
http://jumperchen.blogspo... ZK Team

Hi,

Here you are.

/Jumper

link publish delete flag offensive edit

answered 2009-03-16 13:42:40 +0800

terrytornado gravatar image terrytornado flag of Germany
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

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2009-03-12 12:25:43 +0800

Seen: 389 times

Last updated: Mar 16 '09

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More