We highly recommend considering Ionic 5 for creating your new projects: Ionic 5 apps generally perform and look better than jQuery Mobile hybrid apps but would like you to know that Appery.io still supports the JQuery Mobile framework as it is considered to be a very simple framework and is still used by many developers.
A jQuery Mobile app comes with a theme called flat-ui. It's also very easy to add additional themes. To import themes, click Create New > From Plugin. This will open a window with a list of available themes for importing.
Select the theme(s) to import and click Import selected plugins. As a result, you will see the newly imported themes under the Themes folder in the *Project view. To apply a theme to all the pages in the app, go to Project > App settings. Select the needed Theme and then select a Swatch.
Another way to get new themes is to click Add more Themes from App settings > General. This way, you will also get into the catalog of the Appery.io plugins window.
jQuery Mobile standard themes
All themes in Appery.io, including custom themes, are based on jQuery Mobile themes. Learn more about themes and swatches.
This is how the default flat-ui theme swatch B looks:
In Project > App settings, changing the theme to Gelato (once it is imported). Changing the theme will update all of the pages. The swatch will then be set to Inherit. To change a swatch within a page, select the page name in breadcrumbs, and then change its swatch in Properties. The theme is set to Gelato and the swatch to A.
A jQuery Mobile theme comes with at least one swatch. A swatch is usually a different color schema for the same theme. The actual number of swatches depends on the theme and its creator. The swatches are usually identified by letters A, B, C, D and so on.
You can easily create as many custom themes as you need by using the jQuery Mobile ThemeRoller tool, and then uploading them to your app in Appery.io:
- Swatches A, B, C are shown in the upper-left corner. You can also add a new swatch (D, E, F…) by clicking +.
- The menu on the left allows you to edit the current swatch. The changes will be instantly shown in the center.
- When done creating a custom theme, click Download (top menu) to download the theme.
This section shows you how to use the jQuery Mobile ThemeRoller to create a custom theme for your app.
- Create a custom theme with any number of swatches in the ThemeRoller.
- Click Download- you will be prompted to enter a name (for example MyTheme). Then click Download Zip.
- Unzip the download file, and find the file called MyTheme.css.
- In Appery.io, Project > Create New > Theme. For the name, enter: NewTheme. Click Create Theme.
- Open MyTheme.css, copy all its contents, and paste it into the create theme in Appery.io.
- Click Add Image and upload all the images from theme/images folder from the download zip file. You can select multiple images to upload.
- All the images need to be added to the theme one by one. Select each image (currently, they must be selected one at a time) and click Select.
Once all the images are added to the theme, it will look like this:
- Go to Project > App settings and select the newly created theme.
- Open the page and select one of the swatches from your new theme.
Custom icons cannot be added to an iOS7 theme due to a changed CSS structure.
You may go away from inserting the predefined themeAppery icons and use custom ones. To do this:
- CREATE NEW > Theme, name it and copy the code of the theme you want to make changes to into the space provided.
- Upload images of the the icons you’d like to insert into the builder using Add image button on custom theme page .
- Find the code positions and apply background-image for the icons, set correct background position for each icon. URL format is images/. Correct file names can be found on the list to the right.
Watch the size of your images – if it exceeds
22 px, you need to set the background size to 100%. Test the application to see the icons.
All manipulations can be made for Libraries v2.0 and higher.
Default JQM themes support vector icons in
.svg format. To use vector icons in
.css, open the
.svgformat can be used in JQM themes.
Updated 7 months ago