I'd like to change the urlbar colors especially the ugly blue highlight which doesn't fit well with the colors I have in my theme. The url's are also blue, which I don't like.

How to change the urlbar richtext results colors?
21 posts
• Page 1 of 2 • 1, 2
Hello!
I'd like to change the urlbar colors especially the ugly blue highlight which doesn't fit well with the colors I have in my theme. The url's are also blue, which I don't like. ![]() for the urls (and also the searchbar if you want):
Thanks for the tip. Meanwhile I found these worked for me:
What I would really like to know now is how can I use the the color that's given by the system (windows 8). AKA the color of the titlebar, which changes when my desktop wallpaper changes. I'm hoping there's a special -moz-Something color for this (like -moz-Dialog). I could work around this when I was toying with the sidebar and tabs by by going up the hierarchy and setting the parents' colors' to transparent until I reached this color. But apparently whatever is on top here is colored black or something dark colored. Well, I ran out of ideas.
Someone suggested:
or
It works on #urlbar for example but for some reason not for the elements I want to change (.autocomplete-richlistitem, .autocomplete-richlistitem[selected="true"]) This is the code I'm using:
But how? That doesn't seem to be valid here. The html part specifically. Something about an invalid namespace prefix. (The error is localized for me) If you are building a theme based on the default theme, then the CSS file that contains those should already be correctly namespaced. If you are attempting to override the default theme or attempting to build from scratch, then you need to make sure that the CSS files are correctly namespaced at the top:
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/
That's it ![]() ![]()
Just put the following (or your variation of) above the namespace line in your userChrome.css -
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.) Thanks for the tips!
I'll try them out.
Okay, now it works. But I think there's a misunderstanding, I have problems with changing change the the highlight/background colors of the results.
This works also. (I see this way it also affects other selected text, which might be good) Though My main problem. PS: Okay, sorry I wasn't clear enough in my first post. The colors of the urlbar [url]results[/url] are my main problem. I actually managed to change them with the CSS I posted in my second post. Which brought up my other big problem: I want to base the colors on the system color or whatever the name of the color of the titlebar is in windows. Which the default theme uses on some level. I could also set other UI elements (tabs, sidbar) to depend on this color by making them and their parents transparent. But this approach didn't work with the urlbar results, they just got black. So the problem I can't solve is how get this "titlebar color" or whatever to the urlbar results. For clarity this how my UI colors looks: (The sidebar, the normal tabs' color, and urlbar background color I made (semi)transparent to get a sort of unified look) ![]() ![]()
Yep, that's how it works. I started by coding it to be url/searchbar specific and then realised that if an OS selected background/text colour is crap (most are) then really they should all be changed, so that's what I did. However, I can see now that wasn't your main problem, next time I'm in Firefox I'll have a look at how I've done all that, it's not hard to do, as I recall. But, I don't really *do* native OS effects in my stuff, I override everything. So a more 'native' look themer will probably be able to advise you better on your particular requirements. 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.)
There you are out of luck. There is a very old bug out on getting "Aero" colors which no Mozilla folks (or anyone else apparently judging by online discussions) could figure out. I figured out how to do the maths to extract the colors a few years ago, but now no-one can be bothered to build a patch for it (because below).
Nope. What the default theme does is apply transparencies on top of the titlebar itself. Because they think that's especially clever, they won't bother to to actually extract the real color. 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/
Ouch. That's rather sad. So I'm guessing you can channel the color to the urlbar results is because they're not "on" the window but overlaid over other ui elements. (I'm guessing this color extraction of yours wasn't in the JS, CSS realm, but in the C/C++ source. AKA I can't use an addon/userscript/userstyle to get it.)
21 posts
Page 1 of 2 • 1, 2
Who is onlineUsers browsing this forum: No registered users and 1 guest |
![]() |