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

Upgrade to winapp11 #213

Open
wants to merge 286 commits into
base: main
Choose a base branch
from
Open

Upgrade to winapp11 #213

wants to merge 286 commits into from

Conversation

hoffe86
Copy link
Collaborator

@hoffe86 hoffe86 commented Dec 17, 2023

No description provided.

- Removed unused code
Signed-off-by: Christoph Hofmann <oss@hoffe.org>
Signed-off-by: Christoph Hofmann <oss@hoffe.org>
Signed-off-by: Christoph Hofmann <oss@hoffe.org>
Signed-off-by: Christoph Hofmann <oss@hoffe.org>
Signed-off-by: Christoph Hofmann <oss@hoffe.org>
Signed-off-by: Christoph Hofmann <oss@hoffe.org>
Signed-off-by: Christoph Hofmann <oss@hoffe.org>
Signed-off-by: Christoph Hofmann <oss@hoffe.org>
Signed-off-by: Christoph Hofmann <oss@hoffe.org>
Signed-off-by: Christoph Hofmann <oss@hoffe.org>
Signed-off-by: Christoph Hofmann <oss@hoffe.org>
Signed-off-by: Christoph Hofmann <oss@hoffe.org>
Signed-off-by: Christoph Hofmann <oss@hoffe.org>
Signed-off-by: Christoph Hofmann <oss@hoffe.org>
Signed-off-by: Christoph Hofmann <oss@hoffe.org>
Signed-off-by: Christoph Hofmann <oss@hoffe.org>
Signed-off-by: Christoph Hofmann <oss@hoffe.org>
Signed-off-by: Christoph Hofmann <oss@hoffe.org>
Signed-off-by: Christoph Hofmann <oss@hoffe.org>
Signed-off-by: Christoph Hofmann <oss@hoffe.org>
Signed-off-by: Christoph Hofmann <oss@hoffe.org>
Signed-off-by: Christoph Hofmann <oss@hoffe.org>
Signed-off-by: Christoph Hofmann <oss@hoffe.org>
…file pattern for msixbundle artifacts

Signed-off-by: Christoph Hofmann <oss@hoffe.org>
…dle file pattern

Signed-off-by: Christoph Hofmann <oss@hoffe.org>
Signed-off-by: Christoph Hofmann <oss@hoffe.org>
…le pattern

Signed-off-by: Christoph Hofmann <oss@hoffe.org>
Reformatted `DeviceTypeHelper` docs and added global namespace.
Introduced `AppTheme` enum in `AppTheme.cs`.
Updated `SettingOptions` to include `AppTheme` property.
Added `SetAppTheme` method to `AppManager` and P/Invoke for `ShouldSystemUseDarkMode`.
Updated `IAppManager` interface to include `SetAppTheme`.
Updated `Resources.resw` for theme settings in English and German.
Made `MainWindow` static in `App.xaml.cs` and called `SetAppTheme`.
Updated various XAML files to use theme resources for styling.
Removed static resource references in `MainWindow.xaml`.
Commented out acrylic brush definitions in `DefaultTheme.xaml`.
Added theme selection card in `SettingsPage.xaml`.
Added `ApplicationThemeViewModel` for theme management.
Updated `ConfigurationViewModel` for theme management and initialization.
Handled potential null `MainUIUrl` in `MainUIViewModel`.
Updated `SettingsViewModel` for theme management and saving.
Handled null or empty `LabelColor` in `WidgetViewModel`.

Signed-off-by: Christoph Hofmann <oss@hoffe.org>
- Added `System.ComponentModel` and `Microsoft.Extensions.Options` imports.
- Introduced `AppThemeExtension` for theme conversion.
- Updated constructors in `AppManager` and `App` classes to include `options` and `logger` parameters.
- Set `RequestedTheme` in `OnLaunched` method using `AppTheme` from `options`.
- Removed commented-out service registrations.
- Updated `ContentDialog` background property in XAML files.
- Enabled nullable reference types in various classes.
- Added `PercentageRingOnManipulationCompleted` method in `RadialSlider`.
- Replaced `OpenHABLightColor` with `ContentDialog` in `DefaultTheme.xaml` and added a new style.
- Refactored `WidgetViewModel` for color value conversion and null handling.

Signed-off-by: Christoph Hofmann <oss@hoffe.org>
Signed-off-by: Christoph Hofmann <oss@hoffe.org>
… workflows

Signed-off-by: Christoph Hofmann <oss@hoffe.org>
Signed-off-by: Christoph Hofmann <oss@hoffe.org>
The `RequestedTheme` property is now set right after the `InitializeComponent()` call in the `App` class constructor, ensuring the application theme is applied immediately upon initialization.

