Merge lp:~daker/ubuntu-system-settings/fix.brightness.slider into lp:ubuntu-system-settings

Proposed by Adnane Belmadiaf
Status: Merged
Approved by: Iain Lane
Approved revision: 528
Merged at revision: 530
Proposed branch: lp:~daker/ubuntu-system-settings/fix.brightness.slider
Merge into: lp:ubuntu-system-settings
Diff against target: 11 lines (+1/-0)
1 file modified
plugins/battery/PageComponent.qml (+1/-0)
To merge this branch: bzr merge lp:~daker/ubuntu-system-settings/fix.brightness.slider
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Approve
Iain Lane Approve
Matthew Paul Thomas (community) design Approve
Omer Akram (community) Approve
Review via email: mp+198977@code.launchpad.net

Commit message

Live change the brightness to much the panel indicator

To post a comment you must log in.
Revision history for this message
Omer Akram (om26er) wrote :

LGTM

review: Approve
Revision history for this message
Matthew Paul Thomas (mpt) wrote :

This is implicit in anything I design, but I've now mentioned it explicitly: "Unless specifically noted, all interface elements in System Settings should update live to reflect settings when they are changed elsewhere." <https://wiki.ubuntu.com/SystemSettings?action=diff&rev2=53&rev1=52>

review: Approve (design)
Revision history for this message
Matthew Paul Thomas (mpt) wrote :

And thanks for the fix, Adnane!

Revision history for this message
Iain Lane (laney) wrote :

On Mon, Dec 16, 2013 at 09:57:05AM -0000, Matthew Paul Thomas wrote:
> Review: Approve design
>
> This is implicit in anything I design, but I've now mentioned it explicitly: "Unless specifically noted, all interface elements in System Settings should update live to reflect settings when they are changed elsewhere." <https://wiki.ubuntu.com/SystemSettings?action=diff&rev2=53&rev1=52>

You're talking about something different to what this change achieves -
this is about updating the brightness while you're dragging the slider,
rather than just when you release it.

  http://developer.ubuntu.com/api/qml/sdk-1.0/Ubuntu.Components.Slider/#live-prop

--
Iain Lane [ <email address hidden> ]
Debian Developer [ <email address hidden> ]
Ubuntu Developer [ <email address hidden> ]

Revision history for this message
Adnane Belmadiaf (daker) wrote :

Hi Iain, juste open the battery indicator, slide the brightness slider, the change is live.

Revision history for this message
Iain Lane (laney) wrote :

On Mon, Dec 16, 2013 at 11:37:33AM -0000, Adnane Belmadiaf wrote:
> Hi Iain, juste open the battery indicator, slide the brightness slider, the change is live.

I know, I was responding to Matthew.

--
Iain Lane [ <email address hidden> ]
Debian Developer [ <email address hidden> ]
Ubuntu Developer [ <email address hidden> ]

Revision history for this message
Iain Lane (laney) wrote :

Checked, works fine. Thanks. :-)

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) :
review: Approve (continuous-integration)
Revision history for this message
Matthew Paul Thomas (mpt) wrote :

Sorry for the misunderstanding. I think live live updating is a good default for sliders too.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'plugins/battery/PageComponent.qml'
2--- plugins/battery/PageComponent.qml 2013-12-03 16:58:58 +0000
3+++ plugins/battery/PageComponent.qml 2013-12-13 17:17:50 +0000
4@@ -277,6 +277,7 @@
5 maximumValue: 100.0
6 enabled: indicatorPower.brightness.state != null
7 value: enabled ? indicatorPower.brightness.state * 100 : 0.0
8+ live: true
9
10 onValueChanged: indicatorPower.brightness.updateState(value / 100.0);
11 }

Subscribers

People subscribed via source and target branches