As I am a simple user converted to wannabe programmer I need help from the qt gurus to target some specific elements of the ui. I'vd done allot of trial and error but some elements just elude me.
Some background:
Also about the outline of the text in a overlay widget./* The OverlayTabWidget is named as OverlayLeft, OverlayRight, OverlayTop, OverlayBottom.
To customize for each overlay docking site, use the following selector
Gui--OverlayTabWidget#OverlayLeft {}
*/
Elements that I need help with:The stylesheets enable outline effect for all four docking site, which is probably not desirable for everyone. You can copy the built-in stylesheet, and modify it to customize each docking site. The configuration section is here. 'effectWidth' and 'effectHeight' controls the outline thickness. If you want shadow, then set them to 0, and add 'effectOffsetX/Y'.
Also, be aware that the effect is applied to everything inside the overlay widgets, not just the text, and it really only works with a complete transparent background.
1- we now have the option to set text and icon size for the tree view but when doing that we loose the vertical padding between the elements. How can I set the vertical padding between the text rows? Also I would like to experiment with text background for individual "text boxes" in the tree. I'vd tried QTreeView::item{background-color: gray} but that didn't help.
2- In the comboview how can I choose the text color for the individual rows? Also the rows are alternate colors. How can I style the individual row color and transparency?
3- I would like to style the highlighted elements in the screenshot below. What are the selectors for the individual elements?
4- at the moment the overlayed task panel styling is a mess. I hope to gain enough knowledge with the first 3 points to start to tackle next the task panel. If I get stuck I'll ask for help again.
This is my overlay stylesheet atm:
Code: Select all
Gui--OverlayTabWidget#OverlayRight {
qproperty-effectColor: rgba(50, 50, 50, 250);
qproperty-effectBlurRadius: 0.0;
qproperty-effectOffsetX: 0.0;
qproperty-effectOffsetY: 0.0;
qproperty-effectWidth: 1.0;
qproperty-effectHeight: 1.0;
qproperty-enableEffect: 1;
}
Gui--OverlayTabWidget#OverlayRight {
color: black;
}
Gui--OverlayTabWidget::pane#OverlayRight {
color: black;
background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 rgba(109, 109, 109, 150), stop:1 rgba(151, 151, 170, 50) )
}
QHeaderView {
color: black;
/* color: rgba(200,200,200,0.5);*/
}
QHeaderView::section {
background-color: transparent;
width: 0px;
margin: 0px;
background-color: rgba(0,0,0,0.1);
}
/*==================================================================================================
Tree and list views
==================================================================================================*/
QTreeView {
color: white;
background-color: transparent;
}
QScrollBar:vertical {
background-color: transparent;
width: 0px;
margin: 0px;
}
/* The OverlayTabWidget is named as OverlayLeft, OverlayRight, OverlayTop, OverlayBottom.
To customize for each overlay docking site, use the following selector
Gui--OverlayTabWidget#OverlayLeft {}
*/
Gui--OverlayTabWidget#OverlayLeft {
qproperty-effectColor: rgba(50, 50, 50, 250);
qproperty-effectBlurRadius: 0.0;
qproperty-effectOffsetX: 0.0;
qproperty-effectOffsetY: 0.0;
qproperty-effectWidth: 1.0;
qproperty-effectHeight: 1.0;
qproperty-enableEffect: 1;
}
QTabBar {
color: black;
border : none;
}