Dark mode Menu and Title bar

Some, flickering (very slight) when hovering over the bar. I’ll post a BRX if anyone is interested

Comments

  • Could you elaborate a bit?

  • I hooked into the menubar and forced it to draw darkmode via Win32 calls. All of the menus throughout BricsCAD draw dark. I may have spoken too soon though, the right click menu for stuff like OSNAPs is wonky.

  • Its_Alive
    edited 8:45AM

    Might not be for everyone.

    - I repaint a new dark menu bar over top of the existing bar, anytime that rect is invalidated, there’s a slight flicker

    - Right click menus in the editor widow are drawn white, there’s a flicker the first hit, subsequent menu calls are cached.

    - Dynamic input sometimes invalidates the whole window, causing a repaint, so there’s a flicker

    How to use, find your version inside the Zip file, drag the BRX onto the editor or use the appload command, select autoload as needed. I’ll try to refine it over time

    edit: posted a better version

  • Modal Dialogs get a dark title bar.

    old

    new

  • Ah, a good looking app

  • I also experimented with Qt stylesheets (QToolTip) to see whether the flyout tooltips could be restyled to improve readability in Dark Mode, but unfortunately that doesn't seem to affect the custom flyout tooltips used by BricsCAD.

    So it looks like those tooltips are not standard Qt tooltips, or they are styled internally.

    Thanks for taking the time to explain and for sharing your work. It was interesting to investigate.

  • Its_Alive
    edited 8:46AM

    The main frame and menu are not QT, I think to remain compatible with ObjectARX and palettes. I’ll probably post the code on GitHub once I’m done playing.

    I’m actually taking inspiration from wxWidgets 3.3.X, where they implemented a nice dark mode. I suspect eventually Bricsys might use, I.e. instead of rewriting the drawing explorer from scratch.


    BTW, here’s a sample BRX using wxWidgets with BRX. github.com/CEXT-Dan/WxArx
    For the record, I’m not using wx here, just Win32 SubclassProc


    Latest change, if the dialog does not have an ICON, attempt to add one

    old

    new

  • BTW, if you don’t use the menus, you can still hide it (MENUBAR 0). The flicking goes away, but you still get the dark menus and title bars