feat(guidance): inline cheat-sheets & onboarding
This commit is contained in:
@@ -1822,6 +1822,8 @@ pub struct UiSettings {
|
||||
pub layers: LayerSettings,
|
||||
#[serde(default)]
|
||||
pub animations: AnimationSettings,
|
||||
#[serde(default)]
|
||||
pub guidance: GuidanceSettings,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
@@ -1851,6 +1853,26 @@ impl Default for AccessibilitySettings {
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
pub struct GuidanceSettings {
|
||||
#[serde(default = "GuidanceSettings::default_coach_marks_complete")]
|
||||
pub coach_marks_complete: bool,
|
||||
}
|
||||
|
||||
impl GuidanceSettings {
|
||||
const fn default_coach_marks_complete() -> bool {
|
||||
false
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for GuidanceSettings {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
coach_marks_complete: Self::default_coach_marks_complete(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
pub struct LayerSettings {
|
||||
#[serde(default = "LayerSettings::default_shadow_elevation")]
|
||||
@@ -2095,6 +2117,7 @@ impl Default for UiSettings {
|
||||
accessibility: AccessibilitySettings::default(),
|
||||
layers: LayerSettings::default(),
|
||||
animations: AnimationSettings::default(),
|
||||
guidance: GuidanceSettings::default(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user