You are not logged in.



#1 2009-11-04 13:06:12

fma38
Moderator
From: Grenoble, France
Registered: 2005-12-07
Posts: 6038
Website

[Papywizard v2] Customize GUI look'n'feel with CSS

Ok, here is a CSS example to have huge fonts to fill a 1920x1200 screen:

Code:

* {
     font: 50px;
 }

QMenuBar, QMenu {
    font: 25px;
}

#setYawCorner0PushButton,
#setPitchCorner0PushButton,
#setYawCorner1PushButton,
#setPitchCorner1PushButton,
#yawFovLabel,
#pitchFovLabel,
#yawNbPictsLabel,
#pitchNbPictsLabel,
#yawRealOverlapLabel,
#pitchRealOverlapLabel,
#yawResolutionLabel,
#pitchResolutionLabel,
#yawHeadPosLabel,
#pitchHeadPosLabel,
#currentIndexLabel,
#yawCurrentIndexLabel,
#pitchCurrentIndexLabel,
#nextIndexLabel,
#yawNextIndexLabel,
#pitchNextIndexLabel {
    font: bold;
}

QPushButton {
    height: 100px;
}

QPushButton#shootPushButton {
    height: 150px;
}

You can adapt it for other sizes. It is also possible to change the colors of buttons, line edit, spin boxes and so. Full documentation is here:

http://doc.trolltech.com/4.5/stylesheet-syntax.html

Using the class name of the widget allow you to change their attributes globally (like I did for the QPushButton). By giving the widget internal name (the one I defined in Papywizard), you can be more precise. Feel free to ask for these names.

If you have specific needs, feel free to post (do not hesitate to send screenshots to show what you would like to obtain).


Frédéric

Canon 20D + 17-40/f4 L USM + 70-200/f4 L USM + 50/f1.4 USM + Tokina 10-17 3.5-4.5 AF DX Fisheye
Merlin/Orion panohead + Papywizard on Nokia N800 and HP TC-1100

Offline

 

#2 2009-11-04 13:17:16

[bo]
community overseer
From: Bulgaria
Registered: 2006-05-05
Posts: 1830

Re: [Papywizard v2] Customize GUI look'n'feel with CSS

Why not specify the font size in points - a relative unit that will scale, depending on the screen size?


Some of my panoramas, posted in the Autopano Pro flickr group.

Offline

 

#3 2009-11-04 13:19:30

AlexandreJ
Absolute beginner
From: Challes les eaux, France
Registered: 2005-11-14
Posts: 7629
Website

Re: [Papywizard v2] Customize GUI look'n'feel with CSS

So true. You can do that with Autopano too by launching the executable with that line :

Code:

Autopano -stylesheet=absolute path to css

Autopano with 50px font doesn't look well ...

Offline

 

#4 2009-11-04 13:30:22

fma38
Moderator
From: Grenoble, France
Registered: 2005-12-07
Posts: 6038
Website

Re: [Papywizard v2] Customize GUI look'n'feel with CSS

[bo] wrote:

Why not specify the font size in points - a relative unit that will scale, depending on the screen size?

Well I'm not familiar at all with CSS big_smile

Feel free to use this thread for all Papywizard CSS related stuff (questions, propositions, examples...).


Frédéric

Canon 20D + 17-40/f4 L USM + 70-200/f4 L USM + 50/f1.4 USM + Tokina 10-17 3.5-4.5 AF DX Fisheye
Merlin/Orion panohead + Papywizard on Nokia N800 and HP TC-1100

Offline

 

#5 2009-11-04 13:31:24

fma38
Moderator
From: Grenoble, France
Registered: 2005-12-07
Posts: 6038
Website

Re: [Papywizard v2] Customize GUI look'n'feel with CSS

I made a test using points instead of pixels, and it does not seem to work fine (some widgets don't change their size, so the label is unreadable)...


Frédéric

Canon 20D + 17-40/f4 L USM + 70-200/f4 L USM + 50/f1.4 USM + Tokina 10-17 3.5-4.5 AF DX Fisheye
Merlin/Orion panohead + Papywizard on Nokia N800 and HP TC-1100

Offline

 

#6 2009-11-19 00:26:43

fma38
Moderator
From: Grenoble, France
Registered: 2005-12-07
Posts: 6038
Website

Re: [Papywizard v2] Customize GUI look'n'feel with CSS

Klaus, I invite you to post a simple drawing of the GUI, with the colors you would like, si I can try to write a CSS for you.


Frédéric

Canon 20D + 17-40/f4 L USM + 70-200/f4 L USM + 50/f1.4 USM + Tokina 10-17 3.5-4.5 AF DX Fisheye
Merlin/Orion panohead + Papywizard on Nokia N800 and HP TC-1100

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson