5 ms·
> I wonder if there's a way to shimmy in a "modern macOS Qt renderer" or something into an existing project like this without a rewrite? Apparently there is. I
by fellerts 4y ago
> I wonder if there's a way to shimmy in a "modern macOS Qt renderer" or something into an existing project like this without a rewrite?
Apparently there is. I hacked something together in a new branch: https://github.com/fellerts/procal/tree/fredrik/theme https://github.com/fellerts/procal/tree/fredrik/theme. Feel free to check it out and let me know how it works for you.
- eql5 4y agoI tried on macOS, yes dark mode works great now, thanks. But I needed to change all QFont('monospace', 10) occurrences to QFont('Monaco', 12) in order to make it look nice.
- fellerts 4y agoThanks for trying it out. If you wouldn't mind, I'd appreciate it if you could open an issue with a screenshot of how the default behavior looked. Edit: merged a fix for this, thanks for reporting.
- pxc 4y agoShouldn't it be your operating system's job (or yours) to make the monospace font alias on your system point to a nice font?
- eql5 4y agoIn a perfect world, yes! But in my experience with Qt, you always have to adjust font names separately for every OS. This is especially true for nice coding fonts. If I had written that program, I would have brought my own font (like "Hack"), and simply set the pixel size of the font, to ensure it's exactly the same size on any OS (and I would have written it in QML, with heavy usage of Repeater, which would simplify the UI code a lot, but I digress...).