Commit graph

59 commits

Author SHA1 Message Date
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
Ilya Fedin
a2d1114a93 Get rid of osx and linux32 special targets 2021-08-11 16:01:30 +03:00
Ilya Fedin
51cfd0ba35 Fix -Wunused-variable warnings with gcc 2021-07-19 18:59:36 +03:00
Ilya Fedin
d922c3085a Don't inherit system font style 2021-07-16 09:25:21 +03:00
Ilya Fedin
b8485c0d8a Fix -Wunused-variable warnings 2021-07-13 21:24:22 +03:00
John Preston
8b7aa44226 Provide some simple OpenGL primitives. 2021-06-02 20:27:30 +04:00
John Preston
98e3ba2c58 Remove legacy Integration::startFonts[Begin|End]. 2021-04-20 16:39:27 +04:00
John Preston
d07bee87cd Use LOG/DEBUG_LOG from lib_base. 2021-04-20 16:39:27 +04:00
John Preston
d1dda0b2ac Add a new color and style::complex_color. 2021-04-02 14:14:47 +04:00
Ilya Fedin
40815d4d55 Replace QMap with base::flat_map for pointer keys 2021-03-17 15:38:59 +03:00
Ilya Fedin
03f8ab361f Avoid multiple QString::arg usage as suggested by clazy 2021-03-13 19:06:29 +03:00
Ilya Fedin
2039c59293 Apply autofixes from clazy 2021-03-13 11:20:51 +03:00
John Preston
d4c99701b5 Fix deprecation warnings on Qt 5.15.1. 2020-11-04 18:44:45 +03:00
Ilya Fedin
f749fc7349 Use Q_OS_UNIX instead of Q_OS_LINUX since linux-specific code can be used also on *BSD/Haiku 2020-06-13 16:08:39 +04:00
John Preston
05d1ee3796 Allow overriding fonts by (family,style). 2020-06-05 19:42:07 +04:00
Ilya Fedin
06d4cd2dab Set style name always
For some reason with kde platformtheme plugin DemiBold doesn't work

Also use italic version of semibold font when needed
2020-06-01 18:32:44 +04:00
Ilya Fedin
d05d9b214d Fix bolding with packaged fonts 2020-05-12 09:41:29 +04:00
Ilya Fedin
95b49979fb Remove unneeded Segoe UI fallback struct and add Vazir file struct 2020-05-12 09:41:29 +04:00
John Preston
8a1aeb22d8 Use Vazir font on macOS too. 2020-05-10 17:10:21 +04:00
John Preston
c9120970c2 Try all being Semibold -> Bold -> Regular. 2020-05-08 18:51:15 +04:00
Ilya Fedin
88845bfec9 Choose actual semibold style for system fonts 2020-05-08 12:41:40 +04:00
Ilya Fedin
f987f596f1 Add Vazir font for Persian glyphs 2020-05-08 12:41:40 +04:00
John Preston
0ef9558269 Treat Semibold as Regular. 2020-05-08 12:11:16 +04:00
John Preston
8660904bc8 Add a check for monospace font on Linux. 2020-05-05 15:48:03 +04:00
Ilya Fedin
06eadc0caf Patch semibold font as bold to fallback to bold fonts for CJK languages 2020-05-05 14:14:55 +04:00
John Preston
8e568a4f15 Remove font substitutions now that they're in Qt. 2020-05-01 19:59:04 +04:00
Ilya Fedin
1647b0b76a Fix setWeight order 2020-04-28 12:15:51 +04:00
John Preston
2cb10e1d13 Use default QApplication::font. 2020-04-15 18:05:28 +04:00
John Preston
3090ba7721 Use predefined monospace fonts on macOS. 2020-04-13 17:12:46 +04:00
ilya-fedin
74889b8c21 Better algorithm for font choosing 2020-04-13 11:31:34 +04:00
John Preston
246aa24530 Add callbacks for fonts init. 2020-03-30 12:16:01 +04:00
Maks Naumov
44c4633684 Fix memleak when Icon move ctor is used 2020-02-10 12:12:05 +04:00