728x90
반응형

SetDefaultStatusBarAppearance : 상태바 (상단)
SetDefaultNavigationBarAppearance : 액션바 (하단)

using SimpleToolkit.Core;

namespace Maui.SimpleToolKitTest
{
    public static class MauiProgram
    {
        public static MauiApp CreateMauiApp()
        {
            var builder = MauiApp.CreateBuilder();
            builder
                .UseMauiApp<App>()
                .UseSimpleToolkit()
                .ConfigureFonts(fonts =>
                {
                    fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
                    fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
                });

#if ANDROID

            builder.SetDefaultStatusBarAppearance(color: Color.FromRgb(26, 129, 197), lightElements: false);
            builder.SetDefaultNavigationBarAppearance(color: Colors.White, lightElements: false);

#endif

            return builder.Build();
        }
    }
}

적용전 => 적용후 (상/하단의 Bar 색상이 변경됨)

728x90
반응형
Posted by kjun

댓글을 달아 주세요