We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
switch%cx
Similar on how switch%style_label works, but with cx
switch%style_label
cx
let boxBackground = bg => switch%style_label (bg) { | Transparent => [] | Sheet => [backgroundColor(Color.Background.box), boxShadows(BoxShadow.elevation1)] | SheetWithShadowElevation3 => [backgroundColor(Color.Background.box), boxShadows(BoxShadow.elevation3)] | SidebarItemSelected => [backgroundColor(Color.Background.sidebarItemSelected)] | AccentMuted => [backgroundColor(Color.Background.accentMuted)] | NavBarWithShadow => [ backgroundColor(ColorAlt.Background.box), boxShadow(Shadow.box(~inset=true, ~y=`px(-1), Color.Border.lineAlpha)), ] | NavBar => [backgroundColor(ColorAlt.Background.box)] | Code => [backgroundColor(Color.Background.codeAlpha)] | Dark => [backgroundColor(Color.Background.boxDark)] };
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Similar on how
switch%style_label
works, but withcx
The text was updated successfully, but these errors were encountered: