Sencha Touch 2.2 automatically loads corresponding style files based on different devices and topic descriptions in Sencha Touch 2.3

Source: Internet
Author: User

Email: gm4linus@gmail.com

Sencha Touch2.2 supports loading different styles based on different devices. you can configure this rule using css configuration items in app. json of the application, such

"css": [        {            "path": "../../resources/css/sencha-touch.css",            "platform": ["chrome", "safari", "ios", "android", "blackberry", "firefox"],            "update": "delta"        },        {            "path": "../../resources/css/wp.css",            "platform": ["ie10", "windows"],            "theme": "Windows",            "update": "delta"        }    ]

Then, the chrome-based safaristmios?android=blackberry=firefoxplatform uses sencha-touch.css. If other platforms do not load the file. If ie10133 is windows, then wp.css is used.

So what are the meanings of topics provided by Sencha Touch 2.3?

Cupertino(cupertino.css): Class IOS7 topic

CupertinoClassic(cupertino-classic.css): IOS topic cupertino-classic.css before IOS7

MountainView(mountainview.css): Android-like theme

Windows (wp.css): Windows Phone-like theme

Bb10(bb10.css): BlackBerry 10 theme

Default(sencha-touch.css): Default topic


If you have other configuration requirements, you can modify the loader of Sencha Touch.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.