Which gives the following to the left of my notch:
Current behaviour
If you delete the line background.height=30 \, the bracket disappears completely. There's no mention I can find of this in the docs, and from what I understand of the examples and plugin code I've seen it's meant to calculate height automatically. Could be wrong about that.
You'll notice left_padding and background.left_padding aren't applying padding. I'm not sure which is intended, for the following reason: a solution is to add default padding_left (code below). I'm not sure why this works, but it means that every item needs to have padding reset if it differs from brackets.
At least a note in the docs about the requirement for background.height on brackets, but ideally calculating height dynamically and removing the requirement.
allowing padding_* and background.padding_* to influence brackets without needing to set defaults.
For someone new to Sketchybar it's unexpected that brackets use the background.* settings for rendering but not the background.padding_* setting. Maybe worth changing that?
Looking forward to hearing from you. Thanks again!
Hi there,
First of all thanks for SketchyBar. It's a fantastic bit of kit.
I'm setting up left-right bars around the notch using the
q-e
anchor + brackets trick.Here's a minimal repro:
Which gives the following to the left of my notch:
Current behaviour
background.height=30 \
, the bracket disappears completely. There's no mention I can find of this in the docs, and from what I understand of the examples and plugin code I've seen it's meant to calculate height automatically. Could be wrong about that.left_padding
andbackground.left_padding
aren't applying padding. I'm not sure which is intended, for the following reason: a solution is to add defaultpadding_left
(code below). I'm not sure why this works, but it means that every item needs to have padding reset if it differs from brackets.Bracket padding hack:
Expected behaviour
background.height
on brackets, but ideally calculating height dynamically and removing the requirement.padding_*
andbackground.padding_*
to influence brackets without needing to set defaults.background.*
settings for rendering but not thebackground.padding_*
setting. Maybe worth changing that?Looking forward to hearing from you. Thanks again!