Example #1
0
        protected internal void ToDefault()
        {
            this.GetColors(out var background, out var foreground);

            WindowComposition.Disable(this);
            this.ChangeProperties(background, foreground, SystemColors.WindowFrameColor, this.GetBordersFlagAsThickness(1));
        }
Example #2
0
 protected internal void ToHighContrast()
 {
     if (WindowsVersion.Is10)
     {
         WindowComposition.Disable(this);
     }
     this.ChangeProperties(
         ImmersiveColor.GetColorByTypeName(ImmersiveColorNames.ApplicationBackground),
         ImmersiveColor.GetColorByTypeName(ImmersiveColorNames.SystemText),
         SystemColors.WindowFrameColor,
         this.GetBordersFlagAsThickness(2));
 }