]> cloud.milkyroute.net Git - dolphin.git/commit
DolphinStatusBar: Fix premature text squeezing
authorAkseli Lahtinen <akselmo@akselmo.dev>
Thu, 24 Apr 2025 12:03:42 +0000 (15:03 +0300)
committerAkseli Lahtinen <akselmo@akselmo.dev>
Thu, 24 Apr 2025 12:08:25 +0000 (15:08 +0300)
commitbe36fc1bc45b63693bd5861efed94c08cd9ffe2a
treed28221d403d6b81ec1bf98c45467c31db0ff39e8
parent98dfc4dc180386e79ce2914aab57b2944be83620
DolphinStatusBar: Fix premature text squeezing

The text would get squeezed and elided prematurely due to some clipping
calculations and paddings created for the clipping.

This slightly modifies the clipping code, that we extend the painted
area and then clip off the excess, instead of moving the area to
specific place and then clipping off the excess.

This also makes sure the text width accounts for one extra character
plus the clippings we do, so that text will always fit the statusbar.

BUG: 503164
src/dolphinviewcontainer.cpp
src/statusbar/dolphinstatusbar.cpp