XnView MP & theme

Ideas for improvements and requests for new features in XnView MP

Moderators: XnTriq, xnview

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

Re: XnView MP & theme

Post by JohnFredC » Wed Dec 08, 2010 12:59 pm

I still think that user-contributed themes would be a great idea (in addition to the "official" light-medium-dark themes). If there was a way to share layouts, toolbars, themes, thumb-designs, etc., then the best ones could be incorporated into the distribution packages and listed in settings for the user to switch between.

See again my post in the thread: here.

Partly this issue is about storage (INI files and what-not) and partly this issue is about the UI.

The issue with MP currently is that there is not yet a "simplification" layer (=WYSIWYG dialog) between the user and the style sheet that combines all of the options/adjustments.

A question: if a style element is defined twice in a QSS file, does QT use the second one? I think it does, and if so, then a style editor could layer changes on top of a basic theme by addressing a subset of the elements present in the "master" style.

Perhaps Tweak UI would be a good tool for something like that.
John

User avatar
xnview
Author of XnView
Posts: 31598
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: XnView MP & theme

Post by xnview » Wed Dec 08, 2010 1:16 pm

JohnFredC wrote: The issue with MP currently is that there is not yet a "simplification" layer (=WYSIWYG dialog) between the user and the style sheet that combines all of the options/adjustments.
So an unique dialog to be able to edit all colors of XnViewMP (currently in options), and theme qss file?
A question: if a style element is defined twice in a QSS file, does QT use the second one? I think it does, and if so, then a style editor could layer changes on top of a basic theme by addressing a subset of the elements present in the "master" style.
I think yes
Pierre.

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

Re: XnView MP & theme

Post by JohnFredC » Wed Dec 08, 2010 3:04 pm

xnview wrote:So an unique dialog to be able to edit all colors of XnViewMP (currently in options), and theme qss file?
Well yes, ultimately, that would be the best approach. (Though there are more important things to do for MP functionality first.)

But a logical reduction of the many different theme components into groups that share the same "colors" etc would be beneficial. For instance, in the current "dark" theme, the toolbars do not share the same backgrounds. The "mini" toolbar background is controlled by something else.

So the effort should be: simplify, simplify, simplify, and then group.
  • 1. Identify an MP standard "look" (3D or not to be, that is the question!)
    • Most of the irritating visual "noise" in the current "dark" theme derives from superfluous lines and borders used to give a "3d" look. Some of them could be eliminated (see my example post, above) by assigning the same colors to them as the backgrounds they lie on.
    2. Identify which components should share the same "theme" colors
    • Toolbars, for instance.
    3. Identify a (relatively small) set of color settings to be exposed in the "theme designer" UI.
    • For instance: toolbar background, active tab, inactive tab, panel backgrounds, row backgrounds, etc.
    4. Publish a guide
    • ...that shows the relationships between the various widgets/controls and assigned colors.
    5. At this point, a theme designer UI could be built...
It would be best that direct manipulation of the QSS file by obsessives (such as myself) would remain, but an efficient tool to change MP 1.x's look/UI/behavior and "package" it for sharing would be huge.

Huge I say! 8)
John

User avatar
XnTriq
Moderator & Librarian
Posts: 5431
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: XnView MP & theme

Post by XnTriq » Fri Dec 10, 2010 4:00 am

JohnFredC wrote:I used a text editor... if anyone knows of a good QSS stylesheet editor please speak up!
This is all I got :|

artscoop
Posts: 7
Joined: Tue Dec 07, 2010 1:38 pm
Location: France

Re: XnView MP & theme

Post by artscoop » Fri Dec 10, 2010 10:07 pm

In general, a good CSS editor will be enough for the properties, at least.

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

Re: XnView MP & theme

Post by JohnFredC » Sat Dec 11, 2010 12:09 am

Do you have a recommendation?
John

User avatar
XnTriq
Moderator & Librarian
Posts: 5431
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: XnView MP & theme

Post by XnTriq » Sat Dec 11, 2010 2:30 am

I have serious doubts that a general purpose CSS editor can serve as “a ‘simplification’ layer (=WYSIWYG dialog) between the user and the style sheet that combines all of the options/adjustments” for skinning UI elements of a Qt application.

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

Re: XnView MP & theme

Post by JohnFredC » Sat Dec 11, 2010 3:44 am

Thanks for those links.
XnTriq wrote:I have serious doubts that a general purpose CSS editor can serve as “a ‘simplification’ layer (=WYSIWYG dialog) between the user and the style sheet that combines all of the options/adjustments” for skinning UI elements of a Qt application.
I completely agree... was just hoping for something for us to use in the meantime.

Edit: Thanks for those great links!
John


Post Reply