refactor(lightcraft-ui-egui): move panels/dialogs.rs to dialogs.rs

This commit is contained in:
aiongg
2026-10-26 20:41:08 +00:00
parent d151df0149
commit ee590a5b9b
4 changed files with 4 additions and 3 deletions
@@ -176,7 +176,7 @@ fn watermark_preview(
pub const ABOUT_TABS: &[(&str, &str)] = &[("about", "About"), ("contributors", "Contributors"), ("models", "Models")];
/// Help ▸ What's New (docs/whats-new.md).
pub const WHATS_NEW: &str = include_str!("../../../../docs/whats-new.md");
pub const WHATS_NEW: &str = include_str!("../../../docs/whats-new.md");
/// The import review and Settings keep window ids of their own, so the size each is given
/// doesn't carry over to the other dialogs.
+1
View File
@@ -14,6 +14,7 @@ mod command_error;
pub mod control;
pub mod credits;
pub mod date_picker;
pub mod dialogs;
pub mod docking;
mod drop_overlay;
pub mod export_task;
+1 -1
View File
@@ -7,7 +7,6 @@ pub mod compare;
pub mod crop_overlay;
pub mod denoise;
pub mod detail;
pub mod dialogs;
pub mod edit;
pub mod empty_library;
pub mod faces;
@@ -44,6 +43,7 @@ pub mod unnamed;
use egui::{Align2, Rect, pos2, vec2};
use crate::LightcraftApp;
pub use crate::dialogs;
use crate::theme::Tokens;
/// Show a side panel the user resizes by dragging its inner edge. `width` (in [`crate::UiState`],
+1 -1
View File
@@ -876,7 +876,7 @@ fn interface_tab(app: &mut LightcraftApp, ui: &mut egui::Ui, t: &Tokens) {
/// which, the three lines each of Info 1 and Info 2 shows, which of them shows briefly when the
/// photo changes, and whether the loupe shows its loading and rendering message
/// (`view.viewOptions`). Changes apply as they are made.
pub(super) fn view_options(app: &mut LightcraftApp, ui: &mut egui::Ui, t: &Tokens) {
pub(crate) fn view_options(app: &mut LightcraftApp, ui: &mut egui::Ui, t: &Tokens) {
use crate::state::{InfoOverlay as I, LoupeInfo, LoupeInfoField as F};
heading(ui, t, crate::i18n::tr("Loupe View"));
let mut show = app.ui.info_overlay != I::Off;