Skip to content

PhotoCraft: An open-source, photo editor written by scratch in pure Rust

Merge current main and retain reviewed PR changes

Nigel Ihza Firdausyb92f49a6cbde
diff --cc crates/ui-egui/src/i18n/ja.tsv
index 672171b5d,e05f27d71..2e8b2b462
--- a/crates/ui-egui/src/i18n/ja.tsv
+++ b/crates/ui-egui/src/i18n/ja.tsv
@@@ -2319,9 -2348,7 +2348,8 @@@ cameraRaw Color カラ�
Sample a pixel anywhere on the screen 画面上の任意のピクセルから色を取得
Click to pick · Esc to cancel クリックで選択 · Escでキャンセル
Pick a screen pixel or press Esc to cancel 画面のピクセルを選択するか、Escでキャンセル
+ Preparing screen capture… 画面キャプチャを準備しています…
Scroll to zoom スクロールしてズーム
- Drag to pan · Scroll to zoom · Double-click to fit ドラッグで移動 · スクロールでズーム · ダブルクリックで全体表示
Show/Hide All Panels すべてのパネルを表示/非表示
Show/Hide Panels パネルを表示/非表示
Could not open 開けませんでした
diff --cc crates/ui-egui/src/lib.rs
index 9a2f45047,38118955c..6440265a0
--- a/crates/ui-egui/src/lib.rs
+++ b/crates/ui-egui/src/lib.rs
@@@ -1740,16 -1816,10 +1816,12 @@@ impl eframe::App for PhotocraftApp
crate::widgets::set_field_resolution(&ctx, dpi, ppi);
// View › Screen Mode › Full Screen Mode: only the image, on black (F or Esc returns).
screen_picker::show(&ctx);
- if screen_picker::busy(&ctx) && screen_picker::showing(&ctx) {
+ if screen_picker::busy(&ctx) {
+ // While the capture service is still returning a snapshot there is no picker
+ // viewport yet. Keep a visible Cancel action even during this phase (#4737).
egui::Modal::new(egui::Id::new("screen-color-wait")).show(&ctx, |ui| {
ui.spinner();
- ui.label(if screen_picker::showing(&ctx) {
- tl!("Pick a screen pixel or press Esc to cancel")
- } else {
- tl!("Preparing screen capture…")
- });
- ui.label(tl!("Pick a screen pixel or press Esc to cancel"));
++ ui.label(if screen_picker::showing(&ctx) { tl!("Pick a screen pixel or press Esc to cancel") } else { tl!("Preparing screen capture…") });
if ui.button(tl!("Cancel")).clicked() {
screen_picker::cancel(&ctx);
}