]> cloud.milkyroute.net Git - dolphin.git/commit
Draw 2 Rectangles below mount points to represent a disk capacity bar
authorChris Holland <zrenfire@gmail.com>
Mon, 20 May 2019 17:47:48 +0000 (13:47 -0400)
committerElvis Angelaccio <elvis.angelaccio@kde.org>
Wed, 4 Nov 2020 23:16:12 +0000 (23:16 +0000)
commitac6de72048fb50bca1823b8001fb012158050c25
tree6a3d6566e5a96676d25df618d5aa9207531de679
parente9a39700fc004004b1ff231023e9d5333a2b8317
Draw 2 Rectangles below mount points to represent a disk capacity bar

Draws overtop text that's goes below the baseline like a 'j'. It's
fairly difficult to add extra space below the text as the places view
is a "details" view, so the text is vertically centered in the
widget's "row" as you'd desire it to in the main file view.

We can make the widget 8px taller, adding 4px above and below so
there's adequate room for the capacitybar, but that wastes 4px for
each mount point.

Ideally we'd use the "compact" view, which displays the text/size in a
column beside the icon. However the compact view was not designed to
take up the entire width of the viewport. It's also designed to
overflow with a horizontal scrollbar.
src/kitemviews/kstandarditemlistwidget.h
src/panels/places/placesitemlistwidget.cpp
src/panels/places/placesitemlistwidget.h