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:
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!
Status Bar Styling Issue
Moderators: XnTriq, helmut, xnview
-
- XnThusiast
- Posts: 2010
- Joined: Wed Mar 17, 2004 8:33 pm
- Location: Sarasota Florida
-
- Moderator & Librarian
- Posts: 6389
- Joined: Sun Sep 25, 2005 3:00 am
- Location: Ref Desk
Re: Status Bar Styling Issue
Code: Select all
QStatusBar::item {
margin: 20px;
border: 0;
background: yellow;
}
<!-- EDIT -- //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.
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;
}
Code: Select all
QStatusBar {
background: fuchsia;
}
QStatusBar::item {
background: lime;
}
QStatusBar QLabel {
margin: 10px;
border: 0;
background: yellow;
}
-
- XnThusiast
- Posts: 2010
- Joined: Wed Mar 17, 2004 8:33 pm
- Location: Sarasota Florida
Re: Status Bar Styling Issue
Thank you very much XnTriq! I'll try that out.
BTW those color choices are quite... interesting!
BTW those color choices are quite... interesting!
- Fuschia
Yellow
Lime
John
-
- Moderator & Librarian
- Posts: 6389
- Joined: Sun Sep 25, 2005 3:00 am
- Location: Ref Desk
Re: Status Bar Styling Issue
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 testingJohnFredC wrote:BTW those color choices are quite... interesting!
-
- XnThusiast
- Posts: 2010
- Joined: Wed Mar 17, 2004 8:33 pm
- Location: Sarasota Florida
Re: Status Bar Styling Issue
Hi XnTriq!
The following worked great:
Thanks again!
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;
}
Thanks again!
John
-
- Moderator & Librarian
- Posts: 6389
- Joined: Sun Sep 25, 2005 3:00 am
- Location: Ref Desk
Re: Status Bar Styling Issue
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"):
-
- XnThusiast
- Posts: 2010
- Joined: Wed Mar 17, 2004 8:33 pm
- Location: Sarasota Florida
Re: Status Bar Styling Issue
Hi XnTriq
I promise to do so but...
...still working on it. Haven't even addressed the Settings dialog yet.
"Soon", however.
I promise to do so but...
...still working on it. Haven't even addressed the Settings dialog yet.
"Soon", however.
John
-
- Moderator & Librarian
- Posts: 6389
- Joined: Sun Sep 25, 2005 3:00 am
- Location: Ref Desk
Re: Status Bar Styling Issue
Keep us posted!JohnFredC wrote:I promise to do so but...
...still working on it. Haven't even addressed the Settings dialog yet.
"Soon", however.
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
Now I see why you find my choice of colors “interesting”: You have a soft spot for fuchsia & lime, too (-;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!!
-
- Author of XnView
- Posts: 44936
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: Status Bar Styling Issue
not for XnViewMP, i remove themXnTriq wrote: While we're at it: Do you know what the following selectors (\UI\style_sheet.qss @ line #700) are for?
Could these be leftovers from AutoPano?
- QToolBar#UIPanosView_ToolBar
- QToolBar#UIGroupsView_ToolBar
- QToolBar#UIGroup_ToolBar
- QToolBar#UIPano_ToolBar
Pierre.
-
- Moderator & Librarian
- Posts: 6389
- Joined: Sun Sep 25, 2005 3:00 am
- Location: Ref Desk
Re: Status Bar Styling Issue
Thanks for confirming, Pierre (-:xnview wrote:not for XnViewMP, i remove them
I'll keep looking for more.