import { TypeScale } from "../typography.slint"; import { LayoutMetrics } from "../design-system.slint"; // Navigation labels share the body type scale so OS text preferences apply. export global SidebarStyle { out property label-size: TypeScale.body; out property icon-size: LayoutMetrics.icon-size; out property icon-left: 22px; out property label-offset: 30px; out property branch-indent: 16px; out property normal-weight: 500; out property selected-weight: 600; } // Shared row surface for mail, contact scopes and calendar sources. export component SidebarRowSurface inherits Rectangle { in property idle-background: transparent; in property hover-background; in property active-background: hover-background; in property hovered: false; in property active: false; height: 32px; border-radius: 6px; background: root.active ? root.active-background : root.hovered ? root.hover-background : root.idle-background; animate background { duration: 120ms; } }