Update MudBlazor integration, improve captcha handling, and upgrade project dependencies
This commit is contained in:
@@ -9,89 +9,82 @@ public static class CustomMudTheme
|
||||
PaletteLight = new PaletteLight()
|
||||
{
|
||||
Primary = "#0380C0",
|
||||
//Secondary = CustomColor.Secondary.Default,
|
||||
//Tertiary = CustomColor.Tertiary.Default,
|
||||
|
||||
Background = "#F5F5F5",
|
||||
AppbarBackground = "#F5F5F5",
|
||||
|
||||
//PrimaryContrastText = "#FFFFFF",
|
||||
//SecondaryContrastText = "#FFFFFF",
|
||||
//ErrorContrastText = "#FFFFFF",
|
||||
//SuccessContrastText = "#FFFFFF",
|
||||
//InfoContrastText = "#FFFFFF",
|
||||
//WarningContrastText = "#FFFFFF",
|
||||
TextPrimary = Colors.Gray.Darken3,
|
||||
|
||||
//// TextSecondary = "#FFFFFF",
|
||||
|
||||
//Error = CustomColor.Error.Default,
|
||||
//ErrorLighten = CustomColor.Error.Error100,
|
||||
|
||||
//// Info = "#3977AD",
|
||||
//InfoLighten = CustomColor.Info.Lighten,
|
||||
//InfoDarken = CustomColor.Info.Darken,
|
||||
|
||||
//// Success = "#05AF82",
|
||||
//SuccessDarken = CustomColor.Success.Darken,
|
||||
//SuccessLighten = CustomColor.Success.Lighten,
|
||||
|
||||
////Warning = "#EF7300",
|
||||
//WarningDarken = CustomColor.Warning.Lighten,
|
||||
//WarningLighten = CustomColor.Warning.Lighten,
|
||||
|
||||
//BackgroundGrey = CustomColor.Other.Background,
|
||||
//GrayDefault = CustomColor.Other.Background,
|
||||
//GrayDark = CustomColor.Gray.Gray10,
|
||||
//GrayLight = CustomColor.Gray.Gray60,
|
||||
//GrayLighter = CustomColor.Gray.Gray80,
|
||||
|
||||
|
||||
//TextDisabled = CustomColor.Other.DisableText,
|
||||
//ActionDisabled = CustomColor.Other.DisableText,
|
||||
//ActionDisabledBackground = CustomColor.Other.DisableBackground,
|
||||
|
||||
Surface = "#FFFFFF",
|
||||
Divider = "#B2BFCB",
|
||||
},
|
||||
|
||||
Typography = new Typography()
|
||||
Typography = new Typography
|
||||
{
|
||||
// پایه
|
||||
Default = new Default()
|
||||
Default = new DefaultTypography()
|
||||
{
|
||||
FontFamily = new[] { "Vazir", "Tahoma", "Segoe UI", "Arial", "sans-serif" }
|
||||
},
|
||||
|
||||
// هدینگها (اسکیل متعادل برای وب)
|
||||
H1 = new H1 { FontFamily = new[] { "Vazir" }, FontSize = "2rem", LineHeight = 1.70, FontWeight = 800, LetterSpacing = "normal" }, // ~32px
|
||||
H2 = new H2 { FontFamily = new[] { "Vazir" }, FontSize = "1.875rem", LineHeight = 1.65, FontWeight = 800, LetterSpacing = "normal" }, // ~30px
|
||||
H3 = new H3 { FontFamily = new[] { "Vazir" }, FontSize = "1.5rem", LineHeight = 1.60, FontWeight = 800, LetterSpacing = "normal" }, // ~24px
|
||||
H4 = new H4 { FontFamily = new[] { "Vazir" }, FontSize = "1.25rem", LineHeight = 1.55, FontWeight = 800, LetterSpacing = "normal" }, // ~20px
|
||||
H5 = new H5 { FontFamily = new[] { "Vazir" }, FontSize = "1.125rem", LineHeight = 1.50, FontWeight = 800, LetterSpacing = "normal" }, // ~18px
|
||||
H6 = new H6 { FontFamily = new[] { "Vazir" }, FontSize = "1rem", LineHeight = 1.45, FontWeight = 800, LetterSpacing = "normal" }, // ~16px
|
||||
|
||||
// Subtitles
|
||||
Subtitle1 = new Subtitle1 { FontFamily = new[] { "Vazir" }, FontSize = "1rem", LineHeight = 1.62, FontWeight = 500, LetterSpacing = "normal" },
|
||||
Subtitle2 = new Subtitle2 { FontFamily = new[] { "Vazir" }, FontSize = "0.875rem", LineHeight = 1.60, FontWeight = 500, LetterSpacing = "normal" },
|
||||
|
||||
// Body text (برای خوانایی بازتر از هدینگها)
|
||||
Body1 = new Body1 { FontFamily = new[] { "Vazir" }, FontSize = "1rem", LineHeight = 1.85, FontWeight = 400, LetterSpacing = "normal" },
|
||||
Body2 = new Body2 { FontFamily = new[] { "Vazir" }, FontSize = "0.875rem", LineHeight = 1.80, FontWeight = 400, LetterSpacing = "normal" },
|
||||
|
||||
// Small text
|
||||
Caption = new Caption { FontFamily = new[] { "Vazir" }, FontSize = "0.75rem", LineHeight = 1.60, FontWeight = 400, LetterSpacing = "normal" },
|
||||
Overline = new Overline { FontFamily = new[] { "Vazir" }, FontSize = "0.75rem", LineHeight = 1.60, FontWeight = 500, LetterSpacing = "normal" },
|
||||
|
||||
// Buttons
|
||||
Button = new Button
|
||||
H1 = new H1Typography()
|
||||
{
|
||||
FontFamily = new[] { "Vazir" },
|
||||
FontSize = "0.875rem",
|
||||
LineHeight = 1.60,
|
||||
FontWeight = 600,
|
||||
LetterSpacing = "normal",
|
||||
TextTransform = "none" // حروف بزرگ اجباری غیرفعال
|
||||
FontFamily = new[] { "Vazir" }, FontSize = "2rem", LineHeight = "1.70", FontWeight = "800",
|
||||
LetterSpacing = "normal"
|
||||
},
|
||||
H2 = new H2Typography()
|
||||
{
|
||||
FontFamily = new[] { "Vazir" }, FontSize = "1.875rem", LineHeight = "1.65", FontWeight = "800",
|
||||
LetterSpacing = "normal"
|
||||
},
|
||||
H3 = new H3Typography()
|
||||
{
|
||||
FontFamily = new[] { "Vazir" }, FontSize = "1.5rem", LineHeight = "1.60", FontWeight = "800",
|
||||
LetterSpacing = "normal"
|
||||
},
|
||||
H4 = new H4Typography()
|
||||
{
|
||||
FontFamily = new[] { "Vazir" }, FontSize = "1.25rem", LineHeight = "1.55", FontWeight = "800",
|
||||
LetterSpacing = "normal"
|
||||
},
|
||||
H5 = new H5Typography()
|
||||
{
|
||||
FontFamily = new[] { "Vazir" }, FontSize = "1.125rem", LineHeight = "1.50", FontWeight = "800",
|
||||
LetterSpacing = "normal"
|
||||
},
|
||||
H6 = new H6Typography()
|
||||
{
|
||||
FontFamily = new[] { "Vazir" }, FontSize = "1rem", LineHeight = "1.45", FontWeight = "800",
|
||||
LetterSpacing = "normal"
|
||||
},
|
||||
Subtitle1 = new Subtitle1Typography()
|
||||
{
|
||||
FontFamily = new[] { "Vazir" }, FontSize = "1rem", LineHeight = "1.62", FontWeight = "500",
|
||||
LetterSpacing = "normal"
|
||||
},
|
||||
Subtitle2 = new Subtitle2Typography()
|
||||
{
|
||||
FontFamily = new[] { "Vazir" }, FontSize = "0.875rem", LineHeight = "1.60", FontWeight = "500",
|
||||
LetterSpacing = "normal"
|
||||
},
|
||||
Body1 = new Body1Typography()
|
||||
{
|
||||
FontFamily = new[] { "Vazir" }, FontSize = "1rem", LineHeight = "1.85", FontWeight = "400",
|
||||
LetterSpacing = "normal"
|
||||
},
|
||||
Body2 = new Body2Typography()
|
||||
{
|
||||
FontFamily = new[] { "Vazir" }, FontSize = "0.875rem", LineHeight = "1.80", FontWeight = "400",
|
||||
LetterSpacing = "normal"
|
||||
},
|
||||
Caption = new CaptionTypography()
|
||||
{
|
||||
FontFamily = new[] { "Vazir" }, FontSize = "0.75rem", LineHeight = "1.60", FontWeight = "400",
|
||||
LetterSpacing = "normal"
|
||||
},
|
||||
Overline = new OverlineTypography()
|
||||
{
|
||||
FontFamily = new[] { "Vazir" }, FontSize = "0.75rem", LineHeight = "1.60", FontWeight = "500",
|
||||
LetterSpacing = "normal"
|
||||
},
|
||||
Button = new ButtonTypography()
|
||||
{
|
||||
FontFamily = new[] { "Vazir" }, FontSize = "0.875rem", LineHeight = "1.60", FontWeight = "600",
|
||||
LetterSpacing = "normal", TextTransform = "none"
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@@ -2,5 +2,5 @@
|
||||
|
||||
public static class UrlUtility
|
||||
{
|
||||
public static string DownloadUrl { get; set; }
|
||||
public static string DownloadUrl { get; set; } = string.Empty; // initialize to avoid null
|
||||
}
|
||||
Reference in New Issue
Block a user