Skip to content

Commit

Permalink
Rename property to HudImageTintColor
Browse files Browse the repository at this point in the history
  • Loading branch information
Cheesebaron committed May 13, 2024
1 parent 4d1adaa commit bdc85b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion BTProgressHUD/ProgressHUD.cs
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ private void ShowImageWorker(UIImage image, string? status, MaskType maskType, T
Show(null, -1F, maskType);
}

ImageView.TintColor = ProgressHUDAppearance.HudForegroundColor;
ImageView.TintColor = ProgressHUDAppearance.HudImageTintColor;
ImageView.Image = image.ImageWithRenderingMode(UIImageRenderingMode.AlwaysTemplate);
ImageView.Hidden = false;
StringLabel.Text = status;
Expand Down
6 changes: 3 additions & 3 deletions BTProgressHUD/ProgressHUDAppearance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public static class ProgressHUDAppearance
UIColor.SystemBackground.ColorWithAlpha(0.8f) :
UIColor.White.ColorWithAlpha(0.8f);

public static UIColor DefaultHudForegroundColor { get; } =
public static UIColor DefaultHudImageTintColor { get; } =
OperatingSystem.IsIOSVersionAtLeast(13, 0) || OperatingSystem.IsMacCatalystVersionAtLeast(13) ?
UIColor.Label.ColorWithAlpha(0.8f) :
UIColor.FromWhiteAlpha(0.0f, 0.8f);
Expand Down Expand Up @@ -79,7 +79,7 @@ public static class ProgressHUDAppearance
/// <summary>
/// Get or set image tint color
/// </summary>
public static UIColor HudForegroundColor { get; set; } = DefaultHudForegroundColor;
public static UIColor HudImageTintColor { get; set; } = DefaultHudImageTintColor;

/// <summary>
/// Get or set background color of toast
Expand Down Expand Up @@ -131,7 +131,7 @@ public static void ResetToDefaults()

HudCornerRadius = DefaultHudCornerRadius;
HudBackgroundColor = DefaultHudBackgroundColor;
HudForegroundColor = DefaultHudForegroundColor;
HudImageTintColor = DefaultHudImageTintColor;
HudToastBackgroundColor = DefaultHudToastBackgroundColor;
HudFont = DefaultHudFont;
HudButtonFont = DefaultHudFont;
Expand Down

0 comments on commit bdc85b5

Please sign in to comment.