mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-26 00:57:26 +00:00
Drop imports the shared painters left unused
This commit is contained in:
@@ -12,7 +12,7 @@ use craft_behavior::scroll::ScrollSpan;
|
||||
use craft_behavior::{Axis, ColumnWidth, EditEvent, Granularity, Intent, Metrics, Mixed, NavMove, PartKey, Sense, Wheel};
|
||||
use craft_ui::contract::{
|
||||
Access, Bind, BindMut, CommandSet, Commands as _, Common, Component, Container, ContainerProps, Cx, Edit as _, EditResponse, Focus as _, Name,
|
||||
Outcome, PaintUi, PartsCx, Pointer as _, Props, Remember as _, Role, Sizing, Styled as _, THUMB, WordSetCx as _,
|
||||
Outcome, PaintUi, PartsCx, Pointer as _, Props, Remember as _, Role, Sizing, THUMB, WordSetCx as _,
|
||||
};
|
||||
use craft_ui::primitives::{PaintShape, StrokeWidth};
|
||||
use craft_ui::runtime::access::Numeric;
|
||||
@@ -21,7 +21,7 @@ use craft_ui::runtime::env::{AppValues, EnvValue, EnvView, Label};
|
||||
use craft_ui::runtime::focus::KeyUse;
|
||||
use craft_ui::runtime::motion::{Animate as _, spec};
|
||||
use craft_ui::style::{ComponentStyle, ScrollBarKind, ScrollBarLook, StyleColor, StyleCx, SurfaceKind};
|
||||
use egui::{CornerRadius, Pos2, Rect, Response, Vec2};
|
||||
use egui::{CornerRadius, Pos2, Rect, Response};
|
||||
use std::cell::Cell;
|
||||
use std::ops::Deref;
|
||||
use std::sync::Arc;
|
||||
|
||||
@@ -24,7 +24,7 @@ use super::{Menu, MenuItem, MenuStep};
|
||||
use crate::buttons::face::{self, FaceLook, FaceSpec};
|
||||
use crate::contract::{
|
||||
Access, Bind, Common, Component, Cx, Focus as _, MeasureCx, MenuKey, Name, NoValue, Outcome, OverlayUi, Overlays as _, Pad, PaintUi, PartsCx,
|
||||
Pointer as _, PopupHandle, PopupKind, Props as _, Role, SetPosition, Show as _, ShowContainer as _, Styled as _,
|
||||
Pointer as _, PopupHandle, PopupKind, Props as _, Role, SetPosition, Show as _, ShowContainer as _,
|
||||
};
|
||||
use crate::display::{Divider, Shade, Text};
|
||||
use crate::layout_components::Stack;
|
||||
@@ -399,7 +399,7 @@ impl Component for MenuBar<'_> {
|
||||
type Style = MenuBarStyle;
|
||||
type Output = MenuBarOutput;
|
||||
|
||||
fn style(cx: &StyleCx<'_>, _: MenuBarStyleKey) -> MenuBarStyle {
|
||||
fn style(_: &StyleCx<'_>, _: MenuBarStyleKey) -> MenuBarStyle {
|
||||
MenuBarStyle { metrics: Metrics::new() }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user