From: Kevin W. <kw...@co...> - 2014-06-29 05:46:58
|
On 6/28/14, 11:38 PM, Trevor Williams wrote: > Using the X11-based version of wish, this works as expected when I use the following code snippet: > > tablelist::tablelist .tl -background [ttk::style lookup TLabel -background] > > with a clam theme, the background turns a shade of grey. However, when I use the same code snippet on Mac OSX (version 8.5.9 on Mavericks), the background is white. In doing some basic debugging, I found that the return value of the forementioned ttk::style lookup call is a value of "systemWindowBody". Making the following call: > > winfo rgb . systemWindowBody > > returns an integer value of white. However, when a ttk::label is displayed to the window, its color is a shade of grey. > > Can anyone tell me what is going on here and what I might be doing wrong? I don't think the Mac-native system colors can be accurately specified in RGB; you may simply be better off wrapping the tablelist configuration call in something like this: if [tk windowingsystem ] = eq "aqua" { .tl configure -background systemWindowBody } or whatever you want to use. See the "colors" man page for a list and experiment. --Kevin -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com http://www.wtmobilesoftware.com |