How to change the theme primefaces mobile?

UI Components for JSF
Post Reply
User avatar
yhoga
Posts: 12
Joined: 13 Oct 2014, 19:10
Location: Atenas

15 Oct 2014, 21:07

Is possible to change the theme base of primefaces mobile?
The theme has to be "ui-lightness" or something looks like, but my application is mobile.
How I do that?

soekris
Posts: 76
Joined: 29 Apr 2013, 16:54
Location: Barcelona

16 Oct 2014, 15:57

I don't know if its possible to change theme like "normal" primefaces, but you can do something similar playing with "swatch". If I'm not wrong you can choose between a,b,c and d.

Code: Select all

       <pm:page id="first" swatch="a">
Hole it helps
Primefaces 5.3.X / 6.X
NetBeans 8.1
WildFly 10
Linux Mint & freeBSD

User avatar
yhoga
Posts: 12
Joined: 13 Oct 2014, 19:10
Location: Atenas

16 Oct 2014, 16:44

soekris wrote:I don't know if its possible to change theme like "normal" primefaces, but you can do something similar playing with "swatch". If I'm not wrong you can choose between a,b,c and d.

Code: Select all

       <pm:page id="first" swatch="a">
Hole it helps
I did what you said and works, but I need a theme orange and don't have in this options
What else i can try? Do you know?
Thanks a lot for answer me :D

soekris
Posts: 76
Joined: 29 Apr 2013, 16:54
Location: Barcelona

16 Oct 2014, 17:35

You can do it changing CSS
Primefaces 5.3.X / 6.X
NetBeans 8.1
WildFly 10
Linux Mint & freeBSD

User avatar
yhoga
Posts: 12
Joined: 13 Oct 2014, 19:10
Location: Atenas

16 Oct 2014, 18:14

soekris wrote:You can do it changing CSS
Do I have to create css or has a way to changing the colors of themes that you said to me?

soekris
Posts: 76
Joined: 29 Apr 2013, 16:54
Location: Barcelona

16 Oct 2014, 19:00

You must create a css sheet that override the primefaces mobile one, I don't recomand you to change primeFaces's css theme directly
Primefaces 5.3.X / 6.X
NetBeans 8.1
WildFly 10
Linux Mint & freeBSD

User avatar
yhoga
Posts: 12
Joined: 13 Oct 2014, 19:10
Location: Atenas

17 Oct 2014, 13:19

Ok then
Thanks

jobor
Posts: 33
Joined: 19 Dec 2011, 22:34
Location: the Netherlands

22 Oct 2014, 15:38

Hello,

Maybe you can do something with my answer on

http://forum.primefaces.org/viewtopic.php?f=8&t=39654

when you want a different theme of your own.

Johan
With regards,
Johan Borchers

Mac OS X 10.15.7
NetBeans 12.3
OpenJDK Zulu11.37
JSF Mojarra 2.3.14
PrimeFaces 10.0.0
Tomcat 9.0.43
MySQL 5.6.x

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 18 guests