mirror of
https://github.com/FelixKratz/SketchyBar
synced 2024-11-26 21:30:17 +00:00
respect bracket shadow bounds
This commit is contained in:
parent
c4fe5f4342
commit
f6f3e0cccc
1 changed files with 8 additions and 3 deletions
|
@ -237,6 +237,9 @@ void bar_calculate_bounds(struct bar* bar) {
|
|||
window_set_frame(bar_item_get_window(bar_item, bar->adid), frame);
|
||||
|
||||
if (bar_item->group && group_is_first_member(bar_item->group, bar_item)) {
|
||||
CGPoint shadow_offsets =
|
||||
bar_item_calculate_shadow_offsets(bar_item->group->members[0]);
|
||||
|
||||
uint32_t group_length = group_get_length(bar_item->group);
|
||||
uint32_t group_offset = (bar_item->position == POSITION_RIGHT
|
||||
|| bar_item->position == POSITION_CENTER_LEFT)
|
||||
|
@ -247,7 +250,9 @@ void bar_calculate_bounds(struct bar* bar) {
|
|||
|
||||
CGRect group_frame = {{frame.origin.x - group_offset,
|
||||
frame.origin.y},
|
||||
{group_length,
|
||||
{group_length
|
||||
+ shadow_offsets.x
|
||||
+ shadow_offsets.y,
|
||||
frame.size.height} };
|
||||
|
||||
window_set_frame(bar_item_get_window(bar_item->group->members[0],
|
||||
|
|
Loading…
Reference in a new issue