mirror of
https://github.com/storytold/lightcraft.git
synced 2026-10-28 12:08:10 -06:00
refactor(lightcraft-ui-egui): move panels/dialogs.rs to dialogs.rs
This commit is contained in:
@@ -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.
|
||||
@@ -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;
|
||||
|
||||
@@ -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`],
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user