Example #1
0
        private void SetTheme(bool isLight)
        {
            var displayTheme = isLight ? "Light" : "Dark";

            GUISettings.Instance.DisplayTheme = displayTheme;
            ThemeSetterManager.SetTheme(isLight);
            if (_gotQRCode)
            {
                var(image, ok) = QrCodeImageGenerator.GetQRCodeImage(_uuid, isLight);
                if (ok)
                {
                    rect_qrCode.Fill = image;
                }
            }
        }
 private void CheckBoxMode_Unchecked(object sender, RoutedEventArgs e)
 {
     GUISettings.Instance.DisplayTheme = "Light";
     ThemeSetterManager.SetTheme(true);
     rect_qrCode.Fill = QrCodeHelpers.GetQRCode(_uuid);
 }
 private void CheckBoxMode_Unchecked(object sender, RoutedEventArgs e)
 {
     GUISettings.Instance.DisplayTheme = "Light";
     ThemeSetterManager.SetTheme(true);
 }
 private void CheckBoxMode_Checked(object sender, RoutedEventArgs e)
 {
     GUISettings.Instance.DisplayTheme = "Dark";
     ThemeSetterManager.SetTheme(false);
 }