Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ add color style #521

Merged
merged 1 commit into from
Oct 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/Blazor.Server.UI/Pages/Documents/Documents.razor
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
<CellTemplate>
<div class="d-flex flex-column">
<MudText Typo="Typo.body2">@context.Item.Title</MudText>
<MudText Typo="Typo.body2">@context.Item.Description</MudText>
<MudText Typo="Typo.body2" Style="@($"color:{Theme.Theme.ApplicationTheme().Palette.TextSecondary}")">@context.Item.Description</MudText>
</div>
</CellTemplate>
</PropertyColumn>
Expand All @@ -166,7 +166,7 @@
}
</div>
<div class="flex-grow-0">
<MudHighlighter Typo="Typo.body2" Text="@context.Item.Content" HighlightedText="@_searchString"></MudHighlighter>
<MudHighlighter Typo="Typo.body2" Text="@context.Item.Content" HighlightedText="@_searchString" Style="@($"color:{Theme.Theme.ApplicationTheme().Palette.TextSecondary}")"></MudHighlighter>
</div>
</div>
</CellTemplate>
Expand All @@ -175,7 +175,7 @@
<CellTemplate>
<div class="d-flex flex-column">
<MudCheckBox Size="Size.Small" Label="@L[_currentDto.GetMemberDescription(x=>x.IsPublic)]" Checked="@context.Item.IsPublic" Disabled="true"></MudCheckBox>
<MudText Typo="Typo.body2">@context.Item.DocumentType</MudText>
<MudText Typo="Typo.body2" Style="@($"color:{Theme.Theme.ApplicationTheme().Palette.TextSecondary}")">@context.Item.DocumentType</MudText>
</div>
</CellTemplate>
</PropertyColumn>
Expand All @@ -189,7 +189,7 @@
{
<div class="d-flex flex-column">
<MudText>@context.Item.Owner?.DisplayName</MudText>
<MudText Typo="Typo.body2">@context.Item.Owner?.Email</MudText>
<MudText Typo="Typo.body2" Style="@($"color:{Theme.Theme.ApplicationTheme().Palette.TextSecondary}")">@context.Item.Owner?.Email</MudText>
</div>
}
</CellTemplate>
Expand All @@ -198,7 +198,7 @@
<CellTemplate>
<div class="d-flex flex-column">
<MudText Typo="Typo.body2">@context.Item.TenantName</MudText>
<MudText Typo="Typo.body2">@context.Item.TenantId</MudText>
<MudText Typo="Typo.body2" Style="@($"color:{Theme.Theme.ApplicationTheme().Palette.TextSecondary}")">@context.Item.TenantId</MudText>
</div>
</CellTemplate>
</PropertyColumn>
Expand Down
2 changes: 1 addition & 1 deletion src/Blazor.Server.UI/Pages/Identity/Roles/Roles.razor
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@
<CellTemplate>
<div class="d-flex flex-column">
<MudText Typo="Typo.body2">@context.Item.Name</MudText>
<MudText Typo="Typo.body2">@context.Item.Description</MudText>
<MudText Typo="Typo.body2" Style="@($"color:{Theme.Theme.ApplicationTheme().Palette.TextSecondary}")">@context.Item.Description</MudText>
</div>
</CellTemplate>
<FooterTemplate>
Expand Down
6 changes: 3 additions & 3 deletions src/Blazor.Server.UI/Pages/Identity/Users/Users.razor
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@
<CellTemplate>
<div>
<MudText Typo="Typo.body2">@context.Item.TenantName</MudText>
<MudText Typo="Typo.body2">@context.Item.TenantId</MudText>
<MudText Typo="Typo.body2" Style="@($"color:{Theme.Theme.ApplicationTheme().Palette.TextSecondary}")">@context.Item.TenantId</MudText>
</div>
</CellTemplate>
<FooterTemplate>
Expand All @@ -223,7 +223,7 @@
</MudBadge>
<div class="pl-3">
<MudText Class="ml-2 align-self-center">@context.Item.UserName</MudText>
<MudText Typo="Typo.body2" Class="ml-2 align-self-center">@context.Item.Email</MudText>
<MudText Typo="Typo.body2" Class="ml-2 align-self-center" Style="@($"color:{Theme.Theme.ApplicationTheme().Palette.TextSecondary}")">@context.Item.Email</MudText>
</div>

