Peter Della-Nebbia
Peter Della-Nebbia

Reputation: 827

How to extend the Mobile default theme for XPages Mobile Controls?

With 9.0.1 I can create a new theme that extends the OneUI IDX V1.3 theme by adding extends="oneui_idx_v1.3" in the start tag like so:

 <theme extends="oneui_idx_v1.3" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="platform:/plugin/com.ibm.designer.domino.stylekits/schema/stylekit.xsd">
  <resources>
      ... *resources* ...
  </resources>
</theme>

What do I specify for the extends attribute to extend the Mobile default theme?

Upvotes: 0

Views: 245

Answers (1)

Brian Gleeson - IBM
Brian Gleeson - IBM

Reputation: 2565

The default mobile theme is actually a set of 3 themes: android.theme, iphone.theme and blackberry.theme, each applied as appropriate for the detected device. You can extend some or all of those by specifying android, iphone or blackberry in the extends attribute.

So your new theme file, e.g. myIphoneTheme.theme, would start with:

<theme extends="iphone" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="platform:/plugin/com.ibm.designer.domino.stylekit‌​s/schema/stylekit.xsd" >

Then select the new theme in the xsp properties as your mobile theme or as your ios theme:

custome iphone theme

Upvotes: 1

Related Questions