From: Daniel A. S. <da...@us...> - 2008-07-22 17:04:29
|
Salut David, On 22/07/2008, at 16:21, David Zolli wrote: > I'm trying ttk::style and font command with aqua theme and I got > something weird: > > % ::ttk::style lookup TButton -font > System > % font configure System > named font "System" doesn't exist > > I know changing aqua default font is bad, but if I want to do it > anyway, what should I do ? the "system", "application" and "menu" native font names should be avoided now that we have named fonts, instead use the TIP145 standard named fonts "TkDefaultFont", "TkTextFont" and "TkMenuFont" or the equivalent platform named fonts "systemSystemFont", "systemApplicationFont" and "systemMenuItemFont" (c.f. font.n for the full list of named fonts). That ttk/aquaTheme.tcl was still using the "system" native font name was a bug, I've just committed a fix that replaces that name by "TkDefaultFont", and uses system color names instead of hardcoded color values. Cheers, Daniel -- ** Daniel A. Steffen ** ** <mailto:da...@us...> ** |