polybar-dwm/tests/unit_tests/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.cpp actions: Move parsing to utility file 2020-11-26 20:53:53 +01:00
color.cpp Move most color_util functions into rgba class 2020-11-27 22:08:03 +01:00
command.cpp add command unit tests 2020-05-08 23:24:29 +02:00
file.cpp add command unit tests 2020-05-08 23:24:29 +02:00
math.cpp fix(alsa): Remove upper bound to get_volume (#2184) 2020-09-20 14:26:17 +02:00
memory.cpp refactor(tests): Migrate to googletest 2018-04-10 00:56:51 +02:00
scope.cpp tests: Convert scope test to gtest 2018-06-10 16:42:07 +02:00
string.cpp Include empty tokens when splitting if necessary (#1893) 2019-11-21 22:26:53 +01:00