Page 1 of 1

Status Bar Styling Issue

Posted: Tue Jun 19, 2012 9:34 pm
by JohnFredC
For the most part, my personal dark theme works well for MP. However, I have been unable to remove the boxes around the various fields displayed in the status bar.

Here is the issue:

Image

See the boxes around the fields displayed in the status bar? They look funny, don't they?

Apparently the label controls on the status bar are "3D". IMO they should be "2D". Ideally, I would want no borders around them whatsoever.

In the QT style sheet, how does one specify that a label control should be displayed without the 3D attribute?

Thanks!

Re: Status Bar Styling Issue

Posted: Tue Jun 19, 2012 10:30 pm
by XnTriq

Code: Select all

QStatusBar::item {
margin: 20px;
border: 0;
background: yellow;
}
How's that, John?
Qt Style Sheets Reference ([url=http://www.qt-project.org/doc/qt-4.8/stylesheet-reference.html#qstatusbar-widget]QStatusBar[/url]) wrote:Supports only the background property. The frame for individual items can be style using the ::item subcontrol.

See Customizing QStatusBar for an example.
<!-- EDIT -- //

As it turns out, one has to add padding…

Code: Select all

QStatusBar {
background: fuchsia;
}
QStatusBar::item {
background: lime;
}
QStatusBar QLabel {
padding: 10px;
border: 0;
background: yellow;
}
… or margins to QStatusBar QLabel:

Code: Select all

QStatusBar {
background: fuchsia;
}
QStatusBar::item {
background: lime;
}
QStatusBar QLabel {
margin: 10px;
border: 0;
background: yellow;
}
// -- EDIT -->

Re: Status Bar Styling Issue

Posted: Wed Jun 20, 2012 12:26 am
by JohnFredC
Thank you very much XnTriq! I'll try that out.

BTW those color choices are quite... interesting!
  • Fuschia
    Yellow
    Lime
uh-huh! :P

Re: Status Bar Styling Issue

Posted: Wed Jun 20, 2012 12:45 am
by XnTriq
JohnFredC wrote:BTW those color choices are quite... interesting!
What can I say — I'm a retro kinda guy, and this is my neon-text-marker/sore-thumb color scheme for better contrast during testing :mrgreen:

Re: Status Bar Styling Issue

Posted: Wed Jun 20, 2012 12:46 am
by JohnFredC
Hi XnTriq!

The following worked great:

Code: Select all

QStatusBar {
 background: transparent;
}
QStatusBar::item {
margin: 1px;
border: 0;
background: transparent;
}
QStatusBar QLabel {
 margin: 1px;
 border: 0;
 background:  transparent;
}
Image

Thanks again!

Re: Status Bar Styling Issue

Posted: Fri Jul 06, 2012 1:30 pm
by XnTriq
John, please update the downloadable version your theme with all the improvements since 2010 on occasion.
JohnFredC ([url=http://newsgroup.xnview.com/viewtopic.php?p=89171#p89171]Qt Stylesheet Snippet Repository[/url]) wrote:If anyone is interested, here is a link to a zip of my QSS files ("beta") for MP (as of 12/11/10):

JohnFredC Theme for MP

And a full-size preview (obviously a "work in progress"):

Image

Re: Status Bar Styling Issue

Posted: Fri Jul 06, 2012 1:46 pm
by JohnFredC
Hi XnTriq

I promise to do so but...

...still working on it. Haven't even addressed the Settings dialog yet.

"Soon", however. 8)

Re: Status Bar Styling Issue

Posted: Sun Jul 15, 2012 6:30 pm
by XnTriq
JohnFredC wrote:I promise to do so but...

...still working on it. Haven't even addressed the Settings dialog yet.

"Soon", however. 8)
Keep us posted!

While we're at it: Do you know what the following selectors (\UI\style_sheet.qss @ line #700) are for?
  • QToolBar#UIPanosView_ToolBar
  • QToolBar#UIGroupsView_ToolBar
  • QToolBar#UIGroup_ToolBar
  • QToolBar#UIPano_ToolBar
Could these be leftovers from AutoPano?
xnview ([url=http://newsgroup.xnview.com/viewtopic.php?p=88796&hilit=autopano#p88796]0.32 for win/linux/mac[/url]) wrote:Here is a snapshot of 0.32 + dark style

[...]

Thanks to the Autopano team!!
Now I see why you find my choice of colors “interesting”: You have a soft spot for fuchsia & lime, too (-;

Re: Status Bar Styling Issue

Posted: Mon Jul 16, 2012 12:04 pm
by xnview
XnTriq wrote: While we're at it: Do you know what the following selectors (\UI\style_sheet.qss @ line #700) are for?
  • QToolBar#UIPanosView_ToolBar
  • QToolBar#UIGroupsView_ToolBar
  • QToolBar#UIGroup_ToolBar
  • QToolBar#UIPano_ToolBar
Could these be leftovers from AutoPano?
not for XnViewMP, i remove them

Re: Status Bar Styling Issue

Posted: Mon Jul 16, 2012 5:00 pm
by XnTriq
xnview wrote:not for XnViewMP, i remove them
Thanks for confirming, Pierre (-:
I'll keep looking for more.