← luna

Commit cba58ab

0
files
+0
added
-0
deleted
@@ -356,9 +356,12 @@ fn build_scene(
356 356 ) {
357 357 let sh = |r: Rect| r.offset(-ox, -oy);
358 358 scene.clear();
359 - scene.fill_rect(
359 + // Tło pulpitu: pionowy gradient (płaskie tło wyglądało jak demo).
360 + fill_vgradient(
361 + scene,
360 362 Rect::from_size(size),
361 - Color::from_rgba8(0x1e, 0x20, 0x28, 0xff),
363 + Color::from_rgba8(0x23, 0x28, 0x3a, 0xff),
364 + Color::from_rgba8(0x0f, 0x11, 0x18, 0xff),
362 365 );
363 366
364 367 {
@@ -428,11 +431,6 @@ fn build_scene(
428 431 }
429 432 }
430 433
431 - scene.text(
432 - TextRun::new(Point::new(16.0, 28.0), "Selene — kompozytor Luna", 14.0)
433 - .with_color(Color::from_rgba8(0xdd, 0xdd, 0xdd, 0xff)),
434 - );
435 -
436 434 // Podgląd okien i przestrzeni (Super+Tab) — rysowany na głównym monitorze.
437 435 if overview && is_primary {
438 436 draw_overview(scene, size, model, current_ws, ws_count);
@@ -447,6 +445,20 @@ fn build_scene(
447 445 }
448 446 }
449 447
448 +/// Wypełnia prostokąt pionowym gradientem (pasami — tanie, a tło nie jest płaskie).
449 +fn fill_vgradient(scene: &mut Scene, rect: Rect, top: Color, bottom: Color) {
450 + const BANDS: usize = 64;
451 + let h = rect.height() / BANDS as f64;
452 + for i in 0..BANDS {
453 + let t = i as f32 / (BANDS - 1) as f32;
454 + let c = top.lerp(bottom, t);
455 + scene.fill_rect(
456 + Rect::from_xywh(rect.x(), rect.y() + i as f64 * h, rect.width(), h + 1.0),
457 + c,
458 + );
459 + }
460 +}
461 +
450 462 /// Rysuje podgląd okien i przestrzeni — kafelki z podglądem treści + pasek przestrzeni.
451 463 fn draw_overview(
452 464 scene: &mut Scene,