Commit graph

16 commits

Author SHA1 Message Date
Michael Aaron Murphy
8cf372c9b9
perf: inline public getters/setters, and use non-generic inner functions
To reduce compile-times and avoid some overhead to binary size, this will modify some of our
generic functions to use non-generic inner functions where possible. The inner functions are
marked carefully with `#[inline(never)]` to prevent being inlined by LLVM at their callsites

While looking for generic functions to optimize, I have also taken the opportunity to annotate
public non-generic getters and setters with `#[inline]` to ensure that LLVM will inline them
across crate boundaries. By default, only generic functions are automatically inlined, and
only when enabling fat LTO are constant functions reliably inlined across crate boundaries.
2025-03-21 13:31:34 +01:00
Ashley Wulber
337b80d4ca
feat: Tooltips and Better Surface Management 2025-03-14 16:56:21 +01:00
Michael Aaron Murphy
76348bb985
chore: handle more sources of excess cosmic-config logs 2025-02-19 16:57:28 +01:00
Michael Aaron Murphy
7d84d21129 improv: switch to Open Sans and Noto Sans Mono, with tweaked text styles 2025-02-18 23:57:58 +01:00
Michael Aaron Murphy
e162c59160
perf: reduce memory usage by dropping ustr dependency
The string cache used by ustr pre-allocates 12 MB, even if we're
only using it for a few font family names. We can therefore
manage our own set of leaked strings to reduce memory usage by 12 MB.
2025-01-03 21:58:04 +01:00
Michael Aaron Murphy
fdefc5860b
perf: avoid duplicate Ustr for default font names 2025-01-03 01:18:47 +01:00
Michael Aaron Murphy
9e064e7fa0 feat: configurable fonts 2024-10-05 01:47:37 +02:00
Vukašin Vojinović
0a34660a80 fix: move density to cosmic_theme 2024-09-23 12:40:22 -04:00
Vukašin Vojinović
69e6fb63fb fix: use spacing values from design system 2024-09-23 12:40:22 -04:00
Vukašin Vojinović
3c88edb217 feat: interface density 2024-09-23 12:40:22 -04:00
Victoria Brekenfeld
b40839638a fix: Use globals instead of thread-locals
Better support for multi-threaded applications,
especially cosmic-comp rendering in parallel on
multiple threads, each potentially accessing
global configurations such as the active theme,
icon_theme and more...
2024-08-02 20:27:08 +02:00
Michael Aaron Murphy
6720b8277c feat: CosmicTk::header_size density config 2024-05-29 06:25:15 -06:00
Michael Aaron Murphy
0d4c3db162
chore(doc): inline re-exported API docs 2024-05-20 17:19:42 +02:00
Ashley Wulber
db63aefe6f feat: add apply_theme_global to CosmicTk 2024-03-18 14:49:40 -06:00
Michael Aaron Murphy
4154428a63 feat(config): add icon theme property to CosmicTk config 2024-03-18 09:51:37 -06:00
Michael Aaron Murphy
4f07d05ee8 feat(config): add CosmicTk config for configuring window controls 2024-03-05 08:36:43 -07:00