The theme-uri Element"
From Documentation
(One intermediate revision by the same user not shown) | |||
Line 8: | Line 8: | ||
It specifies the URI of an addition theme (aka., a style sheet file). | It specifies the URI of an addition theme (aka., a style sheet file). | ||
− | Like other URI, it accepts | + | Like other URI, it accepts <code>*</code> for loading browser and Locale dependent style sheet. Please refer to [[ZK Developer's Reference/Internationalization/Locale-Dependent Resources|ZK Developer's Reference]] for more details. |
− | You can specify any number of < | + | You can specify any number of <code>them-uri</code> as follows. |
<source lang="xml" > | <source lang="xml" > | ||
Line 20: | Line 20: | ||
− | If you want to replace a default theme, you have to use < | + | If you want to replace a default theme, you have to use <code>theme-uri</code> with <code>disable-theme-uri</code>. Please refer to [[ZK Developer's Reference/Theming and Styling|ZK Developer's Reference]] for more information. |
'''Notice:''' | '''Notice:''' | ||
− | # All style sheets defined in < | + | # All style sheets defined in <code>lang.xml</code> and <code>lang-addon.xml</code> are loaded, no matter this parameter is defined or not. It is convenient for developers to override certain styles. |
− | # Each JAR could specify a < | + | # Each JAR could specify a <code>lang-addon.xml</code> file (under the <code>metainfo/zk</code> directory), so you can specify style sheets there if you have more than one style sheets. |
− | # You | + | # You can specify extra CSS files for individual ZUML pages by the use of the [[ZK Component Reference/Essential Components/Style|<code>style</code> component]]. |
=Version History= | =Version History= |
Latest revision as of 08:23, 17 March 2022
Syntax:
<theme-uri>a_theme_uri</theme-uri>
[Default: none]
It specifies the URI of an addition theme (aka., a style sheet file).
Like other URI, it accepts *
for loading browser and Locale dependent style sheet. Please refer to ZK Developer's Reference for more details.
You can specify any number of them-uri
as follows.
<desktop-config>
<theme-uri>/my/blue**.css</theme-uri>
<theme-uri>/my/second.css</theme-uri>
</desktop-config>
If you want to replace a default theme, you have to use theme-uri
with disable-theme-uri
. Please refer to ZK Developer's Reference for more information.
Notice:
- All style sheets defined in
lang.xml
andlang-addon.xml
are loaded, no matter this parameter is defined or not. It is convenient for developers to override certain styles. - Each JAR could specify a
lang-addon.xml
file (under themetainfo/zk
directory), so you can specify style sheets there if you have more than one style sheets. - You can specify extra CSS files for individual ZUML pages by the use of the
style
component.
Version History
Version | Date | Content |
---|---|---|