Status Bar Styling Issue

Plug-ins, add-ons, skins, icons, templates and other downloads. Contributions are welcome.

Moderators: XnTriq, helmut, xnview

User avatar
JohnFredC
XnThusiast
Posts: 2010
Joined: Wed Mar 17, 2004 8:33 pm
Location: Sarasota Florida

Status Bar Styling Issue

Post 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!
John
User avatar
XnTriq
Moderator & Librarian
Posts: 6389
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Status Bar Styling Issue

Post 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 -->
User avatar
JohnFredC
XnThusiast
Posts: 2010
Joined: Wed Mar 17, 2004 8:33 pm
Location: Sarasota Florida

Re: Status Bar Styling Issue

Post 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
John
User avatar
XnTriq
Moderator & Librarian
Posts: 6389
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Status Bar Styling Issue

Post 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:
User avatar
JohnFredC
XnThusiast
Posts: 2010
Joined: Wed Mar 17, 2004 8:33 pm
Location: Sarasota Florida

Re: Status Bar Styling Issue

Post 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!
John
User avatar
XnTriq
Moderator & Librarian
Posts: 6389
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Status Bar Styling Issue

Post 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
User avatar
JohnFredC
XnThusiast
Posts: 2010
Joined: Wed Mar 17, 2004 8:33 pm
Location: Sarasota Florida

Re: Status Bar Styling Issue

Post 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)
John
User avatar
XnTriq
Moderator & Librarian
Posts: 6389
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Status Bar Styling Issue

Post 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 (-;
User avatar
xnview
Author of XnView
Posts: 44936
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Status Bar Styling Issue

Post 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
Pierre.
User avatar
XnTriq
Moderator & Librarian
Posts: 6389
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Status Bar Styling Issue

Post by XnTriq »

xnview wrote:not for XnViewMP, i remove them
Thanks for confirming, Pierre (-:
I'll keep looking for more.