From: Joe English on
lyon wrote:
> [...]
> We have developped a theme with Tile. This theme uses
> a lots of small icons and graphical elements than are
> almost all as small as borders or lines.
>
> The overall result under linux is nice and pretty fast.
>
> But under Windows, we have to wait for something like 20-30s for the
> initial drawing of the main window and each time we switch
> from a panel inside the notebook [...]
>
> We do not use a lots of photos or canvas, just little pixmaps but
> almost in every widget.


It's best to use large pixmaps for background patterns.
For instance even if it's only a 2x2 pattern, you should
create a (say) 256x256 pixmap, fill it with the pattern,
and use that to generate the background element.

It's faster to draw a big image a few times than it is
to draw a small image many times. The bigger the
"stretchy" part of the image element, the faster
things go.


--Joe English
From: pfradin on

> It's best to use large pixmaps for background patterns.
> For instance even if it's only a 2x2 pattern, you should
> create a (say) 256x256 pixmap, fill it with the pattern,
> and use that to generate the background element.
>
> It's faster to draw a big image a few times than it is
> to draw a small image many times.  The bigger the
> "stretchy" part of the image element, the faster
> things go.
>
> --Joe English

I agree with you in theory but in fact we define Labelframe.border
with :

ttk::style element create Labelframe.border image $I(border) \
-border 4 \
-padding 4 \
-sticky news

to have a pretty rounded Labelframe. 'border' image is a 15x19 GIF. If
I remove 'image' property in this 'element create' command, theme will
be quick ... but the appearance is bad (dark greyed instead of white,
all buttons are squared instead of rounded...).

--Patrick Fradin