forked from Programming-With-Chris/ShoppingList
-
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.
Updating Item Input to be a Display Prompt, also other changes becaus…
…e mac
- Loading branch information
1 parent
7aeb6bd
commit d362f44
Showing
16 changed files
with
246 additions
and
63 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
using System; | ||
namespace ShoppingList.Drawable; | ||
|
||
public class CircularButton : IDrawable | ||
{ | ||
public Color StrokeColor { get; set; } = Colors.DarkGrey; | ||
|
||
public bool AreShadowsEnabled { get; set; } = true; | ||
|
||
public Microsoft.Maui.Graphics.IImage Image { get; set; } | ||
|
||
public int Width { get; set; } = 0; | ||
public int Height { get; set; } = 0; | ||
|
||
public void Draw(ICanvas canvas, RectF dirtyRect) | ||
{ | ||
canvas.StrokeColor = StrokeColor; | ||
|
||
if (AreShadowsEnabled) | ||
canvas.EnableDefaultShadow(); | ||
|
||
var width = Width != 0 ? Width : dirtyRect.Width; | ||
var height = Height != 0 ? Height : dirtyRect.Height; | ||
|
||
var limitingDim = width > height ? height : width; | ||
PointF centerOfCircle = new PointF(width / 2, height / 2); | ||
|
||
// canvas.BlendMode = BlendMode.SourceOut; | ||
canvas.FillColor = Colors.White; | ||
canvas.FillCircle(centerOfCircle, limitingDim / 2); | ||
|
||
if (Image != null) | ||
{ | ||
ImagePaint imagePaint = new ImagePaint(); | ||
imagePaint.Image = this.Image; | ||
canvas.SetFillPaint(imagePaint, RectF.Zero); | ||
|
||
canvas.FillCircle(centerOfCircle, limitingDim / 2); | ||
} | ||
|
||
|
||
// canvas.DrawImage(Image, centerOfCircle.X, centerOfCircle.Y, limitingDim, limitingDim); | ||
|
||
} | ||
} | ||
|
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,14 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>com.apple.security.application-groups</key> | ||
<string>group.dev.programmingwithchris.ShoppingList</string> | ||
<key>com.apple.developer.default-data-protection</key> | ||
<string>NSFileProtectionComplete</string> | ||
<key>com.apple.security.inherit</key> | ||
<true/> | ||
<key>get-task-allow</key> | ||
<true/> | ||
</dict> | ||
</plist> |
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,6 @@ | ||
{ | ||
"ClientId": "shoppinglistbuddy-prod-a62f2a49c096edda094c6646e8fe16023424942672257304802", | ||
"ClientSecret": "qsX3hImoIt77GDhqJP12bznpqxSfu8BPgSvwSJZY", | ||
"RedirectUri": "https://dev.programmingwithchris/shoppinglist", | ||
"KrogerUrl": "https://api.kroger.com/v1/" | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Oops, something went wrong.