Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recursive icons: Use min_icon_size and max_icon_size instead of icon_size. #1069

Merged
merged 6 commits into from
May 6, 2022

Conversation

fwsmit
Copy link
Member

@fwsmit fwsmit commented Apr 25, 2022

Fixes #1037

fwsmit added 3 commits April 25, 2022 15:54
The recursive icon lookup used an icon_size rule to scale all icons to
this size, but this was a bit limiting in allowing bigger icons for
things like album art. To fix this, the old behaviour has been
reinstated. The main difference is that icons from a theme (that are
searched by icon name) are of the size `min_icon_size`, instead of being
of whatever size was found first.

ref: dunst-project#1037
Since min_icon_size is used for looking up icons, it should not be 0.
That would result in no icons being found.
@codecov-commenter
Copy link

codecov-commenter commented Apr 25, 2022

Codecov Report

Merging #1069 (30a5c47) into master (096a433) will increase coverage by 4.11%.
The diff coverage is 69.23%.

@@            Coverage Diff             @@
##           master    #1069      +/-   ##
==========================================
+ Coverage   61.30%   65.41%   +4.11%     
==========================================
  Files          45       46       +1     
  Lines        7097     7351     +254     
==========================================
+ Hits         4351     4809     +458     
+ Misses       2746     2542     -204     
Flag Coverage Δ
unittests 65.41% <69.23%> (+4.11%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/rules.c 79.71% <ø> (+0.42%) ⬆️
src/icon.c 72.32% <66.66%> (+5.84%) ⬆️
src/notification.c 59.38% <100.00%> (-0.10%) ⬇️
test/draw.c 98.85% <0.00%> (-1.15%) ⬇️
test/input.c 100.00% <0.00%> (ø)
test/test.c 94.11% <0.00%> (+0.17%) ⬆️
src/queues.c 92.19% <0.00%> (+0.74%) ⬆️
test/helpers.c 97.50% <0.00%> (+1.20%) ⬆️
src/input.c 37.87% <0.00%> (+37.87%) ⬆️
src/draw.c 51.67% <0.00%> (+40.06%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 096a433...30a5c47. Read the comment docs.

@fwsmit fwsmit force-pushed the recursive-icons-scaling branch from 2f6cdd8 to ff3d0a2 Compare May 6, 2022 09:23
@fwsmit fwsmit force-pushed the recursive-icons-scaling branch from ff3d0a2 to 54685f7 Compare May 6, 2022 09:35
@fwsmit fwsmit merged commit 6c9d215 into dunst-project:master May 6, 2022
@fwsmit fwsmit deleted the recursive-icons-scaling branch May 6, 2022 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add option to not scale some icons
2 participants