Exemplo n.º 1
0
        private void UpdateThemeAndNotify()
        {
            var isLight = _uiSettings.GetColorValue(UIColorType.Background) == Colors.Black;

            if (isLight != IsLight)
            {
                IsLight = isLight;
                AppSettings.NotifyThemeChanged();
                TitleBarHelper.SetupTitleBarColor(IsLight ?? false);
                Messenger.Default.Send(new GenericMessage <bool>(IsLight ?? false), MessengerTokens.THEME_CHANGED);
            }
        }
Exemplo n.º 2
0
#pragma warning disable 1998

        protected async override void OnLaunched(LaunchActivatedEventArgs e)
        {
#if DEBUG
            if (System.Diagnostics.Debugger.IsAttached)
            {
                DebugSettings.EnableFrameRateCounter = true;
            }
#endif
            if (e.PrelaunchActivated)
            {
                return;
            }

            CoreApplication.GetCurrentView().TitleBar.ExtendViewIntoTitleBar = true;

            var task = JumpListHelper.SetupJumpList();
            CreateFrameAndNavigate(e.Arguments);

            TitleBarHelper.SetupTitleBarColor(true);
        }