Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(settings): update settings management and UI enhancements #39

Merged
merged 1 commit into from
Feb 18, 2025

Conversation

realybin
Copy link
Member

  • Updated LangVersion to preview in Directory.Build.props.
  • Upgraded NuGet packages including Microsoft.Extensions.DependencyInjection, Microsoft.Extensions.Hosting, and System.Text.Json to version 9.0.2.
  • Added a new <connectionStrings /> section in App.config and renamed settings to include the "Is" prefix.
  • Introduced CreateHostBuilder method in App.xaml.cs for improved dependency injection.
  • Refactored MainWindow.xaml and MainWindow.xaml.cs to enhance UI and settings handling.
  • Added Settings.cs for managing application settings with CommunityToolkit.Mvvm.
  • Updated resource files for localization, including a new "Visibility" string.
  • Refactored MainWindowViewModel.cs to use ObservableRecipient for messaging.
  • Introduced SettingsViewModel.cs to manage settings view and commands.
  • Improved UI layout and bindings in PageNavigationView.xaml, SettingsView.xaml, and ToolBarView.xaml.

- Updated `LangVersion` to `preview` in `Directory.Build.props`.
- Upgraded NuGet packages including `Microsoft.Extensions.DependencyInjection`, `Microsoft.Extensions.Hosting`, and `System.Text.Json` to version `9.0.2`.
- Added a new `<connectionStrings />` section in `App.config` and renamed settings to include the "Is" prefix.
- Introduced `CreateHostBuilder` method in `App.xaml.cs` for improved dependency injection.
- Refactored `MainWindow.xaml` and `MainWindow.xaml.cs` to enhance UI and settings handling.
- Added `Settings.cs` for managing application settings with `CommunityToolkit.Mvvm`.
- Updated resource files for localization, including a new "Visibility" string.
- Refactored `MainWindowViewModel.cs` to use `ObservableRecipient` for messaging.
- Introduced `SettingsViewModel.cs` to manage settings view and commands.
- Improved UI layout and bindings in `PageNavigationView.xaml`, `SettingsView.xaml`, and `ToolBarView.xaml`.
Copy link

Summary - Code Coverage

Summary
Generated on: 2/18/2025 - 8:51:03 AM
Coverage date: 2/18/2025 - 8:51:01 AM
Parser: Cobertura
Assemblies: 1
Classes: 20
Files: 28
Line coverage: 18.1% (80 of 440)
Covered lines: 80
Uncovered lines: 360
Coverable lines: 440
Total lines: 2108
Branch coverage: 18.7% (15 of 80)
Covered branches: 15
Total branches: 80
Method coverage: Feature is only available for sponsors
Tag: 123_13386640214

Coverage

SketchNow - 18.1%
Name Line Branch
SketchNow 18.1% 18.7%
SketchNow.App 0% 0%
SketchNow.Controls.CustomInkCanvas 0%
SketchNow.Controls.IconWithText 0% 0%
SketchNow.Converters.ColorToBrushConverter 0% 0%
SketchNow.Converters.DivisionMathConverter 0% 0%
SketchNow.Converters.EnumToIndexConverter 0% 0%
SketchNow.Input.StylusPlugIns.CustomStylusPlugin 0%
SketchNow.MainWindow 0% 0%
SketchNow.Models.CanvasPage 32.3% 25%
SketchNow.Models.CanvasPages 35.2%
SketchNow.Models.CursorNotFoundException 0%
SketchNow.Models.CustomCursors 100% 50%
SketchNow.Models.Settings 0%
SketchNow.Properties.Resource 0% 0%
SketchNow.Properties.Settings 35.2%
SketchNow.ViewModels.MainWindowViewModel 65.7% 37.5%
SketchNow.ViewModels.SettingsViewModel 0% 0%
SketchNow.Views.PageNavigationView 0% 0%
SketchNow.Views.SettingsView 0% 0%
SketchNow.Views.ToolBarView 0% 0%

@realybin realybin enabled auto-merge (squash) February 18, 2025 08:52
@realybin realybin self-assigned this Feb 18, 2025
@realybin realybin disabled auto-merge February 18, 2025 08:52
@realybin realybin enabled auto-merge (squash) February 18, 2025 08:52
@realybin realybin disabled auto-merge February 18, 2025 08:52
@realybin realybin merged commit 65e32a6 into main Feb 18, 2025
3 checks passed
@realybin realybin deleted the feat/Refactor branch February 18, 2025 08:53
realybin added a commit that referenced this pull request Feb 19, 2025
- Updated `LangVersion` to `preview` in `Directory.Build.props`.
- Upgraded NuGet packages including `Microsoft.Extensions.DependencyInjection`, `Microsoft.Extensions.Hosting`, and `System.Text.Json` to version `9.0.2`.
- Added a new `<connectionStrings />` section in `App.config` and renamed settings to include the "Is" prefix.
- Introduced `CreateHostBuilder` method in `App.xaml.cs` for improved dependency injection.
- Refactored `MainWindow.xaml` and `MainWindow.xaml.cs` to enhance UI and settings handling.
- Added `Settings.cs` for managing application settings with `CommunityToolkit.Mvvm`.
- Updated resource files for localization, including a new "Visibility" string.
- Refactored `MainWindowViewModel.cs` to use `ObservableRecipient` for messaging.
- Introduced `SettingsViewModel.cs` to manage settings view and commands.
- Improved UI layout and bindings in `PageNavigationView.xaml`, `SettingsView.xaml`, and `ToolBarView.xaml`.
realybin added a commit that referenced this pull request Feb 19, 2025
- Updated `LangVersion` to `preview` in `Directory.Build.props`.
- Upgraded NuGet packages including `Microsoft.Extensions.DependencyInjection`, `Microsoft.Extensions.Hosting`, and `System.Text.Json` to version `9.0.2`.
- Added a new `<connectionStrings />` section in `App.config` and renamed settings to include the "Is" prefix.
- Introduced `CreateHostBuilder` method in `App.xaml.cs` for improved dependency injection.
- Refactored `MainWindow.xaml` and `MainWindow.xaml.cs` to enhance UI and settings handling.
- Added `Settings.cs` for managing application settings with `CommunityToolkit.Mvvm`.
- Updated resource files for localization, including a new "Visibility" string.
- Refactored `MainWindowViewModel.cs` to use `ObservableRecipient` for messaging.
- Introduced `SettingsViewModel.cs` to manage settings view and commands.
- Improved UI layout and bindings in `PageNavigationView.xaml`, `SettingsView.xaml`, and `ToolBarView.xaml`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant