Label Focus Color Change in s:label - apache-flex

I want to change the text color of the S:Label control on rollover by changing the style i want to change the text color to different. can any one please help me. For example i mouse over on Label the text of the color should change to green but not background color.

In actionscript add a mouse over listener and mouse out listener to the label. In the function for mouse over just put in:
label.setStyle("color","#00FF00");
and on the mouse out revert it back to #000000 for black.
Note: In actionscript color normally refers to text color and you get a seperate variable for the background normally used as backgroundColor.

Related

JavaFX Changing Button Color

I have a button that I change to the color green using
button.setStyle();
Now I need to make it back to the default color. How would I do that?
You can clear the styles you have set with button.setStyle("");

Highstock: Change color of date input box border if active

There seems to be an default blue color for the active state border color of the date input box. Do I need to control this color through CSS? I couldn't find the option under rangeSelector
The inputs are rendered as shapes in SVG, not input forms. So yoo need to wrap highcharts function and define it.

Disabled QGroupBox title shadow (aka etching)

Look thoroughly at the disabled QGroupBox title (see attached image).
You'll notice a tiny white 1-pixel shadow under the title's letters.
It's barely noticeable on default style sheet, but it can be much more annoying if you set dark background and text color.
What can I do to disable this shadow, or at least change its color?
What style are you using? It looks like the 'basic' Windows style. If you want to get rid of the text shadow, you can implement your own style and change the way the text is drawn for disabled group boxes. Read more about about QStyle and how to create a custom style here. The link is for Qt 5.1, but the principle is the same for Qt 4 as well.
An easier way would be to simply change the palette for the QGroupBox object. Change the color identified by color group QPalette::Disabled and color role QPalette::Light to any color with the alpha channel set to 0, e.g. QColor(0, 0, 0, 0). This will effectively disable the text shadow. However, it will also disable the shadow of the lines so it might not be what you want.
I've found a solution:
Unfortunately, you can't remove disabled text shadow (aka etching), but you can change its color using dirty workaround:
It looks like shadow effect always takes its color from the ColorGroup "Disabled" and the ColorRole "Light" of the current palette. So, you just set this color to the background color of your widget:
QPalette p = myWidget->palette();
p.setColor(QPalette::Disabled, QPalette::Light, QColor(0,0,0)); <- place your widget bg color here
myWidget->setPalette(p);
I've found this solution here

How to give back groundcolor to widget?

i my qt application i have a window and i set the background color of the window as white using "Change stylesheet'when i placed a button its background color is also the white.....i want the green window with button with a background color of grey...how to achieve this?
You need to set the autoFillBackground property to true on the widget.
Otherwise the background color, you have selected, will have no effect.
If this is not the case, please write a better description of the problem.

Removing default onclick or onItemClick color animation

When I click on some button or I click on the a element in grid or list view, a default orange color appears. I don't want that color to come when I click on it. Please tell me how can I do this.
And also is it possible to change the orange color by some other custom color when i click on button or items in grid or list view.
There is an example of how to set this here:
http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/1c9e319c-79aa-4608-a302-0a6c9d93d504

Resources