SU Menu Font and Size
-
How to find out the font used by SU menus? I want to use the same in a WebDialog for consistency.
-
Query the system for the font settings. Somewhere in the registry.
-
HKEY_CURRENT_USER\Control Panel ?
-
Never mind all that. I just remembered, since it's for webdialogs - there is CSS keywords for this: http://www.w3.org/TR/CSS2/fonts.html#font-shorthand
You even got a list of system colours: http://www.w3.org/TR/CSS21/ui.html#system-colors
-
Ah!
body { font; menu; }seems to work. Is it portable?
-
Think so. It's part of the W3C standard - think it work across platforms. Though I've never used these keywords outside pure Windows environment so I don't know how well the support is. Will need to do some testing. I got an OSX and Linux box...
-
@thomthom said:
Will need to do some testing. I got an OSX and Linux box...
Here's a test page for the SystemColors:
http://samples.msdn.microsoft.com/workshop/samples/author/dhtml/colors/sys_colors.htm
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement