mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-09-28 16:29:34 +08:00
Scrollbar coloring (#755)
This a proposed MR to fix #754. While building the scroll bar the pixels were completely reseted thus canceling any style previously applied to said pixels. This MR removes this resetting of the pixels and leaves only the drawing of the shape of the scroll bar.
This commit is contained in:
@@ -64,7 +64,6 @@ Element vscroll_indicator(Element child) {
|
||||
const bool down = (start_y <= y_down) && (y_down <= start_y + size);
|
||||
|
||||
const char* c = up ? (down ? "┃" : "╹") : (down ? "╻" : " "); // NOLINT
|
||||
screen.PixelAt(x, y) = Pixel();
|
||||
screen.PixelAt(x, y).character = c;
|
||||
}
|
||||
}
|
||||
@@ -121,7 +120,6 @@ Element hscroll_indicator(Element child) {
|
||||
|
||||
const char* c =
|
||||
left ? (right ? "─" : "╴") : (right ? "╶" : " "); // NOLINT
|
||||
screen.PixelAt(x, y) = Pixel();
|
||||
screen.PixelAt(x, y).character = c;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user