chore: audit components
This commit is contained in:
@@ -55,7 +55,7 @@ pub(crate) fn resolve(
|
||||
mode_override: Option<ThemeVariant>,
|
||||
) -> ResolvedTheme {
|
||||
let variant = mode_override
|
||||
.or(preset.and_then(|def| def.mode))
|
||||
.or(preset.and_then(|def| def.mode()))
|
||||
.unwrap_or(system.variant);
|
||||
|
||||
let base = match variant {
|
||||
@@ -246,7 +246,7 @@ pub(crate) fn resolve(
|
||||
let mut radius = Radius::default();
|
||||
|
||||
if let Some(control) = preset
|
||||
.and_then(|def| def.control_radius)
|
||||
.and_then(|def| def.control_radius())
|
||||
.map(px)
|
||||
.or(system.control_radius)
|
||||
{
|
||||
@@ -254,7 +254,7 @@ pub(crate) fn resolve(
|
||||
}
|
||||
|
||||
if let Some(overlay) = preset
|
||||
.and_then(|def| def.overlay_radius)
|
||||
.and_then(|def| def.overlay_radius())
|
||||
.map(px)
|
||||
.or(system.overlay_radius)
|
||||
{
|
||||
@@ -262,7 +262,7 @@ pub(crate) fn resolve(
|
||||
}
|
||||
|
||||
if let Some(sm) = preset
|
||||
.and_then(|def| def.sm_radius)
|
||||
.and_then(|def| def.sm_radius())
|
||||
.map(px)
|
||||
.or(system.sm_radius)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user