1
0
Fork 0
mirror of https://github.com/polybar/polybar.git synced 2024-10-27 05:23:39 -04:00
polybar/include/utils
patrick96 b238ec3403 Move most color_util functions into rgba class
The intent is for every color to be stored in a rgba instance

The rgba class now stores the color in a 32 bit integer to save space

This also removes the unused class rgb and moves everything else into a
cpp file.

Many functions also had weird template parameters. For example
alpha_channel<unsigned short int> would give a 2 byte number with the
alpha channel byte in both bytes.
color_util::hex would return a hex string with alpha channel if unsigned
short int was given and without if unsigned char was given. Even more
curiously those parameters were passed to *_channel and the result
nevertheless truncated to 8bits.
2020-11-27 22:08:03 +01:00
..
actions.hpp controller: Cleanup process_inputdata 2020-11-26 20:53:53 +01:00
bspwm.hpp refactor: Cleanup 2017-01-11 03:07:28 +01:00
cache.hpp wip(refactor): Cairo drawing 2017-01-24 07:11:14 +01:00
color.hpp Move most color_util functions into rgba class 2020-11-27 22:08:03 +01:00
command.hpp add command unit tests 2020-05-08 23:24:29 +02:00
concurrency.hpp concurrency_util: Mutex wrapper 2016-12-26 10:33:23 +01:00
env.hpp refactor(file_util): Expand tilde manually 2017-01-25 17:07:55 +01:00
factory.hpp refactor: Move all event handling to the controller 2016-12-20 05:16:04 +01:00
file.hpp config: Better error messages when opening files 2020-11-26 21:06:35 +01:00
functional.hpp refactor: Optimize build 2016-11-20 23:04:31 +01:00
http.hpp Update: Using another way to authenticate github module (#2029) 2020-03-26 12:50:42 +01:00
i3.hpp refactor(i3): Restack above global root window 2017-01-01 19:34:48 +01:00
inotify.hpp fix: Ensure reloading when IN_IGNORED fired on config (#371) 2017-01-24 07:10:55 +01:00
io.hpp fix(script): Poll file descriptors 2017-01-11 18:21:58 +01:00
math.hpp fix(alsa): Remove upper bound to get_volume (#2184) 2020-09-20 14:26:17 +02:00
memory.hpp fix(build): Ignore noexcept-type for malloc_ptr_t 2019-10-26 22:28:47 +02:00
mixins.hpp fix: project rename 2016-11-19 06:26:07 +01:00
process.hpp Redirect process output to dev null 2020-05-08 23:24:29 +02:00
scope.hpp doc: Convert @ to \ doxygen commands 2018-11-04 19:28:27 -08:00
socket.hpp Fix gcc compilation 2020-05-14 22:45:40 +02:00
string.hpp Include empty tokens when splitting if necessary (#1893) 2019-11-21 22:26:53 +01:00
throttle.hpp doc: Convert @ to \ doxygen commands 2018-11-04 19:28:27 -08:00
time.hpp refactor: Move all event handling to the controller 2016-12-20 05:16:04 +01:00