The redundant setting of `RequestedTheme` in the `MainWindow` initialization has been removed, as it is no longer needed due to the earlier assignment in the constructor.

Signed-off-by: Christoph Hofmann <oss@hoffe.org>
…and auto-increment settings

Signed-off-by: Christoph Hofmann <oss@hoffe.org>
A new project named `openHAB.Windows.Package.Beta` has been added to the `OpenHAB.Windows.sln` solution file. This project is located at `src\openHAB.Windows.Package.Beta\openHAB.Windows.Package.Beta.wapproj`.

The solution configuration platforms have been updated to include build and deploy configurations for the new project for various platforms (arm64, x64, x86).

A new project file `openHAB.Windows.Package.Beta.wapproj` has been created, including:
- Project configurations for Debug and Release modes for platforms x86, x64, ARM, ARM64, and AnyCPU.
- Property groups defining various project properties.
- Import statements for `Microsoft.DesktopBridge.props` and `Microsoft.DesktopBridge.targets`.
- Item groups for project references, package references, content files, and other resources.

A new `Package.appxmanifest` file has been added, including:
- Package identity information.
- Properties for display name, publisher display name, and logo.
- Dependencies specifying target device families and their versions.
- Resources and applications definitions, including visual elements for the application.
- Extensions for startup tasks, toast notification activation, and COM server registration.
- Capabilities required by the application.

A new XML file `Package.StoreAssociation.xml` has been added to define the store association details for an application, including publisher information, supported locales, product reserved information, and a link to the developer dashboard.

A new XML file `Resources.resw` has been added, following the Microsoft ResX schema, version 2.0, for storing resources in a human-readable XML format. It defines a resource named `AppDisplayName` with the value `openHAB Beta`.

Signed-off-by: Christoph Hofmann <oss@hoffe.org>
Modified AppPaths.cs to dynamically retrieve the app's display name
using AppInfo.Current.DisplayInfo.DisplayName instead of a hardcoded
string. Removed single instance enforcement in App.xaml.cs, allowing
multiple instances of the application to run simultaneously.

Signed-off-by: Christoph Hofmann <oss@hoffe.org>
Signed-off-by: Christoph Hofmann <oss@hoffe.org>
Signed-off-by: Christoph Hofmann <oss@hoffe.org>
Signed-off-by: Christoph Hofmann <oss@hoffe.org>
Signed-off-by: Christoph Hofmann <oss@hoffe.org>
…ng in workflow

Signed-off-by: Christoph Hofmann <oss@hoffe.org>
Signed-off-by: Christoph Hofmann <oss@hoffe.org>
…kflow

Signed-off-by: Christoph Hofmann <oss@hoffe.org>
Signed-off-by: Christoph Hofmann <oss@hoffe.org>
Significantly modified XML schema and metadata in `Resources.resw`, including changing the version number from 2.0 to 1.3 and updating `AppDisplayName` to "openHAB Beta".

Reorganized `openHAB.Windows.Package.Beta.wapproj`:
- Moved `EntryPointProjectUniqueName` property.
- Relocated `PRIResource` entry for `Properties\Resources.resw`.
- Modified `ProjectReference` by removing specific attributes.
- Moved `None` entry for `Package.StoreAssociation.xml`.

Signed-off-by: Christoph Hofmann <oss@hoffe.org>
Updated OpenHabHttpClientExtension.cs:
- Added CreateConnection method for connection handling.
- Updated AddHttpClient to use CreateConnection.
- Added ConfigureHttpClient for HttpClient configuration.

MainWindow.xaml:
- Commented out TitleBarSearchBox element.

MainWindow.xaml.cs:
- Commented out TitleBarSearchBox related code.

DefaultTheme.xaml:
- Changed Background property values to ControlStrokeColorSecondaryBrush.

Signed-off-by: Christoph Hofmann <oss@hoffe.org>
The provided diffs indicate modifications to binary files. The exact changes are not detailed, but the files differ from their previous versions.

Signed-off-by: Christoph Hofmann <oss@hoffe.org>
In MapViewWidget.xaml, replaced Background property with Style
property using the same resource key `{StaticResource ContentDialog}`.

In SectionSwitchWidget.xaml, updated Background property to use
`{ThemeResource ControlStrokeColorSecondaryBrush}` instead of
`{StaticResource ContentDialog}`.

Signed-off-by: Christoph Hofmann <oss@hoffe.org>
…oduction apps

Signed-off-by: Christoph Hofmann <oss@hoffe.org>
Signed-off-by: Christoph Hofmann <oss@hoffe.org>
Signed-off-by: Christoph Hofmann <oss@hoffe.org>
Signed-off-by: Christoph Hofmann <oss@hoffe.org>
Signed-off-by: Christoph Hofmann <oss@hoffe.org>
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.

2 participants