Make dock dots scalable
commiteb2a9d97a26c994ec7c582a2762c6d88aa401122
authorXander <charlesdefaux@gmail.com>
Fri, 7 May 2021 15:20:55 +0000 (7 15:20 +0000)
committerCarlos R. Mafra <crmafra@gmail.com>
Fri, 7 May 2021 17:03:19 +0000 (7 18:03 +0100)
treee153652f04e55463ec90717cb036bca48fe60a74
parent9abe4165d1aebb9666cad77fe688f47403afb349
Make dock dots scalable

This patch makes the three dots in the dock change their size when bigger icon size is used.
The logic here is such that the dots are scaled only when a certain icon size is reached;
for instance, the dots will remain unchanged if icon size is less than 128x128 px, and will
be twice as big if it's set to a value from 128x128 to 184x184 px. The get_dot_mult() func
calculates and returns the scale multiplier. In the draw_dot() func, XDrawLine() and
XDrawPoint() were replaced with XFillRectangle() because those funcs do not allow their
result to be scalable. This patch does not require additional icon size values (those bigger
than 96x96 px) to exist, but makes no use without them.
src/screen.c