Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Palatte color changes interacts with text tool in unexpected ways #1097

Open
TheodorLasse opened this issue Nov 8, 2024 · 3 comments · May be fixed by #1176
Open

Palatte color changes interacts with text tool in unexpected ways #1097

TheodorLasse opened this issue Nov 8, 2024 · 3 comments · May be fixed by #1176
Labels

Comments

@TheodorLasse
Copy link
Contributor

Description
When writing a text, but not finalizing it before selecting another tool and then changing primary color does not change the color of the text until the new tool is used, then the text is finalized with the new color.

To Reproduce
Write text without finalizing, select other tool, change primary color, use new tool.

Additional Info
I've been seeing strange behaviour regarding text finalizing overall. Sometimes the text does not finalize properly leaving a piece of text that cannot be interacted with until a new text is written forcing the old one to finalize, but have not been able to reproduce this consistently. Most of this behaviour seems to happen when switching tool without finalizing the text first. Perhaps the best solution is to finalize text on tool switches?

Version
Windows 10, Master branch Pinta (version 2.1.2?)

@cameronwhite cameronwhite modified the milestone: 2.2 Nov 9, 2024
@cameronwhite
Copy link
Member

Perhaps the best solution is to finalize text on tool switches

I think the intended behaviour is that text should only be finalized when you try to make some change to the text layer. E.g. you should be able to type some text on a layer, switch to another layer and modify it with some other tool, and then go back and re-edit the text on the original layer

So really the bug here is that finalizing the text is using whatever the current palette colour happens to be, rather than remembering which colour the text should be using

@TheodorLasse
Copy link
Contributor Author

I think there's another bug then, if I'm understanding you correctly. Text objects are usually automatically finalized when using another tool. The only exception to this I have found is when the text tool is pre-selected on startup (I.E it was the tool last used before this startup). Using it then will not cause text to be finalized when using another tool.

I could take a look at this and try to make the finalize behaviour a little more consistent

@cameronwhite
Copy link
Member

Yeah, I agree that issue with starting up in the text tool sounds like a bug

I'd suggest trying to store the colors in the TextEngine alongside the font settings, so that they can be correctly finalized with their original colours instead of the current palette

@TheodorLasse TheodorLasse linked a pull request Dec 5, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants