Skip to content

Commit

Permalink
Merge pull request #521 from neozhu/ImproveMappingConfiguration
Browse files Browse the repository at this point in the history
✨ add color style
  • Loading branch information
neozhu authored Oct 1, 2023
2 parents a009a4c + bad119d commit a461b17
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
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

0 comments on commit a461b17

Please sign in to comment.