Skip to content

Commit

Permalink
change PaletteDark
Browse files Browse the repository at this point in the history
  • Loading branch information
neozhu committed Jan 26, 2025
1 parent 34aa728 commit 7423483
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 23 deletions.
20 changes: 10 additions & 10 deletions src/Server.UI/Services/UserPreferences/UserPreference.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,21 @@ public class UserPreference
public static readonly List<string> PrimaryColors = new()
{
"#2d4275", // 蓝色
"#6A1B9A", // 深紫色
"#7928ca", // 深紫色
"#4CAF50" , // 绿色
"#FF9800", // 橙色
"#F44336", // 红色
"#FF69B4" // 粉色
"#f7b955", // 橙色
"#f33f33", // 红色
"#ff0080" // 粉色
};

public static readonly List<string> DarkPrimaryColors = new()
{
"#0077b6", // 蓝色的暗色调
"#a541be", // 深紫色的暗色调
"#388E3C", // 绿色的暗色调
"#FB8C00", // 橙色的暗色调
"#ca322d", // 红色的暗色调
"#cf2d86", // 粉色的暗色调
"#0170f3", // 蓝色的暗色调
"#7928ca", // 深紫色的暗色调
"#50e3c2", // 绿色的暗色调
"#f33f33", // 红色的暗色调
"#ff0080", // 粉色的暗色调
"#666666", // 灰色的暗色调
};

/// <summary>
Expand Down
29 changes: 16 additions & 13 deletions src/Server.UI/Themes/Theme.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,35 +42,38 @@ public static MudTheme ApplicationTheme()
},
PaletteDark = new PaletteDark
{
Primary = "#5052ba",
Primary = "#0170f3",
Secondary = "#A5A5A5",
Success = "#0CAD39",
Info = "#4099f3",
Warning = "#f0c42b",
Error = "#e02d48",
Error = "#f33f33",
ErrorContrastText = "#ffffff",
ErrorDarken = "#e02d48",
ErrorLighten = "#ff3333",
Tertiary = "#20c997",
Tertiary = "#ff0080",
Black = "#000000",
White = "#ffffff",
Background = "#202124",
Surface = "#303134",
AppbarBackground = "rgba(32, 33, 36, 0.8)",
AppbarText = "rgba(255, 255, 255, 0.7)",
DrawerBackground = "#303134",
Background = "#111111",
Surface = "#222222",
AppbarBackground = "rgba(17,17,17,0.8)",
AppbarText = "rgba(255, 255, 255, 0.75)",
DrawerText = "rgba(255, 255, 255, 0.75)",
DrawerBackground = "#222222",
TextPrimary = "#DADADA",
TextSecondary = "#A8A8A8",
TextDisabled = "rgba(255, 255, 255, 0.3)",
SecondaryContrastText = "#D5D5D5",
TextSecondary = "rgba(255, 255, 255, 0.6)",
TextDisabled = "rgba(255, 255, 255, 0.38)",
ActionDefault = "#e8eaed",
ActionDisabled = "rgba(255, 255, 255, 0.26)",
ActionDisabledBackground = "rgba(255, 255, 255, 0.12)",
Divider = "#3F4452",
Divider = "#333333",
DividerLight = "rgba(255, 255, 255, 0.06)",
TableLines = "rgba(63, 68, 82, 0.6)",
LinesDefault = "#3F4452",
LinesDefault = "#333333",
LinesInputs = "rgba(255, 255, 255, 0.3)",
DarkContrastText= "#092750",
SecondaryContrastText = "#D5D5D5",
PrimaryContrastText = "#092750",
},
LayoutProperties = new LayoutProperties
{
Expand Down

0 comments on commit 7423483

Please sign in to comment.