Skip to content

Halve the minimum width of the recorder's status bar item

R. B. requested to merge tomtomtom/krita:tomtomtom/statusbarfix into master

In Krita 5 there is a small usability regression where the memory report box in the status bar starts to compress in size at window sizes narrower than before. Perhaps most notably, when Krita is resized/snapped to half of a 1920x1080 screen, the memory report will no longer, at a glance, denote the full string of a typical document size, as some of it will be hidden behind the box.

statusbefore

I noticed this was due to the minimum width of the added status bar item for the recorder feature. This commit halves its minimum width: This is to give the memory report box more breathing room to denote large canvas sizes while the Krita window is resized to half of a 1920x1080 screen.

Note that the memory box still doesn't technically have as much breathing room as it did in Krita 4, but I'm not sure how important it is for the recorder widget to have some minimum width (it will still overlap into other items as window size gets narrower, regardless of min width), and supporting half of a 1920x1080 screen seems like a decent sweet spot.

statusafter

Test Plan

Test Krita at narrow sizes with an A5 600DPI document. You can load up the status bar with more items by using the recording feature and by applying a lengthy filter.

Formalities Checklist

  • I confirmed this builds.
  • I confirmed Krita ran and the relevant functions work.
  • I tested the relevant unit tests and can confirm they are not broken. (If not possible, don't hesitate to ask for help!)
  • I made sure my commits build individually and have good descriptions as per KDE guidelines.
  • I made sure my code conforms to the standards set in the HACKING file.
  • I can confirm the code is licensed and attributed appropriately, and that unattributed code is mine, as per KDE Licensing Policy.
Edited by R. B.

Merge request reports