Add padding property to background image #9125

Closed
opened 2026-01-31 01:46:40 +00:00 by claunia · 3 comments
Owner

Originally created by @jt-github on GitHub (Jun 18, 2020).

For those of us that like to have a little icon as a background to help remind us of which tab we're in, the backgroundImage, backgroundImageAlignment (I prefer topRight), and backgroundImageStretchMode (I prefer none) are perfect. That sort of thing is usually desirable for images that fill up the whole pane, but smaller images that live somewhere other than the center of the pane are forced to slam up against the edges.

I propose a new property to allow adding a little space between the image and the edges of the pane:
backgroundImagePadding

Originally created by @jt-github on GitHub (Jun 18, 2020). For those of us that like to have a little icon as a background to help remind us of which tab we're in, the `backgroundImage`, `backgroundImageAlignment` (I prefer `topRight`), and `backgroundImageStretchMode` (I prefer `none`) are perfect. That sort of thing is usually desirable for images that fill up the whole pane, but smaller images that live somewhere other than the center of the pane are forced to slam up against the edges. I propose a new property to allow adding a little space between the image and the edges of the pane: `backgroundImagePadding`
claunia added the Resolution-Duplicate label 2026-01-31 01:46:40 +00:00
Author
Owner

@DHowett commented on GitHub (Jun 19, 2020):

Thanks for the request! This sounds like a /duplicate of #2620 to me, so I'm gonna close it out. I think this use case would totally be subsumed by offsetX/offsetY 😄

@DHowett commented on GitHub (Jun 19, 2020): Thanks for the request! This sounds like a /duplicate of #2620 to me, so I'm gonna close it out. I think this use case would totally be subsumed by offsetX/offsetY :smile:
Author
Owner

@ghost commented on GitHub (Jun 19, 2020):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (Jun 19, 2020): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Author
Owner

@jt-github commented on GitHub (Jun 19, 2020):

Thanks for the quick action and for finding that this is a duplicate, @DHowett, and yes, the offsets would handle this nicely.

@jt-github commented on GitHub (Jun 19, 2020): Thanks for the quick action and for finding that this is a duplicate, @DHowett, and yes, the offsets would handle this nicely.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#9125