Skip to content

Conversation

@this-is-varunxyz
Copy link

@this-is-varunxyz this-is-varunxyz commented Feb 1, 2026

This pull request addresses two distinct UI/UX issues related to transparency and rendering. First, it improves the visibility of transparent colors in the UI by adding a neutral background. Second, it resolves a bug where watercolor strokes would stack opacity and darken whenever the user zoomed or panned the canvas.

Jira Ticket: PAINTROID-799

New Features and Enhancements

(None)

Refactorings and Bug Fixes

Transparency Visibility Fix: Wrapped the color preview squares in the Bottom Navigation Bar and the ColorPicker package with a white background layer to provide a neutral reference for semi-transparent colors.

Watercolor Darkening Fix: Introduced a _hasActiveDrawing flag in the DrawingCanvas to ensure the image cache is only updated after a valid drawing gesture. This prevents "double-painting" the last command during zoom and pan interactions.

Test Infrastructure: Added a regression test in bottom_control_navigation_bar_test.dart and a unit test in watercolor_tool_test.dart to verify constant alpha maintenance.

Checklist
Your checklist for this pull request

[x] Include the name of the Jira ticket in the PR’s title

[x] Add the link to the ticket in Jira in the description of the PR

[x] Include a summary of the changes plus the relevant context

[x] Choose the proper base branch (develop)

[x] Confirm that the changes follow the project’s coding guidelines (Wiki)

[x] Verify that the changes generate no compiler or linter warnings

[x] Perform a self-review of the changes

[x] Verify to commit no other files than the intentionally changed ones

[x] Include reasonable and readable tests verifying the added or changed behavior

[x] Confirm that new and existing tests pass locally

[x] Check that the commits’ message style matches the project’s guideline

[x] Verify that your changes do not have any conflicts with the base branch

[ ] After the PR, verify that all CI checks have passed

[ ] Add new information to the Wiki

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.

1 participant