cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

Can I change a background color of 2D widget?

yhwan
1-Visitor

Can I change a background color of 2D widget?

Hi

I'm making a demo project by thingworx studio.

I wanna change a background color of '2D' widget.

When I use a 'value-display' widget, the background color is white and font color is black.

Also, I want to change a color of button widget(2D).

Is it possible? if it is possible, please let me know how to do.

Thanks.

ACCEPTED SOLUTION

Accepted Solutions
mneumann
16-Pearl
(To:yhwan)

Sure...

you can change it through classes.

An easy example just to get to know the concept is creating a Button Widget.

In it's properties you can assign a class, e.g. "redButton" - this is the CSS class used for styling.

If in (left hand panel) Styles > Application​ you add a

.redButton {

  background: red;

}

it will allow changing the style and presentation of the particular slide with default CSS stylings.

When you now preview / publish the experience you will see, that the Button has now a red background.

I tested it and it's the same for the ValueDisplay.

View solution in original post

2 REPLIES 2
srathoud
7-Bedrock
(To:yhwan)

Hi,

Create a css class with your all color requirements and add it in "STYLES->application" and use the same class name in widget class field.

This will work.

Regards,

Sameer Singh Rathoud

mneumann
16-Pearl
(To:yhwan)

Sure...

you can change it through classes.

An easy example just to get to know the concept is creating a Button Widget.

In it's properties you can assign a class, e.g. "redButton" - this is the CSS class used for styling.

If in (left hand panel) Styles > Application​ you add a

.redButton {

  background: red;

}

it will allow changing the style and presentation of the particular slide with default CSS stylings.

When you now preview / publish the experience you will see, that the Button has now a red background.

I tested it and it's the same for the ValueDisplay.

Announcements

Top Tags