Native/default colors for hovered title text and background - html

Natively in chrome/firefox, hovering over an element shows its title with a yellow background with black text.
Does anyone know the exact HEX or RGB colors for each?
thanks,
tim

Took a screen capture, opened it in photoshop, used the color picker to find the values.
In OSX/Chrome the tooltip yellow background is:
#ffffca
In OSX/Chrome the tooltip text is:
#000023
In OSX/FF the tooltip yellow background is:
#feffcd
in OSX/FF the tooltip text is:
#000
There are actually minor variations at some points in the Chrome bg, it's not a purely solid color. I'm not sure what would cause that anomaly. But the hex value I took was the most consistent, and any variations are negligible anyway.
Text is of course antialiased, and values were taken from what I perceived to be the darkest area of the text, which would correspond to its actual RGB/HEX value.

Hexidecimal color value for Windows tooltip background:
FFFFE1
Hexidecimal color value for Linux:
F6F6B9
RGB color value for Windows tooltip background:
(255,255,225)
RGB color value for Linux tooltip background:
(246,246,185)

From RGB space, you convert to Hunter-Lab space, use L condition(>0.5) to set the appropriate value,
http://dataanalysers.com/00ff00

Related

Instead of using a hex code for a color, make it transparent [AS3]

So lets say I have some code in as3, and it requires a given color (Current one is 0x701100 for example) but instead of giving it a hex color code, I want it to be transparent, aka no color, aka see through, you get what I mean.
This is basically the line of code that determines what color it is: super(0x701100, 0x8D1500); and well the 0x8D1500 represents some other things color, but all I want is the 0x701100 to be transparent/not show.
The color 0x701100 is already "transparent" in that it has no value for an alpha channel. It's the same as 0x00701100. A value such as 0xff701100 would represent a fully opaque color, and 0x80701100 would be about 50% transparent. Obviously, the problem is that your super() method does not support rendering transparency from the hex color.

Conditional formatting to have transparent font colour

I'm not sure if this is possible - I would like to have a conditional type formating on a field in a continous form, which will give the font colour of the field a transparent colour, so that the result is hidden.
I would like to do this to hide out a bunch of zero values. So far, I've tried setting the font colour to white on a zero value, but my odd lines have a light grey background, so it's still showing there. Is it possible to have a transparent font color, or to match it to the background colour of the line it's on?
If it's invalid for you to have 0s in the your results, don't refomat the colour to hide them, rewrite the query to exclude them / replace them with a blank or null value. If 0 is a valid result, then you shouldn't hide it, even if it looks ugly.

How to darken colors opacity in Hex code

After reading this link, I know how to lighten the opacity of a color.
But is there any method to darken the color's opacity?
If by "darken opacity" you mean moving from a clear blue to a dark blue, and if your question concern HTML/CSS (and not Android like your link suppose) you could use HSL Colors instead of using RGB.
Here is a link where you can find out how tu use CSS colors : http://www.w3schools.com/cssref/css_colors_legal.asp
/** This is CSS **/
#light {background-color:hsl(120,100%,25%);}
#normal {background-color:hsl(120,100%,50%);}
#dark {background-color:hsl(120,100%,75%);}
/** 3rd value reprensent black value **/
But if you just mean make your color more/less opaque, you could just use Alpha (Available in RGBA in CSS for example)
You can find out how to use RGBA in the 1st link to!
/** This is CSS **/
#opaque {background-color:rgba(0,255,0,1);}
#transparant {background-color:rgba(0,255,0,0.5);}
/** The 4th value reprensent alpha/opacity and goes from 0 (transparant) to 1 (opaque)
Hope it helped you
The way to darken a particular colour is to keep the RBG ratios the same but just lower the numbers, if you look at RBG for black its 0,0,0 so by being closer to 0 you get a darker colour.
Hope that sheds a bit of light on how RBG colour system works.

assign a variable to font color in JLabel

I want to change the color of text in the JLabel. For this purpose, I used HTML format but my problem is how can I assign a variable to the font color? Here is a sample code:
`
ArrayList<Color> myColor=new ArrayList<Color>();
...
for(int i=0;i<myColor.size(); i++){
myLabel.setHorizontalTextPosition(JLabel.LEFT);
myLabel.setHorizontalAlignment(JLabel.LEFT);
myLabel.setText(String.format("<html>%s<font color=:"myColor.get(i)+">%s</font></html>", myLabel.getText(),"new text");
} `
When I want to run this code, the color is considered black for all of text but I want to assign different color to different text in JLabel.
It should be better to mention that I had some text in that JLabel. Using setForeground commend results in changing the color of other text. I want to change the color of one text while others have remained in their own color and because of that I used HTML format.
Any help will be really appreciated!
Try using setForeground(). This method will set the font color of your label. For example myLabel.setForeground(Color.ORANGE); will set the font color to orange.

Can you change the default color for selected text in MS Access?

I haven't found an existing post about this so I'll give it a shot.
I'd like to know if there is a way to change the default highlight color for selected text? Right now, whenever I invoke .SetFocus on a field, Access "selects" the contents of the field. The color it uses is black, and makes the data very hard to see. Is there a way to change that color?
Access simply swaps the background and foreground color as its means of highlighting text in a text box. As far as I know there is no way to change this behavior.
Obviously you can change the foreground and background colors themselves, but there is no separate "highlight" color that you can set independent of the foreground/background.
Although this isn't specificity for List Boxes I still think it is worth a note that List Boxes work slightly different (not sure why... maybe a different developer!) the selected row on a list box will inverts the colour of the background and foreground separately instead of swapping them.
For example if you had a light blue text on a white background normally the selected row would be a red text on a black background. The white inverts to black and the light blue inverts to red.
Or if you had
Not sure which method I like better but it would be nice if they where the same! Makes UI's look a lot better when they are consistent throughout the form!
Sometimes this problem can be caused by using a transparent text box on a background that is the same or similar color (with contrasting-colored text). Make sure you have the text box back color set to a same/similar color as the background.
Basically, you need the text box back color to contrast with the text. When highlighted, the highlight will be a contrasting color to the text box background color.