-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
Upgrade the SDK to .NET 8. (#36)
* Upgrade CommunityToolkit to 8.x * Update deps. * Update dotnet version * Add ListDetailsView. * Update list details. * Update the settings page.
Showing
31 changed files
with
732 additions
and
440 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
PocketClient.Desktop.Tests.MSTest/PocketClient.Desktop.Tests.MSTest.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
PocketClient.Desktop/Converters/BoolNegationToVisibilityConverter.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
PocketClient.Desktop/Converters/ObjectToVisibilityConverter.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
using Microsoft.UI.Xaml; | ||
using Microsoft.UI.Xaml.Data; | ||
|
||
namespace PocketClient.Desktop.Converters; | ||
|
||
public class ObjectToVisibilityConverter : IValueConverter | ||
{ | ||
public Visibility NullValue | ||
{ | ||
get; set; | ||
} | ||
|
||
public Visibility NonNullValue | ||
{ | ||
get; set; | ||
} | ||
|
||
public ObjectToVisibilityConverter() | ||
{ | ||
NullValue = Visibility.Collapsed; | ||
NonNullValue = Visibility.Visible; | ||
} | ||
|
||
public object Convert(object value, Type targetType, object parameter, string language) | ||
{ | ||
if (value is null) | ||
{ | ||
return NullValue; | ||
} | ||
else | ||
{ | ||
return NonNullValue; | ||
} | ||
} | ||
|
||
public object ConvertBack(object value, Type targetType, object parameter, string language) => throw new NotImplementedException(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
namespace PocketClient.Desktop.Models; | ||
|
||
public class LanguageItem(string key, string displayName) | ||
{ | ||
public string Key | ||
{ | ||
get; set; | ||
} = key; | ||
|
||
public string DisplayName | ||
{ | ||
get; set; | ||
} = displayName; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using Microsoft.UI.Xaml; | ||
|
||
namespace PocketClient.Desktop.Models; | ||
|
||
public class ThemeItem(string key, string displayName, ElementTheme theme) | ||
{ | ||
public string Key | ||
{ | ||
get; set; | ||
} = key; | ||
|
||
public string DisplayName | ||
{ | ||
get; set; | ||
} = displayName; | ||
|
||
public ElementTheme Theme | ||
{ | ||
get; set; | ||
} = theme; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.