chore: restrict ui crate visibility and drop unused components

This commit is contained in:
2026-10-03 19:57:56 +07:00
parent 1f350f511e
commit 88d3840fd2
20 changed files with 67 additions and 1687 deletions
+2 -7
View File
@@ -18,7 +18,7 @@ use crate::notification::{Notification, NotificationList};
#[derive(Clone)]
#[allow(clippy::type_complexity)]
pub struct ActiveDialog {
pub(crate) struct ActiveDialog {
focus_handle: FocusHandle,
/// The previous focused handle before opening the dialog.
previous_focused_handle: Option<WeakFocusHandle>,
@@ -193,11 +193,6 @@ impl Root {
cx.notify();
}
/// Check if there are any active dialogs.
pub fn has_active_dialogs(&self) -> bool {
!self.active_dialogs.is_empty()
}
/// Push a notification to the notification layer.
pub fn push_notification<T>(&mut self, note: T, window: &mut Window, cx: &mut Context<'_, Root>)
where
@@ -393,7 +388,7 @@ impl Render for Root {
}
/// Get the window paddings.
pub fn window_paddings(window: &Window, _cx: &App) -> Edges<Pixels> {
pub(crate) fn window_paddings(window: &Window, _cx: &App) -> Edges<Pixels> {
match window.window_decorations() {
Decorations::Server => Edges::all(px(0.0)),
Decorations::Client { tiling } => {