Skip to content

#13435 - Android - Image annotation UX: text size not persisted, colo…#73

Merged
Zeljko-Predjeskovic merged 1 commit into
developfrom
fix/13435-text-size-color-picker
Jul 2, 2026
Merged

#13435 - Android - Image annotation UX: text size not persisted, colo…#73
Zeljko-Predjeskovic merged 1 commit into
developfrom
fix/13435-text-size-color-picker

Conversation

@Zeljko-Predjeskovic

Copy link
Copy Markdown
Collaborator

…r picker OK button on wrong side

#13429 - Svg editor color picker does not select correctly on cancelling or not selecting a color

@Zeljko-Predjeskovic Zeljko-Predjeskovic force-pushed the fix/13435-text-size-color-picker branch from b9ca29a to 3b65fda Compare July 1, 2026 11:13
@Zeljko-Predjeskovic

Copy link
Copy Markdown
Collaborator Author

only thing missing is how to switch ok and cancel button

@Zeljko-Predjeskovic

Copy link
Copy Markdown
Collaborator Author
text_input_dailog2

@Zeljko-Predjeskovic

Copy link
Copy Markdown
Collaborator Author

also tested on android

@Zeljko-Predjeskovic

Copy link
Copy Markdown
Collaborator Author

clicking ok doesnt choose transparent. And cancelling keeps last picked color
colrpicker

@gentledepp

Copy link
Copy Markdown
Owner

only thing missing is how to switch ok and cancel button
should we then still merge the PR?

@Zeljko-Predjeskovic

Copy link
Copy Markdown
Collaborator Author

only thing missing is how to switch ok and cancel button
should we then still merge the PR?

for me its not possible to replace the content dialog quickly with a custom one. i can make another bug report for it. so yes i would merge it without the buttons in the correct position. The other issues seem more important.

@gentledepp gentledepp left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated review pass focused on: software design choices, IDisposable usage, ReactiveUI/Rx correctness, Task await hygiene, and test coverage of the introduced changes.

Overall this is a solid change: it fixes a real pre-existing bug (an infinite re-prompt loop in TextInputService), and the new InputWithOptionsAsync/TextOptionsDialog* plumbing follows the existing dialog patterns in this codebase well. No ReactiveUI/Rx code is touched and no new IDisposable types were introduced. A few smaller points below.

Comment thread Svg.Editor.Avalonia.Forms/Dialog/Views/ColorPickerDialogViewModel.cs Outdated
set => SetField(ref _selectedIndex, value);
}

internal override TextOptionsResult? GetResult()

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Testing gap: no unit tests were added for this GetResult() or for ColorPickerDialogViewModel.GetResult()'s new transparent-color branch — both are pure logic and easily testable, unlike TextInputService which did get thorough new tests in this same PR.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i made the GetResult public in order to test it

Comment thread Svg.Editor.Avalonia.Forms/Dialog/UserInteractionService.cs
Comment thread Svg.Editor.Avalonia.Forms/Dialog/Views/TextOptionsDialogContent.axaml.cs Outdated
Comment thread Svg.Editor.Avalonia.Forms/Dialog/Views/TextOptionsDialogResultViewModel.cs Outdated
@Zeljko-Predjeskovic Zeljko-Predjeskovic force-pushed the fix/13435-text-size-color-picker branch from 3b65fda to 11cbb70 Compare July 2, 2026 07:57
…r picker OK button on wrong side

#13429 - Svg editor color picker does not select correctly on cancelling or not selecting a color
@Zeljko-Predjeskovic Zeljko-Predjeskovic force-pushed the fix/13435-text-size-color-picker branch from 11cbb70 to 03b4935 Compare July 2, 2026 08:10
@Zeljko-Predjeskovic Zeljko-Predjeskovic merged commit cd51278 into develop Jul 2, 2026
1 check passed
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