Merge lp:~feng-kylin/unity8/fix-lp1431566 into lp:unity8

Proposed by handsome_feng
Status: Rejected
Rejected by: Albert Astals Cid
Proposed branch: lp:~feng-kylin/unity8/fix-lp1431566
Merge into: lp:unity8
Diff against target: 12 lines (+1/-1)
1 file modified
qml/Panel/Panel.qml (+1/-1)
To merge this branch: bzr merge lp:~feng-kylin/unity8/fix-lp1431566
Reviewer Review Type Date Requested Status
Michael Zanetti Pending
Unity Team Pending
Review via email: mp+256466@code.launchpad.net

Commit message

Make the WindowControlButtons show only under windowed mode

Description of the change

Make the WindowControlButtons show only under windowed mode.

To post a comment you must log in.
Revision history for this message
Michael Zanetti (mzanetti) wrote :

Thanks for the contribution. Unfortunately this is not really how it should be done. "usageModeSettings" is not part of Panel.qml. It is bad practice to reach out of context like this and will cause a mess in the long run.

Also, there are more issues with those buttons and I already have a branch upcoming that improves the situation. I'm very sorry. I should have marked the bug as "in progress".

Revision history for this message
Michael Zanetti (mzanetti) wrote :

I've just pushed my local code to here: https://code.launchpad.net/~mzanetti/unity8/panel-buttons-fixes/+merge/256490

It is not finished yet as it's lacking tests still.

Revision history for this message
handsome_feng (feng-kylin) wrote :

> I've just pushed my local code to here:
> https://code.launchpad.net/~mzanetti/unity8/panel-buttons-fixes/+merge/256490
>
> It is not finished yet as it's lacking tests still.

oh, it doesn't matter, i thank it is a good change of learning form you. :)

Unmerged revisions

1731. By handsome_feng

Make the WindowControlButtons show only under windowed mode

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'qml/Panel/Panel.qml'
--- qml/Panel/Panel.qml 2015-04-02 15:08:05 +0000
+++ qml/Panel/Panel.qml 2015-04-16 11:33:52 +0000
@@ -159,7 +159,7 @@
159 margins: units.gu(0.7)159 margins: units.gu(0.7)
160 }160 }
161 height: indicators.minimizedPanelHeight - anchors.margins * 2161 height: indicators.minimizedPanelHeight - anchors.margins * 2
162 visible: PanelState.buttonsVisible162 visible: PanelState.buttonsVisible && usageModeSettings.usageMode === "Windowed"
163 onClose: PanelState.close()163 onClose: PanelState.close()
164 onMinimize: PanelState.minimize()164 onMinimize: PanelState.minimize()
165 onMaximize: PanelState.maximize()165 onMaximize: PanelState.maximize()

Subscribers

People subscribed via source and target branches