I'm new to KDE and try to design a website using the Keramik theme. I got
the kdelibs package and found the Keramik pics in the in the keramik
sub-folder of the kstyles one. As I couldn't find any information about KDE
themes on the official website, specially about drawing KDE widgets, I had
to guess. Let's take an example to understand how this all works.
I chose to draw a push button. A push button has 3 states : default, hovered
and pressed. This widget is drawn from 9 pics :
pushbutton-[cbt]{1}[clr]{1}.png. For example the top left corner pic of a
push button is named pushbutton-tl.png. And its hovered and pressed states
are named pushbutton-hov-tl.png and pushbutton-pressed-tl.png. So from these
3 sets of 9 pics, I'm able to paint/draw push buttons on my website.
From the keramik.cpp source file, I also found out that painting widgets was
far more complex that taking 9 pics and merging them together... What I
don't understand yet, it makes the KDE/Keramik widgets resizable. The pics I
used are « static » pics, it means the push buttons I can paint are not
resizable. The exact size of the push button I got is 118x27 pixels. No
more, no less.
Does it mean that KDE widgets can't be resized ? Specially to help visually
impaired people ? It's a question of accessiblity. Allowing users to resize
widgets help them to better enjoy their desktop experience. Resizing widgets
imply resizing text too. The bigger, the better :).
So not being able to resize widgets can be annoying for people who have a
1600x1200 desktop for example, tiny buttons everywhere...
And my problem is that I want to use resizable widgets on my website. Let's
say flexible widgets. Because users can decide to change the text size of
the whole website by wheeling the middle mouse button for example ! So it
would break my beautiful KDE-like push buttons. And trust me, it breaks it
:). The only solution would be to use static/fixed push buttons, but from
the Keramik sources, it seems it uses an other approach.
An thoughts doctor ?
Thanks,
JM
> Does it mean that KDE widgets can't be resized ? Specially to help
> visually impaired people ? It's a question of accessiblity. Allowing
> users to resize widgets help them to better enjoy their desktop
> experience. Resizing widgets imply resizing text too. The bigger, the
> better :).
That's the first time I hear that. When I resize a widget/dialog I
expect the widgets displaying text to get bigger to have more space to
display the information or to enlarge the text area where I can write.
Do you really mean that setting i.e. an editor to fullscreen should
enlarge the fonts? If so, then I would use your program only once and
then never again.
Greetings
P.J.
--
Peter-Josef Meisch
reply to newsgroup, mail not read
No I never said resizing a dialog or window, I only talked about resizing
widgets. These features are available for accessible desktop environment and
accessible theme. It exactly works the same way as when you resize text from
your web browser.
JM