Skip to content

fix: hide color tool in effect (blur/mosaic) mode#817

Merged
lzwind merged 1 commit intolinuxdeepin:masterfrom
dengzhongyuan365-dev:master
Apr 11, 2026
Merged

fix: hide color tool in effect (blur/mosaic) mode#817
lzwind merged 1 commit intolinuxdeepin:masterfrom
dengzhongyuan365-dev:master

Conversation

@dengzhongyuan365-dev
Copy link
Copy Markdown
Contributor

Commit 81701e0 added m_colorTool->show() to the else branch of changeShotToolWidget, which is shared by all non-geometry tools. This overrides the earlier m_colorTool->setFunction("effect") call that correctly hides it, causing the color picker to appear in blur, mosaic, shape-blur and pen-blur modes where it is not needed.

Add a dedicated branch for "effect" that keeps m_colorTool hidden.

bug: https://pms.uniontech.com/bug-view-356071.html

Commit 81701e0 added m_colorTool->show() to the else branch of
changeShotToolWidget, which is shared by all non-geometry tools.
This overrides the earlier m_colorTool->setFunction("effect") call
that correctly hides it, causing the color picker to appear in
blur, mosaic, shape-blur and pen-blur modes where it is not needed.

Add a dedicated branch for "effect" that keeps m_colorTool hidden.

bug: https://pms.uniontech.com/bug-view-356071.html
@lzwind lzwind merged commit 551a05c into linuxdeepin:master Apr 11, 2026
10 checks passed
@deepin-ci-robot
Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: dengzhongyuan365-dev, lzwind

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

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.

3 participants