Review Request 128201: Improved StatusbarProgressDidget that looks better on OS X and Linux
René J.V. Bertin
rjvbertin at gmail.com
Wed Oct 26 08:18:16 UTC 2016
> On Oct. 26, 2016, 9:48 a.m., Kevin Funk wrote:
> > tl;dr: Sorry, can't be bothered to read through all this huge thread again...
> >
> > @René: Could you check the following commit and see whether it fixes the appearance of the progressbar + button for you? To me, progressbar + button look perfectly fine on Linux (Breeze style), Windows (W10 style) and OS X (native style) now. Not sure we still need this patch.
> >
> > ```
> > commit dbe5d8ebb1fc730c9784c50e7b9c05148bb3f05a
> > Author: Kevin Funk <kfunk at kde.org>
> > Date: Mon Sep 5 21:07:15 2016 +0200
> >
> > Fix style of some buttons, don't raise
> >
> > (cherry picked from commit bf5ef7f39732fbc990bdf4a1c76acac53b45f2bd)
> > ```
>
> René J.V. Bertin wrote:
> I saw that commit, and still prefer my own implementation. It's over a month ago, but IIRC your commit doesn't address the icon clipping that can occur. It just becomes a bit less visible.
>
> I'm banging my head now that somehow I missed Milian's "ship it" and didn't act on it. Do you intend to override that?
BTW, you also don't need to read through the whole discussion again. I clearly already uploaded a patch updated to apply to the current codebase.
What do you think of the idea to drop the use of an icon and use `Qt::UpArrow` everywhere? That would simplify the patch, it would make the widget look more native on OS X, and to my eyes it would change almost nothing for Breeze.
- René J.V.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/128201/#review100286
-----------------------------------------------------------
On Sept. 11, 2016, 2:39 p.m., René J.V. Bertin wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/128201/
> -----------------------------------------------------------
>
> (Updated Sept. 11, 2016, 2:39 p.m.)
>
>
> Review request for KDevelop and David Faure.
>
>
> Repository: kdevplatform
>
>
> Description
> -------
>
> I came across this old bit of code, judging from the use of the deprecated `Q_OS_MAC` token.
> Some quick testing suggests that using `WA_LayoutUsesWidgetRect` achieves what I think is the intended effect without platform-specific code. (That platform test ought really check for using the `macintosh` widget style btw, rather than "are we running on OS X").
>
>
> Diffs
> -----
>
> shell/progresswidget/statusbarprogresswidget.cpp 42a58cf
>
> Diff: https://git.reviewboard.kde.org/r/128201/diff/
>
>
> Testing
> -------
>
> On OS X and Linux, with the native theme (Qt 5.6.x) as well as QtCurve, Breeze and Oxygen.
>
>
> File Attachments
> ----------------
>
> OS X/Mac native *without* the patch
> https://git.reviewboard.kde.org/media/uploaded/files/2016/06/16/1498e8dc-4541-473b-b6db-2c2ae138cbc3__Screen_Shot_2016-06-17_at_00.17.17.png
> stock widget under Linux (same layout using Breeze)
> https://git.reviewboard.kde.org/media/uploaded/files/2016/06/17/dd352994-1753-4b33-a0d2-cd2a3132df48__progress-stock.png
> OS X/native with the new patch
> https://git.reviewboard.kde.org/media/uploaded/files/2016/06/18/8e6a0761-b760-4f41-be67-7f9ba7318349__Screen_Shot_2016-06-18_at_19.21.52.png
> OS X using QtCurve with the new patch
> https://git.reviewboard.kde.org/media/uploaded/files/2016/06/18/3535be4c-3034-493d-88c0-61ab9a13844d__Screen_Shot_2016-06-18_at_19.24.46.png
> Linux, Breeze, new patch
> https://git.reviewboard.kde.org/media/uploaded/files/2016/06/18/359d5f57-bdaa-45a7-a0b0-6acb5609459f__Screen_Shot_2016-06-18_at_19.16.19.png
> Linux, QtCurve, new patch
> https://git.reviewboard.kde.org/media/uploaded/files/2016/06/18/f5eb0902-884a-47e5-bf84-a3581a21bece__Screen_Shot_2016-06-18_at_19.14.17.png
> Linux, Oxygen, new patch
> https://git.reviewboard.kde.org/media/uploaded/files/2016/06/18/536d4f09-8409-4eb4-80ca-27d3f744d6a0__Screen_Shot_2016-06-18_at_19.16.56.png
> Linux, Breeze + Breeze icons, new patch
> https://git.reviewboard.kde.org/media/uploaded/files/2016/06/19/ee2d687e-69ea-493f-9ae4-87d90be614e2__progress-patched-breeze.png
> Linux, QtCurve + Breeze icons, new patch
> https://git.reviewboard.kde.org/media/uploaded/files/2016/06/19/7e3cfc5c-cb80-491c-b4d2-4d6f9c839a48__progress-patched-qtcurve.png
> Linux,Oxygen+Breeze icons, new patch
> https://git.reviewboard.kde.org/media/uploaded/files/2016/06/19/0b10d97d-3ba6-4d05-a663-3a03e29bc1c9__progress-patched-oxygen.png
> Linux, Breeze, new patch with maximumHeight from progressBar->sizeHint().height()
> https://git.reviewboard.kde.org/media/uploaded/files/2016/06/19/2a5b48bf-38f1-4ba9-a291-5de65537f8e1__progress-patched-breeze2.png
> X11, Breeze style + icons
> https://git.reviewboard.kde.org/media/uploaded/files/2016/06/20/346b2bdb-6577-416b-80ff-dc16ff4f5a27__Screen_Shot_2016-06-20_at_12.27.58.png
> X11, Oxygen style, Breeze icons
> https://git.reviewboard.kde.org/media/uploaded/files/2016/06/20/9693a989-5e2b-476a-bf61-90bff8532cef__Screen_Shot_2016-06-20_at_12.29.13.png
> X11, QtCurve style, Breeze icons
> https://git.reviewboard.kde.org/media/uploaded/files/2016/06/20/8ef04667-1ef7-4a5f-915b-364a90dbca4a__Screen_Shot_2016-06-20_at_12.30.04.png
> X11, Oxygen style & icons
> https://git.reviewboard.kde.org/media/uploaded/files/2016/06/20/0ab45b09-ba1e-4987-b431-c7b0869e23a2__Screen_Shot_2016-06-20_at_12.31.17.png
> X11, Oxygen style & icons, expanded state
> https://git.reviewboard.kde.org/media/uploaded/files/2016/06/20/b43b065e-7b1f-4c3f-8548-0c60842c81c6__xzHbU.png
> X11, Breeze, no "additional adjustments"
> https://git.reviewboard.kde.org/media/uploaded/files/2016/06/20/4801a619-3092-4b51-8549-36867189fdd9__Screen_Shot_2016-06-20_at_12.48.34.png
> X11, Oxygen, taller progbar due to "no additional adjustments"
> https://git.reviewboard.kde.org/media/uploaded/files/2016/06/20/f9db48ac-4a0d-4574-8daf-bcfd3781baf0__Screen_Shot_2016-06-20_at_12.48.56.png
> progress widget under the pure native Macintosh style, using Qt::UpArrow
> https://git.reviewboard.kde.org/media/uploaded/files/2016/09/11/9596660e-c169-44eb-80c5-3528d9a7cd08__UpArrow-MacNative.png
> progress widget under Breeze, using Qt::UpArrow
> https://git.reviewboard.kde.org/media/uploaded/files/2016/09/11/eda05b11-4fac-4229-bcfd-9fc0997e19f8__UpArrow-Breeze.png
>
>
> Thanks,
>
> René J.V. Bertin
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20161026/7b399496/attachment-0001.html>
More information about the KDevelop-devel
mailing list