SunQuest
           CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 25th, 2003, 06:22 PM
jerom jerom is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: May 2003
Posts: 1,014 jerom User rank is Corporal (100 - 500 Reputation Level)jerom User rank is Corporal (100 - 500 Reputation Level)jerom User rank is Corporal (100 - 500 Reputation Level)jerom User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 1 Day 17 h 34 m 25 sec
Reputation Power: 9
referencing system colors/fonts from css

I'm looking for a way to reference the used system colors (and fonts) in css.

Here's the situation: I've create some context menu's (the right-click menu's in a browser). The browser generated context menu's, say when right-clicking on a link, show you some options using a particular style: colors, fonts, padding, etc. I'd like to be able to use these already defined/installed style definitions. But how do you reference these in a stylesheet?

I know I can use a color picker to figure out the color scheme of a default browser look. But, since a lot of people use skins or themes, I'd like to use the colors and fonts used in the active skin, to keep the context menu in line with the rest of the look and feel.

Does anyone know a way how to read or use these particular style settings?

Any suggestion, tip, link is appreciated.

Jeroen

Reply With Quote
  #2  
Old May 26th, 2003, 01:59 AM
MJEggertson MJEggertson is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jan 2002
Location: Seattle WA
Posts: 863 MJEggertson User rank is Corporal (100 - 500 Reputation Level)MJEggertson User rank is Corporal (100 - 500 Reputation Level)MJEggertson User rank is Corporal (100 - 500 Reputation Level)MJEggertson User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 22 sec
Reputation Power: 8
You're looking for the CSS2 system colors, a collection of about two dozen keywords that describe colors defined by the user's system.

Ref: system colors @w3c.org

Reply With Quote
  #3  
Old May 27th, 2003, 09:19 AM
jerom jerom is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: May 2003
Posts: 1,014 jerom User rank is Corporal (100 - 500 Reputation Level)jerom User rank is Corporal (100 - 500 Reputation Level)jerom User rank is Corporal (100 - 500 Reputation Level)jerom User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 1 Day 17 h 34 m 25 sec
Reputation Power: 9
Thanks, that's the list I was looking for!

However, it looks as if Mozilla skins/themes don't set these pre-defined colors, or use more than these. I haven't thoroughly checked it yet, but I'll get there...

Jeroen

Reply With Quote
  #4  
Old May 27th, 2003, 02:10 PM
MJEggertson MJEggertson is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jan 2002
Location: Seattle WA
Posts: 863 MJEggertson User rank is Corporal (100 - 500 Reputation Level)MJEggertson User rank is Corporal (100 - 500 Reputation Level)MJEggertson User rank is Corporal (100 - 500 Reputation Level)MJEggertson User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 22 sec
Reputation Power: 8
You're right, the skins won't set the colors, because they're properties of the operating system, not the browser. That is, all those colors are the default ones that any application should use if they don't wish to provide their own color scheme. If an application is skinned or themed in any way (as is mozilla), those color properties won't be affected.

They're most useful when writing application level programs (that is, executables) that use web-pages. You can write pages that inherit their colors from the operating system, making the pages more seamless with the rest of the operating system.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > referencing system colors/fonts from css


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway