Commit graph

90 commits

Author SHA1 Message Date
Ilya Fedin
f76ddd841c Stop modifying application-wide QFont object 2024-05-04 10:08:39 +04:00
Ilya Fedin
7e9dc6e4f2 Initialize QFont with clean state 2024-05-04 10:08:39 +04:00
John Preston
db8c3d16e8 Fix adjustment of size for modified fonts. 2024-05-03 11:25:01 +04:00
John Preston
5b8eb3a5b8 Don't adjust monospace font size. 2024-05-02 19:36:23 +04:00
John Preston
141c1b4a7e Use same size for styled fonts. 2024-05-02 18:52:50 +04:00
John Preston
6e924177b7 Fix build with Xcode and GCC. 2024-05-02 12:53:57 +04:00
John Preston
d703a804df Improve font size edge cases. 2024-05-02 12:05:35 +04:00
John Preston
86dc01e9bc Use custom-adjusted font metrics. 2024-05-02 11:32:44 +04:00
John Preston
4ddff63a9b Improve font size selection a bit. 2024-05-01 19:09:37 +04:00
Ilya Fedin
7fcfaa9dd5 Detect the lack of semibold style 2024-04-29 11:23:46 +04:00
John Preston
cb57bef3f0 Allow a bit more font size adjusting. 2024-04-26 20:16:20 +04:00
Ilya Fedin
17cc6f3783 Get rid of no more used GetFontOverride 2024-04-24 17:18:58 +04:00
John Preston
ae5a61f7ae Allow custom font with adjusted size. 2024-04-23 16:38:37 +04:00
John Preston
d944b4e4ef Try disabling manual Segoe UI fallback. 2024-04-23 10:20:30 +04:00
Ilya Fedin
a052b22872 Try to make font handling more straightforward 2024-04-23 09:47:46 +04:00
Ilya Fedin
70e61c8ab8 Set ss03 feature for better 'I' with Open Sans 2024-04-22 10:30:53 +04:00
John Preston
7fef09421c Allow requesting exact icon instances, ignoring dpr. 2024-01-03 22:11:57 +04:00
John Preston
c5a616de35 Fix possible crash in style::colorizeImage. 2023-12-22 14:40:24 -04:00
John Preston
92c447aa87 Crash on assertion instead of stack overflow. 2023-10-28 21:40:01 +04:00
Ilya Fedin
b361d6151c Fix unused warnings with DESKTOP_APP_USE_PACKAGED_FONTS 2023-09-22 09:08:56 +04:00
Ilya Fedin
68b43db05d Minimize amount of code to rebuild when switching options 2023-09-22 09:08:56 +04:00
Ilya Fedin
e24eaa6b32 Produce a nice terminal warning about lack of patched fonts 2023-09-11 09:09:42 +04:00
Ilya Fedin
8c58ebc136 Remove unnecessary private Qt API usage 2023-05-15 12:29:01 +04:00
John Preston
bfdd116000 Handle emoji myself in custom macOS title. 2023-04-26 22:50:22 +04:00
John Preston
bcb56492c4 Allow larger scales on high-dpi screens. 2023-03-15 17:17:15 +04:00
John Preston
dec1cd8cea Make style align constants constexpr. 2023-03-15 13:35:59 +04:00
Joe Kappus
6e81116513 Add missing include to fix GCC12 build
Signed-off-by: Joe Kappus <joe@wt.gd>
2023-02-04 14:02:44 +04:00
John Preston
41ee2fb0f0 Use QFontMetricsF and ceil() the width() results. 2023-01-24 12:10:48 +04:00
John Preston
4ec3aced2e Support colored emoji more widely. 2022-12-15 17:24:36 +04:00
John Preston
59a7b94ef4 Track palette version. 2022-12-05 16:17:31 +04:00
John Preston
18580e46a1 Handle touch events in PopupMenu. 2022-09-19 17:28:40 +04:00
Ilya Fedin
efdc82c823 Add Cascadia Code as preferred monospace font
And switch macOS to system monospace font as Cascadia Code is more likely to be installed by the user
2022-09-19 12:39:22 +04:00
John Preston
746eb80300 Allow interface scale of 50%. 2022-09-01 11:23:16 +04:00
John Preston
bd7c4ee06d Allow fractional stroke values in CrossAnimation. 2022-02-25 19:23:05 +03:00
Ilya Fedin
e3c4d49912 Remove legacy QRC files
qt_linux.conf has no visible effect for a long time and mac.qrc is empty, so remove them to get rid of unneeded rcc invocations
2021-12-06 12:27:45 +04:00
John Preston
bd7c085bd0 Fix warning in GCC on C++20. 2021-11-14 11:26:24 +04:00
John Preston
f51ff6b513 Use Qt resources from a file on macOS. 2021-10-27 20:39:21 +04:00
John Preston
fb812fd748 Allow manual style::complex_color refresh. 2021-10-22 18:33:13 +04:00
John Preston
e62d92f655 Use base::SafeRound. 2021-09-27 12:12:54 +04:00
John Preston
d5fb147f2c Lock access to IconMasks. 2021-09-24 19:09:58 +04:00
John Preston
5a9878bea9 Preserve alpha value in colorizer. 2021-09-17 10:24:42 +03:00
John Preston
246b947fa7 Always assign colors when assigning palettes. 2021-09-11 12:26:16 +03:00
John Preston
db1b4b65c7 Provide GenerateLinearGradient with several colors. 2021-09-06 13:17:13 +03:00
John Preston
a8ce22fd75 Allow assigning to default-initialized style::icon-s. 2021-09-03 18:50:59 +03:00
John Preston
1180d13a5c Support colorizing of the default palette. 2021-09-02 20:47:52 +03:00
John Preston
cf5e41d81e Correctly handle colorizer special cases. 2021-09-02 20:19:23 +03:00
John Preston
cc5ebf21e7 Add style::colorizer for theme palette changing. 2021-09-02 19:57:34 +03:00
John Preston
c88762d0eb Move most of the palette code from codegen. 2021-09-02 13:27:33 +03:00
John Preston
3c95a91871 Allow duplicating icons with different palettes. 2021-08-27 23:43:50 +03:00
John Preston
15ffd051d6 Use flat_map for iconPixmaps. 2021-08-26 16:24:25 +03:00