Status Bar Styling Issue

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

Moderators: XnTriq, xnview

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

Status Bar Styling Issue

Postby JohnFredC » Tue Jun 19, 2012 9:34 pm

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: 4970
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Status Bar Styling Issue

Postby XnTriq » Tue Jun 19, 2012 10:30 pm

Code: Select all

QStatusBar::item {
margin: 20px;
border: 0;
background: yellow;
}

How's that, John?

Qt Style Sheets Reference (QStatusBar) 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

Postby JohnFredC » Wed Jun 20, 2012 12:26 am

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: 4970
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Status Bar Styling Issue

Postby XnTriq » Wed Jun 20, 2012 12:45 am

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

Postby JohnFredC » Wed Jun 20, 2012 12:46 am

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: 4970
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Status Bar Styling Issue

Postby XnTriq » Fri Jul 06, 2012 1:30 pm

John, please update the downloadable version your theme with all the improvements since 2010 on occasion.

JohnFredC (Qt Stylesheet Snippet Repository) 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

Postby JohnFredC » Fri Jul 06, 2012 1:46 pm

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: 4970
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Status Bar Styling Issue

Postby XnTriq » Sun Jul 15, 2012 6:30 pm

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 (0.32 for win/linux/mac) 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: 27585
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Status Bar Styling Issue

Postby xnview » Mon Jul 16, 2012 12:04 pm

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: 4970
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Status Bar Styling Issue

Postby XnTriq » Mon Jul 16, 2012 5:00 pm

xnview wrote:not for XnViewMP, i remove them

Thanks for confirming, Pierre (-:
I'll keep looking for more.


Return to “Customization”

Who is online

Users browsing this forum: No registered users and 1 guest