diff options
| author | Jake Mannens <jake@asger.xyz> | 2026-06-11 00:49:00 +1000 |
|---|---|---|
| committer | Jake Mannens <jake@asger.xyz> | 2026-06-11 01:41:01 +1000 |
| commit | 562b51d508a04fdf4866ec7f4c27db78235e5fdd (patch) | |
| tree | 5441946f4fe2c57246cfc278ae5db0118519dfe6 /Pages/Component | |
| parent | f1a5597380a80395b743b2022c18251babb0e9d5 (diff) | |
Updated pages and components to use new Button componentdev
Diffstat (limited to 'Pages/Component')
| -rw-r--r-- | Pages/Component/AboutDialog.razor | 4 | ||||
| -rw-r--r-- | Pages/Component/TagEditDialog.razor | 9 | ||||
| -rw-r--r-- | Pages/Component/TagSelectDialog.razor | 9 |
3 files changed, 17 insertions, 5 deletions
diff --git a/Pages/Component/AboutDialog.razor b/Pages/Component/AboutDialog.razor index 888040e..f696549 100644 --- a/Pages/Component/AboutDialog.razor +++ b/Pages/Component/AboutDialog.razor @@ -684,7 +684,9 @@ <ProgressBar @ref=progressBar /> </div> <ButtonContainer> - <button @onclick=Hide>Close</button> + <Button + BackgroundColor=Color.ButtonPrimary + OnClick=@(async () => Hide())>Close</Button> </ButtonContainer> </Dialog> diff --git a/Pages/Component/TagEditDialog.razor b/Pages/Component/TagEditDialog.razor index 14d8c27..203c6ec 100644 --- a/Pages/Component/TagEditDialog.razor +++ b/Pages/Component/TagEditDialog.razor @@ -22,8 +22,13 @@ </label> <input type="text" @bind=tagAlias/> <ButtonContainer> - <button @onclick=Hide class="secondary">Cancel</button> - <button @onclick=Submit>@(TagDefinition is null ? "Create" : "Apply")</button> + <Button OnClick=@(async () => Hide())>Cancel</Button> + <Button + BackgroundColor=Color.ButtonPrimary + OnClick=@(async () => Submit())> + + @(TagDefinition is null ? "Create" : "Apply") + </Button> </ButtonContainer> </Dialog> diff --git a/Pages/Component/TagSelectDialog.razor b/Pages/Component/TagSelectDialog.razor index 5872ce7..8a9e893 100644 --- a/Pages/Component/TagSelectDialog.razor +++ b/Pages/Component/TagSelectDialog.razor @@ -50,9 +50,14 @@ break; } <ButtonContainer> - <button @onclick=@(() => dialog.Hide()) class="secondary">Cancel</button> + <Button OnClick=@(async () => dialog.Hide())>Cancel</Button> @if(state == ComponentState.Loaded) { - <button @onclick=@(() => Submit())>Accept</button> + <Button + BackgroundColor=Color.ButtonPrimary + OnClick=@(async () => Submit())> + + Accept + </Button> } </ButtonContainer> </Dialog> |
