dunst icon indicating copy to clipboard operation
dunst copied to clipboard

Store colors in a struct

Open bynect opened this issue 1 year ago • 7 comments

I changed every usage of colors from a string to a color struct. Colors are now parsed only once in the option_parser instead of every single draw call.

Note: Hopefully I haven't missed anything. I would be super grateful if someone could do some extra testing on their own if they encounter anything strange

bynect avatar Mar 04 '24 21:03 bynect

Still working on the tests

bynect avatar Mar 04 '24 21:03 bynect

Fixes what we talked about in #1286

bynect avatar Mar 04 '24 23:03 bynect

Note that invalid colors sent to dbus are ignored

bynect avatar Mar 05 '24 17:03 bynect

Yeah, looks good!

fwsmit avatar Mar 08 '24 15:03 fwsmit

I will do some fixes and merge it then 👍

bynect avatar Mar 09 '24 09:03 bynect

I will do some fixes and merge it then 👍

I wouldn't merge as long as CI doesn't work properly. I also accidentally merged a branch yesterday - but luckily, this was just update of a pod file and thus the chance of breakage is rather low.

zappolowski avatar Mar 09 '24 09:03 zappolowski

Right, ci is still down 😬

bynect avatar Mar 09 '24 11:03 bynect

@bynect As I've merged the new pipeline you could rebase this branch and then hopefully we can go forward merging it.

zappolowski avatar Apr 05 '24 09:04 zappolowski

Codecov Report

Attention: Patch coverage is 83.91608% with 23 lines in your changes are missing coverage. Please review.

Project coverage is 65.30%. Comparing base (15b1e8c) to head (6740fb0). Report is 2 commits behind head on master.

Files Patch % Lines
src/draw.c 53.57% 13 Missing :warning:
src/notification.c 69.23% 4 Missing :warning:
src/option_parser.c 92.85% 3 Missing :warning:
src/dbus.c 75.00% 2 Missing :warning:
src/rules.c 87.50% 1 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1306      +/-   ##
==========================================
+ Coverage   65.06%   65.30%   +0.23%     
==========================================
  Files          48       48              
  Lines        8173     8215      +42     
==========================================
+ Hits         5318     5365      +47     
+ Misses       2855     2850       -5     
Flag Coverage Δ
unittests 65.30% <83.91%> (+0.23%) :arrow_up:

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

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov-commenter avatar Apr 06 '24 20:04 codecov-commenter

@zappolowski should I merge it now?

bynect avatar Apr 06 '24 20:04 bynect

Yes, just go ahead and merge it.

zappolowski avatar Apr 07 '24 16:04 zappolowski