|
From: Joe E. <jen...@fl...> - 2006-11-23 17:24:52
|
Georgios Petasis wrote:
>
> Thank you for clarifying the situation. I had suspected this also my
> self, and I have even tried
>
> style configure TLabelframe -background [currentThemeColour -background]
>
> my self. It partially solves the problem: in Qt styles that use a pixmap
> background, the solution does not work.
>
> Is there a problem that the labeframe widget has a composite text
> element? Can it be split into a background and a plain text element? The
> the text element will remain the regular one, and all background
> painting to be done on the text background element?
That's the idea.
One thing to watch out for is that the ttk::labelframe widget is
looking for an element named "*.text" -- so TileQT's "Labelframe.text"
element should actually be a "background fill" element.
In the Labelframe layout, add a "real" text element as a child --
something like:
style layout TLabelframe {
Labelframe.border
Labelframe.text -children { Labelframe.labeltext }
}
The best way to define the "Labelframe.labeltext" element is
to copy it from the default theme:
style element create Labelframe.labeltext from default text
--Joe English
jen...@fl...
|