| | @@ -247,7 +247,7 @@ fn explorer_double_click_opens_only_folders_and_resets_selection() { |
| 247 | 247 | } |
| 248 | 248 | |
| 249 | 249 | #[test] |
| 250 | | -삭제: fn explorer_marquee_selects_intersections_and_ctrl_adds_with_an_opaque_blue_rectangle() { |
| 250 | +추가: fn explorer_marquee_selects_intersections_and_ctrl_adds_with_a_translucent_blue_rectangle() { |
| 251 | 251 | let scratch = Folder::new(); |
| 252 | 252 | let mut s = Explorer::new(&scratch); |
| 253 | 253 | s.click("docs", egui::Modifiers::NONE); |
| | @@ -257,7 +257,16 @@ fn explorer_marquee_selects_intersections_and_ctrl_adds_with_an_opaque_blue_rect |
| 257 | 257 | s.pointer(start, true, explorer_ctrl()); |
| 258 | 258 | let output = s.frame(explorer_ctrl(), vec![egui::Event::PointerMoved(end)]); |
| 259 | 259 | s.selected(&[0, 1, 2, 3, 4, 5]); |
| 260 | | -삭제: assert!(output.shapes.iter().any(|shape| matches!(&shape.shape, Shape::Rect(rect) if rect.fill == zipelo_ui_memory_app::archive_theme::BLUE && rect.rect.height() > 100.0 && rect.fill.a() == 255))); |
| 260 | +추가: assert!(output.shapes.iter().any(|shape| matches!( |
| 261 | +추가: &shape.shape, |
| 262 | +추가: Shape::Rect(rect) |
| 263 | +추가: if rect.fill == zipelo_ui_memory_app::archive_theme::BLUE.gamma_multiply(0.16) |
| 264 | +추가: && rect.rect.height() > 100.0 |
| 265 | +추가: && rect.fill.a() > 0 |
| 266 | +추가: && rect.fill.a() < 255 |
| 267 | +추가: && rect.stroke == egui::Stroke::new(1.0, zipelo_ui_memory_app::archive_theme::BLUE) |
| 268 | +추가: && rect.stroke_kind == egui::StrokeKind::Inside |
| 269 | +추가: ))); |
| 261 | 270 | s.pointer(end, false, explorer_ctrl()); |
| 262 | 271 | s.selected(&[0, 1, 2, 3, 4, 5]); |
| 263 | 272 | let start = egui::pos2(row.right() + 8.0, s.body().bottom() - 5.0); |