Change TimeSpanAxis label color OXYPLOT? - xamarin.forms

I am able to do formatting except choosing the right color for my label font. Does any one know how to change the color of any axis's label using OxyPlot in Xamarin.Forms ?

OP found the answer by himself: The color may be set by assigning a OxyColor to the property TextColor of any PlotElement.
(Just answering to get this question out of "unanswered")

Related

Nimbus: background color of editable JComboBox

There are several related questions, but none of them has an answer that works for Nimbus and an editable JComboBox.
So, is there really no solution to set the backgound color of an editable JComboBox in Nimbus?
The below does NOT work:
((JTextComponent)jComboBox1.getEditor().getEditorComponent()).setOpaque(true);
((JTextComponent)jComboBox1.getEditor().getEditorComponent()).setBackground(Color.blue);
E.g. Change background color editable JComboBox illustrates the problem, but the provided solution only works for the Metal LaF.

How to change the color chooser label of javaFX ColorPicker

When you add a ColorPicker element, the color chooser label shows color text (as Gray here) for standard colors, other hexadecimal value.
I want to show the custom text – like "Choose Color". Any way to do this?
With some discussions, it is found one can override the color label chooser by getting access to label as - get skin of color picker then get display label.

Rickshaw: Changing colors of X-Axis Labels

By default the labels are all a dark gray, I've tried to override them using CSS multiple ways.
How do I change the label's color on render?
Or how do I change the color in the SVG output?
I've looked everywhere and have found similar titles but different meanings. Love how manipulatable this graph is, but the label text color is a must for me.
Thanks in advance.
Finally found the way to do it. Gotta use JS to overwrite the attributes.
After the graph.render() function use these:
$('.x_ticks_d3 text').css('opacity', '1.0');//fix text opacity
$('#x_axis text').css('fill', 'white');//text color
$('.x_ticks_d3 .tick').css('stroke-width', '0px');//text smoothing
$('#x_axis path').css('opacity', '0');//remove line or
$('#x_axis path').css('stroke', 'white');//change line color
This got everything to be white for me, and was able to remove the lines also.

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

Datagrid cell color

I want to change cell color while user interaction without using itemrenderer. I am able to change fontcolor, fontsize, fontfamily except the cell background color. Is there any way to do this without using itemrenderer?
Thanks in advance
No, there is none. The ItemRenderer defines how the cell looks.

Resources