Bug 515971

Summary: Text Align button states getting mismatched when properties are reset
Product: [Applications] krita Reporter: Vitamorus <vitamorus.art>
Component: Tool/TextAssignee: Krita Bugs <krita-bugs-null>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 6.0.0-beta1   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Demonstration of the buttons losing highlight despite resetting to align left
system info

Description Vitamorus 2026-02-14 00:26:23 UTC
Created attachment 189554 [details]
Demonstration of the buttons losing highlight despite resetting to align left

SUMMARY
In the Text Align section of the Text Properties docker, all buttons get unset when the properties are reset to their defaults, even when those defaults correspond to one of the buttons. They seem to not be fully aware of what they represent, which in turn don't communicate what they do consistently to the user. They can even get out of sync with what the text is doing. 

Similar behavior is also seen with other reset-to-default buttons in the docker.

STEPS TO REPRODUCE
1. Create a new document
2. Create a new text object and open the Text Properties docker.
3. Click the arrow icon next to 'Text Align' to reveal the full set of properties
4. Click the buttons for Align Right and Justified
5. Click the "reset arrow" for the Text Anchor property
6. BUG 1: The text now appears to align left despite the "Align Right" button being highlighted
7. Click the "reset arrow" for the remaining two properties
8. BUG 2: All the Text Align buttons get un-highlighted, despite the properties corresponding to the "Align Left" button

This was tested with Qt Platform Name:  "wayland". 
Attached is a video recording of the bug, along with additional system info. I guess it's worth noting that my Krita is set to English, which assumes left-to-right writing.
Comment 1 Vitamorus 2026-02-14 00:26:40 UTC
Created attachment 189555 [details]
system info