This is an application designed to visualize where your money is going and how much you are bringing in. The goal is to give the ability to plan for the future effectively by being able to immediately see the changes to the plan
The most significant changes involve the implementation of a dark mode feature and the setup of the ApplicationDbContext with different SQLite databases for debug and release modes. The dark mode feature is implemented by adding new styles for Label, Button, and Entry elements in App.xaml, and setting the app theme based on the current user's app theme in App.xaml.cs. The ApplicationDbContext setup is done in the MauiProgram.cs file.
Here is a summary of the changes:
The MauiProgram.cs file has been updated to include a new namespace MoneyTrackerMigrations. The AddDbContext method has been added to the builder.Services to set up the ApplicationDbContext with different SQLite databases for debug and release modes.
New styles have been added for Label, Button, and Entry elements in App.xaml. These styles set the TextColor property based on the current app theme. Two new color resources TextLightMode and TextDarkMode have also been added.
The App.xaml.cs file has been updated to set the app theme based on the current user's app theme. The MainPage is now set up with a SettingsViewModel instance retrieved from the DependencyService.
In AppShell.xaml, the toolkit namespace has been added. The TextColor property of some elements has been updated to change based on the app theme. The Dark Mode and Enable Notifications labels and checkboxes have been replaced with buttons. The Reset Password button's font size has been reduced.
The AppShell.xaml.cs file has been updated to use a SettingsViewModel instance as the BindingContext. The constructor now takes a SettingsViewModel instance as a parameter.
The HomeViewModel.cs file now includes the MoneyTrackerMigrations namespace.
The SettingsViewModel.cs file has been updated to include the Microsoft.Maui.ApplicationModel and System.Windows.Input namespaces. The isDarkMode and theme properties have been updated to reflect the current app theme. A new SetAppTheme command has been added to toggle the app theme.
The most significant changes involve the implementation of a dark mode feature and the setup of the
ApplicationDbContext
with different SQLite databases for debug and release modes. The dark mode feature is implemented by adding new styles forLabel
,Button
, andEntry
elements inApp.xaml
, and setting the app theme based on the current user's app theme inApp.xaml.cs
. TheApplicationDbContext
setup is done in theMauiProgram.cs
file.Here is a summary of the changes:
The
MauiProgram.cs
file has been updated to include a new namespaceMoneyTrackerMigrations
. TheAddDbContext
method has been added to thebuilder.Services
to set up theApplicationDbContext
with different SQLite databases for debug and release modes.New styles have been added for
Label
,Button
, andEntry
elements inApp.xaml
. These styles set theTextColor
property based on the current app theme. Two new color resourcesTextLightMode
andTextDarkMode
have also been added.The
App.xaml.cs
file has been updated to set the app theme based on the current user's app theme. TheMainPage
is now set up with aSettingsViewModel
instance retrieved from theDependencyService
.In
AppShell.xaml
, thetoolkit
namespace has been added. TheTextColor
property of some elements has been updated to change based on the app theme. TheDark Mode
andEnable Notifications
labels and checkboxes have been replaced with buttons. TheReset Password
button's font size has been reduced.The
AppShell.xaml.cs
file has been updated to use aSettingsViewModel
instance as theBindingContext
. The constructor now takes aSettingsViewModel
instance as a parameter.The
HomeViewModel.cs
file now includes theMoneyTrackerMigrations
namespace.The
SettingsViewModel.cs
file has been updated to include theMicrosoft.Maui.ApplicationModel
andSystem.Windows.Input
namespaces. TheisDarkMode
andtheme
properties have been updated to reflect the current app theme. A newSetAppTheme
command has been added to toggle the app theme.