Commit graph

72 commits

Author SHA1 Message Date
2d7e320ca5 chore: clean local warning 2026-05-25 19:36:21 +02:00
Hojjat
739e266210 feat: add ability to add extra paths to search for icons 2026-05-19 00:18:20 +02:00
Blaž Čulina
9c562fe3ec fix: use elapsed() instead of inverted duration_since check
The cache retry logic had last_check.duration_since(Instant::now()) which
is backwards - duration_since computes self - earlier, so past.duration_since(future)
always returns Duration::ZERO (saturates to 0). This caused icons marked NotFound
to never be retried, breaking the intended 5-second retry window.

Using last_check.elapsed() is equivalent to Instant::now().duration_since(last_check)
and correctly measures how much time has passed since the cache entry was created.
2026-04-14 15:28:23 +02:00
Michael Aaron Murphy
7a61a704f6
chore: remove linicon dev-dependency 2025-12-02 20:29:34 +01:00
Michael Aaron Murphy
7bb19f1b50
chore: remove gtk4 dev-dependency bloating builds 2025-12-02 20:27:42 +01:00
Michael Aaron Murphy
702ea3ed5c
chore: remove dirs crate and reduce tracing features 2025-12-02 17:23:14 +01:00
Michael Aaron Murphy
54520b0a55
fix: more optimizations and test case fixes 2025-12-01 21:31:08 +01:00
Michael Aaron Murphy
8b045f90c7
perf: drop ini-core crate for simpler parser using memchr and bstr 2025-12-01 15:39:29 +01:00
Michael Aaron Murphy
44edef9673
perf: optimizations and additional test cases 2025-11-25 06:24:34 +01:00
Michael Aaron Murphy
db4d26e591
test: add flatpak_slack 2025-11-24 22:06:46 +01:00
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
Michael Aaron Murphy
062ec71b1a
test: run should_get_theme_parents only with local_tests feature 2025-11-24 21:52: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
Paul Delafosse
2045e28877
chore(version): bump to 0.4.0 2025-04-16 09:01:09 +02:00
Paul Delafosse
a7cb91039f
test: fix failing test 2025-04-16 09:00:07 +02:00
Davide Cavalca
f96e963809 Fix doc tests 2025-04-16 08:57:11 +02:00
Aditya Garg
8c33445d75 Try to load png and xmp in case svg is not found when force_svg is enabled 2025-04-16 08:56:51 +02:00
Paul Delafosse
8a85d31f1a
chore: bump version 2025-02-08 20:28:26 +01:00
Michael Aaron Murphy
3dd7647411 improv: significant memory and cpu usage reduction 2025-01-23 12:03:09 +01:00
Paul Delafosse
4578b5fa25
chore: bump version 2025-01-23 11:16:11 +01:00
Paul Delafosse
8ede345b28
chore: thanks clippy 2025-01-23 11:11:32 +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
Lily Foster
c6c8962d87 fix: look up $XDG_DATA_DIRS/pixmaps in addition to icons 2025-01-23 10:54: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
Michael Aaron Murphy
05f9d99409 fix: log instead of panic on icon path errors 2025-01-23 10:52:22 +01:00
Michael Aaron Murphy
c9d32ca725 chore: remove Cargo.lock file 2025-01-23 10:52:22 +01:00
ogios
fa772154e6 fix: distance not abs 2025-01-23 10:51:45 +01:00
Paul Delafosse
30a674692f chore: Bump to 0.2.6 2024-02-13 12:58:06 +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
Paul Delafosse
5e8d39a7a7 chore: bump manifest to 0.2.5 2024-01-24 17:00:46 +01:00
Paul Delafosse
5bacedc486 chore: update dependencies and add Cargo.lock 2024-01-24 17:00:20 +01:00
Paul Delafosse
37bcbf01fa chore: remove nightly rustfmt configs 2024-01-24 16:55:48 +01:00
Paul Delafosse
6105db13f9 fix: add XDG_DATA_HOME to base directories 2024-01-24 16:54:45 +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
Paul Delafosse
d579766149 chore: update version to 0.2.4 2023-09-21 13:07:38 +02: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
Paul Delafosse
cbc57c1fa0 chore: bump version to 0.2.3 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
1be7d4e73b chore: Bump version to 0.2.2 2022-12-18 17:54:54 +01:00
Paul Delafosse
6c45c3bd84 chore: fix typo 2022-12-18 17:53:41 +01:00
Ashley Wulber
933153f9bb fix: sort closest match size by distance 2022-12-18 17:30:00 +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
Ashley Wulber
aa175c8812 refactor: get data dirs from xdg crate 2022-12-18 17:30:00 +01:00
Paul Delafosse
632d67524c chore: bump version 2022-05-24 09:19:32 +02:00