default CSS

Discussions regarding developing applications using Servoy Mobile (new in Servoy 7)

default CSS

Postby marbeisol » Thu Dec 10, 2015 12:55 am

Hello everyone!

I have a mobile app , and noted that servoy gives the default style (a,b,c,d,e).
I would like to change the style sheet and add another themes, or replace these default CSS Using jquery mobile themes, but I don’t know how to do it.
Is it possible to change the style sheet in servoy mobile ?

I am using servoy 7.4.4
Thanks in advance!
marbeisol
 
Posts: 17
Joined: Mon Feb 17, 2014 6:40 pm

Re: default CSS

Postby derk.hulshof » Thu Dec 10, 2015 11:13 am

Hi,
In servoy 7 you can use a plugin for this; called WebClientUtils
https://www.servoyforge.net/projects/webclientutils

In there you can call a method (I think: addCssReference('media:///filename.css'); dont know the exact name) to load your own css files.
There is also a method for JS files.

Hope this will help you
derk.hulshof
 
Posts: 87
Joined: Tue Dec 03, 2013 9:18 am
Location: Netherlands

Re: default CSS

Postby marbeisol » Thu Dec 10, 2015 5:11 pm

Hello,

Thanks for you reply, I will try this.
marbeisol
 
Posts: 17
Joined: Mon Feb 17, 2014 6:40 pm

Re: default CSS

Postby marbeisol » Thu Dec 10, 2015 7:04 pm

Hello,

I downloaded the plugins that you suggest, and I added to the folder plugins , but on my mobile solution app does not appear this plugin, only for web client or smart client.
Am I doing something bad ? or this plugin is not compatible with Servoy Mobile, is it?
marbeisol
 
Posts: 17
Joined: Mon Feb 17, 2014 6:40 pm

Re: default CSS

Postby gabi.boros » Tue Feb 09, 2016 9:10 am

about the defauls css, with the current version of 7 you can't do that, but in the upcoming (that will be released in about 2 weeks) we added support for this. here is how you will be able to do this : by default Servoy 7 mobile uses the default theme from JQueryMobile version 1.3.2; you can overwrite that, with a custom theme (created with ThemeRoller https://themeroller.jquerymobile.com/ for version 1.3.x ) by importing the CSS in the solution's media with the name jquery.mobile.theme.css
gabi.boros
 
Posts: 1
Joined: Tue Feb 09, 2016 9:10 am


Return to Servoy Mobile

Who is online

Users browsing this forum: No registered users and 1 guest