Author Topic: Windows .QSS style sheet tweaks.  (Read 3205 times)

Offline IanL

  • PixInsight Addict
  • ***
  • Posts: 116
    • The Imaging Toolbox
Windows .QSS style sheet tweaks.
« on: 2015 November 30 05:02:15 »
With the latest release, I notice we are now getting some platform-specific UI tweaks in the QSS style sheets.  Might I request a few extra changes in the standard build in relation to the menu bar and menu bar items.  The standard spacing is far too wide compared to the usual Windows menu bars especially with the new smaller font, although I accept that menus are becoming more rare with the move to ribbon-like interfaces.

With every update I tediously have to apply the same changes to the .qss file, and it would be great not to have to.  Anyway the changes would need to be made to PixInsight\rsc\qss\core-standard.qss replacing the following entries with the ones shown:

QMenuBar {
   background: #F0F0F0;
   border: 0;
   padding: 2px;
   padding-bottom: 4px;
   font-family: Open Sans, DejaVu Sans;
   @platform x11 osx {
      padding-top: 4px;
      font-size: 10pt;
   }
   @platform windows {
      padding-top: 2px; /* Windows users expect less spacing in menus...*/
      font-size: 9.5pt; /* Windows users expect smaller menus... */
   }
}

QMenuBar::item {
   spacing: 2px;
   @platform x11 osx {
      margin: 0 6px 0 12px;
      padding: 2px 8px;
   }
   @platform windows {
      margin: 0 3px 0 6px; /* Windows users expect less spacing in menus...*/
      padding: 2px 2px;    /* Windows users expect less spacing in menus...*/
   }
   color: black;
   background: transparent;
}