mirror of
https://github.com/storytold/gridcraft.git
synced 2026-10-27 20:26:48 -06:00
Merge PR #2086: Grid: paint the scrollbar's column beside the column headings (white corner in dark mode)
This commit is contained in:
@@ -784,6 +784,9 @@ pub fn show(app: &mut SheetApp, ui: &mut egui::Ui) {
|
||||
context_menu(app, ui);
|
||||
object_menu(app, ui);
|
||||
let track_x = if rtl { (available.left(), rect.left()) } else { (rect.right(), available.right()) };
|
||||
// The track starts below the column headings and frozen rows; the bar's column beside them
|
||||
// takes its colour too instead of showing a light square in dark mode.
|
||||
ui.painter().rect_filled(Rect::from_min_max(pos2(track_x.0, rect.top()), pos2(track_x.1, rect.bottom())), 0.0, t.tab_bar);
|
||||
vertical_scrollbar(app, ui, sh, &geo, track_x, max_y, &t);
|
||||
if app.session.clipboard.is_some() {
|
||||
// By the clock, not per frame: a gliding outline repaints more often than the ants step.
|
||||
|
||||
Reference in New Issue
Block a user