MozillaZine

change textbox highlight color

Discuss application theming and theme development.
Kevin Jones
 
Posts: 625
Joined: August 12th, 2009, 10:22 am

Post Posted June 26th, 2013, 8:28 am

Hello,

Is it possible to change highlight color in textboxes? It seems that the themes that I have looked at never do that, even with white text. Is that because it is not possible?

If it is not possible, can anyone tell me why?

Thanks,

Allasso

Frank Lion

User avatar
 
Posts: 20816
Joined: April 23rd, 2004, 6:59 pm
Location: ... The Exorcist....United Kingdom

Post Posted June 29th, 2013, 8:10 am

Allasso wrote:Hello,

Is it possible to change highlight color in textboxes? It seems that the themes that I have looked at never do that, even with white text. Is that because it is not possible?

If it is not possible, can anyone tell me why?

Thanks,

Allasso

Yeah, it's possible. Which textboxes were you thinking of, urlbar or something?

There's no real reason why we don't change them, but just let them default to OS system default. Question has never come up before really.
Metal Lion latest SeaMonkey & Thunderbird Themes - Sea Monkey and Silver Sea Monkey
"The only thing necessary for the triumph of evil, is for good men to do nothing." - Edmund Burke (attrib.)

patrickjdempsey

User avatar
 
Posts: 23734
Joined: October 23rd, 2008, 11:43 am
Location: Asheville NC

Post Posted June 30th, 2013, 7:42 pm

Allasso wrote:It seems that the themes that I have looked at never do that, even with white text.


It sounds to me like you are talking about Personas and not REAL themes. Most themers building real themes are careful to make sure all text is legible. However in Personas, there is only one text color, which is then used for the whole "skin". It's one of the many rather silly problems with Personas that could have been fixed my making the Personas files about 1Kb bigger.
Tip of the day: If it has "toolbar" in the name, it's crap.
What my avatar is about: https://addons.mozilla.org/en-US/seamonkey/addon/sea-fox/

Kevin Jones
 
Posts: 625
Joined: August 12th, 2009, 10:22 am

Post Posted July 15th, 2013, 6:43 am

Wow, I'm really sorry, I hadn't noticed these replies. Apparently my email notification has been turned off.

patrickjdempsey wrote:It sounds to me like you are talking about Personas and not REAL themes. Most themers building real themes are careful to make sure all text is legible. However in Personas, there is only one text color, which is then used for the whole "skin". It's one of the many rather silly problems with Personas that could have been fixed my making the Personas files about 1Kb bigger.


No, I am talking about real themes, Nasa Night Launch being one of several. However, I just discovered that this is the case only on Mac, I hadn't checked on Windows before. eg, on Mac, the themes I am referring to all use the default highlighting.

Frank Lion wrote:Yeah, it's possible. Which textboxes were you thinking of, urlbar or something?

There's no real reason why we don't change them, but just let them default to OS system default. Question has never come up before really.


How do you do that? I suppose I can start dissecting a Windows theme that does that, but a synopsis, pointers to APIs, or whatever would be appreciated.

patrickjdempsey

User avatar
 
Posts: 23734
Joined: October 23rd, 2008, 11:43 am
Location: Asheville NC

Post Posted July 18th, 2013, 6:22 pm

The only real hope is to find a theme that DOES do this and then *hopefully* the author put the code in searchbar.css. I'm guessing it requires a moz-appearance:none! and then custom code.... like everything else with dark themes.
Tip of the day: If it has "toolbar" in the name, it's crap.
What my avatar is about: https://addons.mozilla.org/en-US/seamonkey/addon/sea-fox/

Return to Theme Development


Who is online

Users browsing this forum: No registered users and 1 guest