-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix width of the set indicator fix persistance of the model when sets are updated migrate to .NET 8 * fix width of the set indicator fix persistance of the model when sets are updated migrate to .NET 8 * run on windows * package updates and using a flag * no framework flag * downgrade package due to dotnet/android-libraries#717 xamarin/GooglePlayServicesComponents#694
- Loading branch information
1 parent
b5e956a
commit 8b86007
Showing
23 changed files
with
169 additions
and
82 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
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
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
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
34 changes: 34 additions & 0 deletions
34
src/WorkoutTracker.Services/Extensions/IExerciseSetExtensions.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,34 @@ | ||
using Microsoft.Maui.Graphics; | ||
using WorkoutTracker.Models.Contracts; | ||
using WorkoutTracker.Models.Entities; | ||
using WorkoutTracker.Models.Presentation; | ||
|
||
namespace WorkoutTracker.Services.Extensions | ||
{ | ||
public static class IExerciseSetExtensions | ||
{ | ||
public static Color GetColor(this IExerciseSet set) | ||
{ | ||
return set switch | ||
{ | ||
LegacySet => Colors.LightGreen, | ||
CompletedSet => Colors.LightGreen, | ||
InProgressSet => Colors.LightPink, | ||
ProposedSet => Colors.LightSkyBlue, | ||
_ => Colors.Gray | ||
}; | ||
} | ||
|
||
public static SetStatus GetStatus(this IExerciseSet set) | ||
{ | ||
return set switch | ||
{ | ||
LegacySet => SetStatus.Completed, | ||
CompletedSet => SetStatus.Completed, | ||
InProgressSet => SetStatus.InProgress, | ||
ProposedSet => SetStatus.NotStarted, | ||
_ => SetStatus.NotStarted | ||
}; | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using WorkoutTracker.Models.Contracts; | ||
using WorkoutTracker.Models.Presentation; | ||
using WorkoutTracker.Services.Extensions; | ||
|
||
namespace WorkoutTracker.Services.Models; | ||
|
||
public record SetWrapper(int Number, IExerciseSet Set, LogEntryViewModel Model) | ||
{ | ||
public Color Color => Set.GetColor(); | ||
} |
Oops, something went wrong.