1. Now at start the main window appears in the center of the desktop. I don't 
know whether this is useful, but it looks better.
2. When clicking "Dark palette" in the preferences window, the application 
changes its palette dynamically. No restart required. (For this purpose it was 
necessary: to add a new public slot changePalette() to the ImageViewer class 
and to remove unnecessary field "QPalette m_palette;" from this class.) Also 
there was a FIXME which said that palette setting didn't work. Now it works. 
But by default changing a palette works only for the components which are not 
using system styles. Therefore for some elements it was required to change 
stylesheet instead of palette.

You can merge this Pull Request by running:

  git pull https://github.com/Alexander-Murashko/oiio master

Or you can view, comment on it, or merge it online at:

  https://github.com/OpenImageIO/oiio/pull/221

-- Commit Summary --

* A few GUI improvements for ImageViewer.

-- File Changes --

M src/iv/imageviewer.cpp (41)
M src/iv/imageviewer.h (4)

-- Patch Links --

  https://github.com/OpenImageIO/oiio/pull/221.patch
  https://github.com/OpenImageIO/oiio/pull/221.diff

--- 
Reply to this email directly or view it on GitHub:
https://github.com/OpenImageIO/oiio/pull/221
_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to