</CellTemplate>
Expand All @@ -232,7 +232,7 @@
<CellTemplate>
<div class="d-flex flex-column">
<MudText Typo="Typo.body2">@context.Item.DisplayName</MudText>
<MudText Typo="Typo.body2">@context.Item.PhoneNumber</MudText>
<MudText Typo="Typo.body2" Style="@($"color:{Theme.Theme.ApplicationTheme().Palette.TextSecondary}")">@context.Item.PhoneNumber</MudText>
</div>
</CellTemplate>
</PropertyColumn>
Expand Down
2 changes: 1 addition & 1 deletion src/Blazor.Server.UI/Pages/Products/Products.razor
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@
<CellTemplate>
<div class="d-flex flex-column">
<MudText Typo="Typo.body2">@context.Item.Name</MudText>
<MudText Typo="Typo.body2">@context.Item.Description</MudText>
<MudText Typo="Typo.body2" Style="@($"color:{Theme.Theme.ApplicationTheme().Palette.TextSecondary}")">@context.Item.Description</MudText>
</div>
</CellTemplate>
</PropertyColumn>
Expand Down
4 changes: 2 additions & 2 deletions src/Blazor.Server.UI/Pages/SystemManagement/AuditTrails.razor
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
<CellTemplate>
<div class="d-flex flex-column">
<MudText Typo="Typo.body2">@context.Item.Owner?.UserName</MudText>
<MudText Typo="Typo.body2">@context.Item.UserId</MudText>
<MudText Typo="Typo.body2" Style="@($"color:{Theme.Theme.ApplicationTheme().Palette.TextSecondary}")">@context.Item.UserId</MudText>
</div>
</CellTemplate>
</PropertyColumn>
Expand Down Expand Up @@ -94,7 +94,7 @@
{
<tr>
<td>@field.Key</td>
<td>@(context.Item.OldValues?.ContainsKey(field.Key) ?? false ? context.Item.OldValues[field.Key] : string.Empty)</td>
<td style="@($"color:{Theme.Theme.ApplicationTheme().Palette.TextSecondary}")">@(context.Item.OldValues?.ContainsKey(field.Key) ?? false ? context.Item.OldValues[field.Key] : string.Empty)</td>
<td>@(context.Item.NewValues?.ContainsKey(field.Key) ?? false ? context.Item.NewValues[field.Key] : string.Empty)</td>
</tr>
}
Expand Down
2 changes: 1 addition & 1 deletion src/Blazor.Server.UI/Pages/Tenants/Tenants.razor
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
<CellTemplate>
<div class="d-flex flex-column">
<MudText Typo="Typo.body2">@context.Item.Name</MudText>
<MudText Typo="Typo.body2">@context.Item.Description</MudText>
<MudText Typo="Typo.body2" Style="@($"color:{Theme.Theme.ApplicationTheme().Palette.TextSecondary}")">@context.Item.Description</MudText>
</div>
</CellTemplate>
</PropertyColumn>
Expand Down
2 changes: 1 addition & 1 deletion src/Blazor.Server.UI/Theme/DefaultTheme.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public static MudTheme ApplicationTheme()
AppbarBackground = "rgba(255,255,255,0.8)",
AppbarText = "#424242",
BackgroundGrey = "#F9FAFC",
TextSecondary = "#425466",
TextSecondary = "#99a0b0",
Dark = "#110E2D",
DarkLighten = "#1A1643",
GrayDefault = "#4B5563",
Expand Down