Add more whitespace to the status bar
ClosedPublic

Authored by januz on Oct 28 2017, 11:32 PM.

Details

Summary

This patch gives the status bar a little more vertical whitespace, prevents the status bar from "jumping up and down" when showing a progress bar, and adds a bit of padding on the sides so the labels are more clearly separated when using dual panes.

Screens

Full window:

Dual pane:

Progress bar (current & patched):

Test Plan

Try different settings and play around with it

Diff Detail

Repository
R318 Dolphin
Branch
statusbar_margin
Lint
No Linters Available
Unit
No Unit Test Coverage
januz created this revision.Oct 28 2017, 11:32 PM

From a visual perspective this to me is a perfect fix (cant comment on the technical details)

abetts added a subscriber: abetts.Oct 29 2017, 2:42 PM

Looks good to me! There may be other areas where spacing is also necessary so this is going in a good direction.

ngraham accepted this revision.Oct 29 2017, 3:12 PM
ngraham added a subscriber: ngraham.

Looks good to me too! Does anyone from Dolphin object?

This revision is now accepted and ready to land.Oct 29 2017, 3:12 PM

Patch does not apply for me:

error: c/src/statusbar/dolphinstatusbar.cpp: No such file or directory

Could you upload it again?

januz updated this revision to Diff 21702.Nov 1 2017, 2:44 PM

Fixed paths in diff

januz added a comment.Nov 1 2017, 2:45 PM

Hey, thanks for the comments guys!

@elvisangelaccio My bad, I forgot to use --no-prefix. It's fixed now

You might want to look into using arc to upload and update patches. It takes a bit of time and effort to learn and set up, but then the workflow is so fast and easy.

januz added a comment.Nov 2 2017, 1:15 AM

Thanks for the tip. I had arc set up for Blender and thought setting for KDE would be a hassle. Turns out it was a single command heh

@januz, what is a good email address for you? I need that first before I can land this (commits must use real name + email address for the author field).

januz added a comment.Nov 2 2017, 2:38 PM

@ngraham Use diego@sinestesia.co

Will do, I was planning to wait for an official thumbs up from someone in Dolphin or VDG first anyway.

Diff is still wrong, it seems you have created it from within the src/ subfolder. You should do it from the top-level folder instead.

rkflx added a subscriber: rkflx.Nov 2 2017, 4:29 PM

…or just use git diff (or git format-patch -1 in case you committed locally), so the directory won't matter.

januz updated this revision to Diff 21798.EditedNov 2 2017, 5:57 PM

Fix path in diff

Trying with arc this time (sorry again)

elvisangelaccio added a comment.EditedNov 2 2017, 11:38 PM

Thanks, now it builds.

I'm afraid this change doesn't play well with non-breeze styles.
For example, with oxygen we go from

to

Also, the padding doesn't look good with the fusion style:

Thoughts from the VDG?

januz added a comment.Nov 3 2017, 1:12 AM

We could do without the extra padding on the sides for the sake of other styles. It's mostly a problem of rounded corners (IMO), it's hard to follow the alignment of the widgets below the panes.

As for the huge progress bars: I'm trying different values setFixedHeight() and setMaximumHeight() but it doesn't seem to follow them. Is there a way to control the height of the progress bar, or should I try wrapping it in a layout (and use margins to squash it)?

januz updated this revision to Diff 21886.Nov 5 2017, 1:40 AM

Forget what I said in the previous comment. I need a looooot of sleep :)
This version fixes the free space and connection progress bars for non-breeze styles

januz added a comment.Nov 5 2017, 1:41 AM

Here's a screen using oxygen

elvisangelaccio requested changes to this revision.Nov 5 2017, 9:20 AM
elvisangelaccio added inline comments.
src/statusbar/dolphinstatusbar.cpp
120 ↗(On Diff #21886)

Now the space bar is actually smaller on Oxygen. I think we should use zoomSliderHeight here, instead.

124 ↗(On Diff #21886)

and also here

This revision now requires changes to proceed.Nov 5 2017, 9:20 AM
januz updated this revision to Diff 21937.Nov 5 2017, 10:39 PM

Use zoomSliderHeight for space/progress bars

januz marked 2 inline comments as done.Nov 5 2017, 10:41 PM
elvisangelaccio accepted this revision.Nov 7 2017, 4:50 PM

LGTM now.

This revision is now accepted and ready to land.Nov 7 2017, 4:50 PM
This revision was automatically updated to reflect the committed changes.
januz added a comment.Nov 7 2017, 5:11 PM

Awesome! thanks