Commit graph

30 commits

Author SHA1 Message Date
Michael Aaron Murphy
7173f91ccb
perf: use HashSet to avoid duplicate theme path lookups
This also eliminates some allocations that are not necessary with this approach
2025-11-24 21:54:07 +01:00
Vukašin Vojinović
689c60d428 chore: migrate to Rust 2024 and update dependencies 2025-11-06 17:17:13 +01:00
Michael Aaron Murphy
32975f8f05
perf: use mmap for reading ini config files 2025-11-06 16:01:28 +01:00
Michael Aaron Murphy
09a76900a6
feat: resettable cache and icon retry after time 2025-11-06 16:01:28 +01:00
Michael Aaron Murphy
a28483f3d1
fix: avoid searching for icons that previously could not be found
Causes significant CPU usage in some areas
2025-11-06 16:01:28 +01:00
Michael Aaron Murphy
7a4d94f951
rebase cosmic-freedesktop-icons 2025-11-06 16:01:18 +01:00
Davide Cavalca
f96e963809 Fix doc tests 2025-04-16 08:57:11 +02:00
Michael Aaron Murphy
3dd7647411 improv: significant memory and cpu usage reduction 2025-01-23 12:03:09 +01:00
Paul Delafosse
2147fc7b98
test: hide local tests behind ff 2025-01-23 11:09:45 +01:00
Josh Megnauth
8470bb3183 feat: Default GTK theme without dependencies
The following patch relies on `gsettings`, which should be installed by
the GTK suite on most distros, instead of linking with GTK.
2025-01-23 10:55:02 +01:00
Ryan Brue
cd10e6fa61 fix: if previously not found, still look up icon
This fixes the case where an icon was previously looked up, not found, and now exists (i.e. when an application was installed)
2025-01-23 10:53:33 +01:00
Patrick Chieppe
c7914692a2 fix: Fallback to using the hicolor theme if the selected theme doesn't exist 2024-02-13 12:50:35 +01:00
Ashley Wulber
39408c71c9 fix: use the first discovered index.theme from base directories for each theme 2024-01-24 09:07:01 +01:00
Victoria Brekenfeld
000e9178f5 fix: Just extract file stem for full paths 2023-09-21 13:03:57 +02:00
Victoria Brekenfeld
8998813d01 fix: Add fallback for icons without theme 2023-09-21 13:03:57 +02:00
Victoria Brekenfeld
92f759fd09 fix: merge themes from multiple locations 2023-01-11 09:51:43 +01:00
Paul Delafosse
6c45c3bd84 chore: fix typo 2022-12-18 17:53:41 +01:00
Ashley Wulber
9b68d41b77 fix: search all base path's hicolor theme, or as a bare path as a last resort 2022-12-18 17:30:00 +01:00
Paul Delafosse
632d67524c chore: bump version 2022-05-24 09:19:32 +02:00
Paul Delafosse
c737c3f6a4 feat: add a function to force svg lookup 2022-05-24 09:16:21 +02:00
Paul Delafosse
73ff98b6d6 fix: unreverse size and scale builder functions 2022-05-17 07:11:19 +02:00
Paul Delafosse
5711a84275 docs: correct some doc typos 2022-05-13 11:28:56 +02:00
Paul Delafosse
2ca7d30923 docs: add a readme 2022-05-13 11:16:09 +02:00
Paul Delafosse
ab3d5a67f2 feat: use CacheEntry enum to abort previously failed lookups 2022-05-13 10:11:02 +02:00
Paul Delafosse
b7c9865412 test: improve tests and fmt all 2022-05-13 08:01:21 +02:00
Paul Delafosse
73702f6049 feat: improve cache, add ScaledDirectories lookup and parent lookup 2022-05-13 08:00:52 +02:00
Paul Delafosse
8de66cc58e feat: add cache and gtk benches comparison 2022-05-12 23:12:06 +02:00
Paul Delafosse
e40fbfa916 feat: add some benches to compare with linicon 2022-05-12 16:41:23 +02:00
Paul Delafosse
6515a02881 feat: implement base freedesktop-icon lookup 2022-05-12 14:41:08 +02:00
Paul Delafosse
d70d90dcf8 chore: First commit 2022-05-12 10:10:48 +02:00