-
Notifications
You must be signed in to change notification settings - Fork 8.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move implementation of padding to DxRenderer #1672
Conversation
I'm wondering if the better place to handle this is in sizing the SwapChainPanel -- the renderer will happily render into a box of any size, and it'll be safer in general to hold back too many renderer changes 😄 (EDIT)
This is a good point though! |
@miniksa has an opinion here, i'm sure. |
I appreciate the concept here, but all I have is:
So I am inclined to say "no not right now" because I don't want to make my own life harder when I finally do have time to do more bulk rendering work. But I also don't want to shun something perfectly good. |
This seems superficially fine to me, though I kinda want to know the benefits of this one over #1778 which looks like the same-ish thing. |
Wouldn't applying the padding to the Swapchain's Margin, also affect the background colour, and any Acrylic brushes on them? As opposed to changing the position of the character/glyph rendering? Or have I misunderstood it? |
@zadjii-msft There are 2 benefits:
I started some drafts on selection outlining and the 2. point was the problem. That's why I've choosen renderer solution over xaml one. |
I'd like to take #1778 now and hold this one until a bit later when I get a chance to go deeper into the DX renderer. No slight to you, I hear your arguments why it should be on this side. I just feel more comfortable with the smaller change to the higher level at this point in time. |
I'm going to close this one out for now, but that isn't because we're not considering this approach. We're planning on tackling renderer changes in the medium-term future. 😄 |
Summary of the Pull Request
Moved padding from
TermControl
toDxRenderer
. It solves problems with handling pointer input at padded area, since now this is the same control as the text is (#1367). Since this removes padding from_root
element, scrollbar now sticks to the right edge (#1365).It allows the renderer to draw on that area, which can be now somehow used. Specifically, it prevents potential effects from being cut on the char grid edge, when there is still some space for them (like selection outlining, which I would like).
References
PR Checklist
Detailed Description of the Pull Request / Additional comments
DxRendere
since padding is only used there.Validation Steps Performed
Set padding, click or select both inside and outside padding, change padding at rutime.