Esempio n. 1
0
        /// <inheritdoc/>
        protected override void BuildClasses(ClassBuilder builder)
        {
            builder.Append(ClassProvider.Bar());
            builder.Append(ClassProvider.BarThemeContrast(ThemeContrast), ThemeContrast != ThemeContrast.None);
            builder.Append(ClassProvider.BarBreakpoint(Breakpoint), Breakpoint != Breakpoint.None);
            builder.Append(ClassProvider.FlexAlignment(Alignment), Alignment != Alignment.None);
            builder.Append(ClassProvider.BarMode(Mode));

            base.BuildClasses(builder);
        }
Esempio n. 2
0
        protected override void RegisterClasses()
        {
            ClassMapper
            .Add(() => ClassProvider.Bar())
            .If(() => ClassProvider.BackgroundColor(Background), () => Background != Background.None)
            .If(() => ClassProvider.BarThemeContrast(ThemeContrast), () => ThemeContrast != ThemeContrast.None)
            .If(() => ClassProvider.BarBreakpoint(Breakpoint), () => Breakpoint != Breakpoint.None)
            .If(() => ClassProvider.FlexAlignment(Alignment), () => Alignment != Alignment.None);

            base.RegisterClasses();
        }