Can't find CSS files for new color ?

Post Reply
iljkr
Posts: 19
Joined: 30 Dec 2013, 20:52

17 Feb 2017, 15:53

With versions > 2.0 of spark there are new colors for buttons,

from forms.xhtml:

Code: Select all

<p:panelGrid columns="1" layout="grid" styleClass="ui-panelgrid-blank">
                            <p:button value="Default Theme Button"/>

                            <p:button value="Inline Button" style="width:auto"/>

                            <p:button value="Green Button" styleClass="GreenButton"/>

                            <p:button value="Red Button" styleClass="RedButton"/>

                            <p:button value="Blue Button" styleClass="BlueButton"/>

                            <p:button value="Orange Button" styleClass="OrangeButton"/>

                            <p:button value="Purple Button" styleClass="PurpleButton"/>

                            <p:button value="Cyan Button" styleClass="CyanButton"/>

                            <p:button value="Brown Button" styleClass="BrownButton"/>

                            <p:button value="Gray Button" styleClass="GrayButton"/>
                        </p:panelGrid>

But only the old colors (Green,Red ,Blue,Orange ) work on my appalication. The new colors don't work when I use PurpleButton, CyanButton, BrownButton or GrayButton the color rendered is always the Blue.

In the css folder there are:

animate.css
core-layout.css
font-awesome.css
spark-layout.css
spark-layout-orange.css
spark-layout-blue.css
spark-layout-red.css
javax.faces-2.2.8 | primefaces-5.2 | tomcat 7

User avatar
aragorn
Posts: 2082
Joined: 29 Jun 2013, 12:38

22 Feb 2017, 12:25

We have these color classes in theme.css. Please check your theme.css. I tested this issue. it works fine for me.

Post Reply
  • Information
  • Who is online

    Users browsing this forum: Bing [Bot] and 1 guest