Skip to content

Commit

Permalink
Merge pull request #135 from ministryofjustice/hotfix/primary-colour-…
Browse files Browse the repository at this point in the history
…layout-service

Primary colour fix
  • Loading branch information
PaulCooperWorkJustice authored Aug 14, 2024
2 parents 0832e23 + d5e1abd commit 1eec647
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 1eec647

Please sign in to comment.