on 06-19-2012 11:19 PM
Hello all.
After generating an app, in generated workflow directory I can see several files, including CSS, JS and HTML. In "workflow_jQueryMobileLookAndFeel.html" I can see all the app DIV's included.
My goal is to change some colors and shapes in generated html (none of the 5 jQuery Themes suites our needs). For example, I want to change the color of an inserted button and the color of the input field labels.
First of all, I can add a CSS file to the project and (I think) it will not be deleted next time I regenerate it and will be passed to SUP server and subsequently to the device.
Next, I would want to change workflow_jQueryMobileLookAndFeel.html, to use MY CSS definitions, but how can I send those changes to SUP server? And how can I avoid these changes do be deleted when regenerating the workflow?
Regards,
Sup Starter
Hello,
I think you cannot change the HTML or CSS file directly, because it will be regenerated by Workspace. However, if you change the page layout using JavaScript (in the custom.js file), you will achieve the goal. This file is not affected by the Web Package generator.
Kind regards,
Vlad
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well, acdording to the help link: http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc60009.0212/doc/html/vhu13... you should have an access to create a custom theme.
> Ability to choose themes when you generate the files for the mobile workflow package. You can choose JQM standard themes for the generated application or enter a name for a custom theme.
Because for JS solutions, you cannot change CSS files downloaded from web, but you can change some CSS rules on the active page (I assume that it would be possible to add a link into the hybrid application which points to the CSS file from the internet). And then add this link into the <head> section.
Hello Sup Starter,
Have you tried the ThemeRoller of jQuery Mobile? You can drag and drop colors on the buttons, links, backgrounds, etc.
http://jquerymobile.com/themeroller/index.php
Regards,
Daniel
PD: Please reward points if useful
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Martini,
When you download your theme from theme roller you will get:
1) your theme as a ".min.css file"
2) and as a ".css file",
So, open your Theme .CSS File (the second option above) and you would see something like this...
What i did was.. i copied the code for the theme "A", and replace the "theme A" code in this file at the generated workflow code:
And the next time you build & upload your HWC app, (if you are careful with the regenerate classes option) you will have your brand new theme
Regards,
Daniel Yrigoyen.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.