Skip to content

Commit

Permalink
This hotfix addresses an issue where the primary colour doesn't get c…
Browse files Browse the repository at this point in the history
…hanged by environment when set in the layout service
  • Loading branch information
carlsixsmith-moj committed Aug 14, 2024
1 parent b720fbe commit ed31113
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Server.UI/Services/Layout/LayoutService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@ public class LayoutService
public UserPreferences.UserPreferences UserPreferences { get; private set; } = new();
public DarkLightMode DarkModeToggle = DarkLightMode.System;

public LayoutService(IUserPreferencesService userPreferencesService)
public LayoutService(IUserPreferencesService userPreferencesService, IConfiguration configuration)
{
this.userPreferencesService = userPreferencesService;
this.PrimaryColor = configuration["PrimaryColour"] ?? "#722660";
}

public bool IsRTL { get; private set; }
public bool IsDarkMode { get; private set; }
public string PrimaryColor { get; set; } = "#722660";
public string PrimaryColor { get; set; }
public string DarkPrimaryColor { get; set; } = "#AA3C85";
public string SecondaryColor { get; set; } = "#ff4081";
public double BorderRadius { get; set; } = 4;
Expand Down

0 comments on commit ed31113

Please sign in to comment.