1
0
Fork 0
mirror of https://github.com/polybar/polybar.git synced 2024-11-18 13:55:11 -05:00
polybar/include/components
infokiller fb6e874235 feat(label): Add minlen with alignment (#1546)
* Add label minlen and alignment.

Fix build

* Update src/drawtypes/label.cpp

Co-Authored-By: infokiller <infokiller@users.noreply.github.com>

* Use existing alignment type.

* Remove redundant max_len handling in label::get.

* Fix shadowing.

* Add label alignment tests.

* Handle minlen/maxlen and alignment in same function.

Also add a test for a test case brought up in the PR discussion.

* Format files with clang-format

* Move builder::get_label_text tests into label tests

builder::get_label_text doesn't really do anything anymore

* builder: remove get_label_text

* label: Clean up label::get()

* Fix comment style.

* Set default label alignment to left.

* Update src/drawtypes/label.cpp

Co-Authored-By: Patrick Ziegler <p.ziegler96@gmail.com>

* Update include/drawtypes/label.hpp

Co-Authored-By: Patrick Ziegler <p.ziegler96@gmail.com>
2019-12-01 01:28:41 +01:00
..
bar.hpp fix(bar): Configure window before remapping 2019-10-21 13:22:51 +02:00
builder.hpp feat(label): Add minlen with alignment (#1546) 2019-12-01 01:28:41 +01:00
command_line.hpp
config.hpp config_parser: Introduce stricter syntax conventions (#1377) 2019-08-06 19:41:31 +02:00
config_parser.hpp config_parser: Introduce stricter syntax conventions (#1377) 2019-08-06 19:41:31 +02:00
controller.hpp controller: Print error for duplicate modules (#1534) 2019-10-21 10:20:45 +02:00
ipc.hpp ipc: Remove unused global setting 2019-11-01 11:12:40 +01:00
logger.hpp
parser.hpp Incorporate Reviews 2019-08-06 21:36:20 +02:00
renderer.hpp Incorporate Reviews 2019-08-06 21:36:20 +02:00
screen.hpp refactor(x11): Cleanup 2017-01-24 10:49:14 +01:00
taskqueue.hpp
types.hpp bar: Make module separator a label 2019-10-27 16:02:33 +01:00