Fix light mode bug.

This commit is contained in:
DESKTOP-T0O5CDB\DESK-555BD 2024-09-24 18:11:50 -06:00
parent 73bb3c11b4
commit e056aaa7dc
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ namespace CarCareTracker.Helper
/// </summary>
public static class StaticHelper
{
public static string VersionNumber = "1.3.7";
public static string VersionNumber = "1.3.8";
public static string DbName = "data/cartracker.db";
public static string UserConfigPath = "config/userConfig.json";
public static string GenericErrorMessage = "An error occurred, please try again later";

View File

@ -55,7 +55,7 @@
<script>
function getGlobalConfig() {
return {
useDarkMode: "@useDarkMode" == "True" || window.matchMedia('(prefers-color-scheme: dark)').matches,
useDarkMode: "@useDarkMode" == "True" || ("@useSystemColorMode" == "True" && window.matchMedia('(prefers-color-scheme: dark)').matches),
enableCsvImport : "@enableCsvImports" == "True",
useMarkDown: "@useMarkDown" == "True",
currencySymbol: decodeHTMLEntities("@numberFormat.CurrencySymbol"),