migrate ui crate to new theme tokens
This commit is contained in:
@@ -35,7 +35,7 @@ pub use layout::{
|
||||
pub use notification::*;
|
||||
pub use paint::{
|
||||
INK_FILL_SCALE, INK_HAIRLINE_SCALE, SCRIM_ALPHA_DARK, band, current_appearance, hairline, ink,
|
||||
scrim, set_current_appearance, surface_shadows, wash,
|
||||
plate_active, plate_hover, scrim, set_current_appearance, surface_shadows, wash,
|
||||
};
|
||||
pub use platform_kind::PlatformKind;
|
||||
pub use registry::*;
|
||||
|
||||
@@ -179,3 +179,13 @@ pub(crate) fn plate_hover_for(appearance: ThemeMode, plate: gpui::Hsla) -> gpui:
|
||||
pub(crate) fn plate_active_for(appearance: ThemeMode, plate: gpui::Hsla) -> gpui::Hsla {
|
||||
crate::color::flatten(ink_for(appearance, 0.16), plate)
|
||||
}
|
||||
|
||||
/// Hover over an opaque plate, for call sites outside this crate.
|
||||
pub fn plate_hover(plate: gpui::Hsla) -> gpui::Hsla {
|
||||
plate_hover_for(current_appearance(), plate)
|
||||
}
|
||||
|
||||
/// Pressed over an opaque plate, for call sites outside this crate.
|
||||
pub fn plate_active(plate: gpui::Hsla) -> gpui::Hsla {
|
||||
plate_active_for(current_appearance(), plate)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user