1
0
Fork 0
mirror of https://github.com/polybar/polybar.git synced 2025-06-02 18:22:03 -04:00

feat(border): Percentage and pixel offset (#1592)

Uses the same X%:Z format as width, height and offset-*

Resolves #1567
This commit is contained in:
Ddone 2019-01-12 12:48:09 +02:00 committed by Patrick Ziegler
parent b728fea5be
commit 46b8bb84ed
3 changed files with 16 additions and 10 deletions

View file

@ -32,6 +32,7 @@ vector<pair<double, string>> to_pixels_with_offset_list = {
{990, "100%:-10"},
{10, "0%:+10"},
{1000, "99%:+10"},
{0, "1%:-100"},
};
INSTANTIATE_TEST_CASE_P(NoOffset, GeomFormatToPixelsTest,