[Bug]: Desktop: Dialog scrim doesn't dim artwork or backdrops

Đang mở
#126 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
50/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust
Lĩnh vực
desktop

Hướng nghiên cứu

Start at the scrim in desktop/app/src/ui/overlay.rs:22, then find where the poster, card and title-backdrop primitives are drawn and how their draw order relates to the scrim layer. Reproduce with cargo run --locked -- --scene discover --snapshot /tmp/a.png versus --scene add, and the same for title versus releases, comparing pixels. Done means every element behind an open dialog dims while the dialog panel still covers correctly.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug

[!NOTE]
This issue was written by Claude (Claude Opus 5.5) from a review session of the desktop app (#80) with @PhrolovaMoe. It was found in headless renders of the debug build's fixture scenes (--snapshot), not on a live server.

Version

0.40.0 (feat/desktop, 017a837b)

Area

Other (desktop app)

What happened?

Behind a dialog, text and panels are dimmed by the scrim (desktop/app/src/ui/overlay.rs:22), but posters, cards and the title backdrop aren't: their pixels are identical with and without the dialog open. They're drawn by custom shader primitives, which end up on top of the scrim. The dialog panel itself still covers them correctly.

Steps to reproduce

From desktop/, with a debug build: compare cargo run --locked -- --scene discover --snapshot /tmp/a.png with --scene add --snapshot /tmp/b.png: the poster at the left is just as bright in both. Same for --scene title vs --scene releases (the backdrop).

Expected behavior

Everything behind a dialog dims the same way.

Suggested fix

Draw the scrim (and the dialog) in a layer above the primitives, or have the artwork/backdrop primitives take the dimming into account while an overlay is open.

Ngôn ngữ chính
TypeScript
Star
4
Fork
1
Merge trung bình
4 giờ 49 phút
Pull request đã merge (30 ngày)
5

Chuẩn bị môi trường

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của tinystream-dev/tinystream

Tất cả issue của tinystream-dev/tinystream

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.