mirror of
https://github.com/FelixKratz/SketchyBar
synced 2024-11-26 13:20:24 +00:00
exclude brackets in centering calculation (#351)
This commit is contained in:
parent
5bf36c407e
commit
bfded17e5e
1 changed files with 3 additions and 1 deletions
|
@ -295,7 +295,9 @@ uint32_t bar_manager_length_for_bar_side(struct bar_manager* bar_manager, struct
|
||||||
uint32_t total_length = 0;
|
uint32_t total_length = 0;
|
||||||
for (int i = 0; i < bar_manager->bar_item_count; i++) {
|
for (int i = 0; i < bar_manager->bar_item_count; i++) {
|
||||||
struct bar_item* bar_item = bar_manager->bar_items[i];
|
struct bar_item* bar_item = bar_manager->bar_items[i];
|
||||||
if (bar_item->position == side && bar_draws_item(bar, bar_item)) {
|
if (bar_item->position == side
|
||||||
|
&& bar_item->type != BAR_COMPONENT_GROUP
|
||||||
|
&& bar_draws_item(bar, bar_item) ) {
|
||||||
int item_length = (bar_manager->position == POSITION_LEFT
|
int item_length = (bar_manager->position == POSITION_LEFT
|
||||||
|| bar_manager->position == POSITION_RIGHT)
|
|| bar_manager->position == POSITION_RIGHT)
|
||||||
? bar_item_get_height(bar_item)
|
? bar_item_get_height(bar_item)
|
||||||
|
|
Loading…
Reference in a new issue