Hello,

I just committed CSS support to style the WengoPhone. This means Qt 4.2 is now 
required to build the 2.2 branch.

CSS support lets you style the application very easily, without rebuilding the 
WengoPhone. Here is how it works: assuming you have installed a recent 
WengoPhone 2.2 on your machine, put the attached css file in the css/ subdir.

Restart the WengoPhone, you should know enjoy my feeble attempt at a 
deathvader softphone :-).

For extra nice buttons, copy the file pics/chat/chat_send.png to 
pics/button.png, because (at least on my machine) Qt can't load images from 
CSS if they contain the '_' character.

Qt 4.2 let you style quite a few widgets, but you need Qt 4.3 to be able to 
style all of them. You also need Qt 4.3 for styling to work on MacOS X.

For more information about Qt stylesheets, visit this page:
http://doc.trolltech.com/qt/stylesheet

Aurélien
* {
	background-color: black;
	color: white;
	selection-background-color: #d00;
}

QToolTip {
	border: 1px solid red;
	background-color: #d00;
	color: black;
	padding: 4px;
	opacity: 200;
}

QMenuBar::item {
	border: none;
	padding: 4px;
}

QMenu, QMenuBar::item:hover {
	border: 1px solid red;
}

QMenuBar::item:on {
	border-bottom: 1px solid none;
}

QLineEdit, QComboBox[modifiable="false"], QListView, QTreeView {
	background-color: #eee;
	border: 1px solid red;
	color: black;
}


/*
 * For some unknown reason, Qt 4.2.3 can't load images for CSS if they contain
 * the '_' character. To get custom pushbuttons, copy pics/chat/chat_send.png
 * to pics/button.png.
 */
QPushButton {
	border-image: url(":/pics/button.png") 8 8 8 8 repeat stretch;
	border-width: 8px;
}

QPushButton:hover {
	color: red;
}

QPushButton:pressed {
	padding-top: 2px;
	padding-left: 2px;
}
_______________________________________________
Wengophone-devel mailing list
[email protected]
http://dev.openwengo.com/mailman/listinfo/wengophone-devel

Reply via email to