Merge lp:~3v1n0/ubuntu-settings-components/touch+pointer-styles into lp:ubuntu-settings-components
| Status: | Merged |
|---|---|
| Approved by: | Lukáš Tinkl on 2016-10-11 |
| Approved revision: | 290 |
| Merged at revision: | 169 |
| Proposed branch: | lp:~3v1n0/ubuntu-settings-components/touch+pointer-styles |
| Merge into: | lp:ubuntu-settings-components |
| Prerequisite: | lp:~3v1n0/ubuntu-settings-components/slots-layouts |
| Diff against target: |
1390 lines (+475/-138) 39 files modified
debian/changelog (+17/-0) debian/control (+1/-1) examples/MessageComponents.qml (+5/-0) examples/OtherComponents.qml (+19/-15) examples/SettingsComponents.qml (+15/-0) examples/TransferComponents.qml (+3/-0) plugins/Ubuntu/Settings/Components/MessageHeader.qml (+23/-4) plugins/Ubuntu/Settings/Menus/AccessPointMenu.qml (+3/-4) plugins/Ubuntu/Settings/Menus/BaseLayoutMenu.qml (+7/-11) plugins/Ubuntu/Settings/Menus/BaseMenu.qml (+23/-15) plugins/Ubuntu/Settings/Menus/ButtonMenu.qml (+18/-5) plugins/Ubuntu/Settings/Menus/CMakeLists.txt (+2/-0) plugins/Ubuntu/Settings/Menus/CalendarMenu.qml (+3/-2) plugins/Ubuntu/Settings/Menus/CheckableMenu.qml (+2/-1) plugins/Ubuntu/Settings/Menus/EventMenu.qml (+2/-0) plugins/Ubuntu/Settings/Menus/GroupedMessageMenu.qml (+2/-2) plugins/Ubuntu/Settings/Menus/MediaPlayerMenu.qml (+17/-4) plugins/Ubuntu/Settings/Menus/ModemInfoItem.qml (+20/-10) plugins/Ubuntu/Settings/Menus/PlaybackButton.qml (+1/-1) plugins/Ubuntu/Settings/Menus/PlaybackItemMenu.qml (+8/-3) plugins/Ubuntu/Settings/Menus/ProgressBarMenu.qml (+3/-0) plugins/Ubuntu/Settings/Menus/ProgressValueMenu.qml (+1/-1) plugins/Ubuntu/Settings/Menus/SectionMenu.qml (+0/-2) plugins/Ubuntu/Settings/Menus/SimpleMessageMenu.qml (+3/-2) plugins/Ubuntu/Settings/Menus/SliderMenu.qml (+11/-11) plugins/Ubuntu/Settings/Menus/SnapDecisionMenu.qml (+2/-1) plugins/Ubuntu/Settings/Menus/StandardMenu.qml (+2/-2) plugins/Ubuntu/Settings/Menus/Style/BaseStyle.qml (+35/-0) plugins/Ubuntu/Settings/Menus/Style/CMakeLists.txt (+1/-0) plugins/Ubuntu/Settings/Menus/Style/MenuPaddings.qml (+26/-0) plugins/Ubuntu/Settings/Menus/Style/PointerStyle.qml (+38/-0) plugins/Ubuntu/Settings/Menus/Style/TouchStyle.qml (+40/-0) plugins/Ubuntu/Settings/Menus/Style/qmldir (+5/-0) plugins/Ubuntu/Settings/Menus/StyledSlotsLayout.qml (+32/-0) plugins/Ubuntu/Settings/Menus/TimeZoneMenu.qml (+2/-0) plugins/Ubuntu/Settings/Menus/TransferMenu.qml (+9/-5) plugins/Ubuntu/Settings/Menus/UserSessionMenu.qml (+2/-2) tests/qmltests/Menus/tst_BaseMenu.qml (+43/-26) tests/qmltests/Menus/tst_ButtonMenu.qml (+29/-8) |
| To merge this branch: | bzr merge lp:~3v1n0/ubuntu-settings-components/touch+pointer-styles |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Unity8 CI Bot | continuous-integration | Approve on 2016-11-07 | |
| Lukáš Tinkl (community) | 2016-10-03 | Approve on 2016-10-11 | |
|
Review via email:
|
|||
Commit Message
Menus: add Pointer and Touch styles to be used depending on the user interaction with components
Menu items now have a new Style property that defines some common properties such as shared colors and
sizes that change depending on the UX journey. I'm only defining Pointer and TouchStyles for now, but they
can be easily overridden in case.
Removed some deprecated properties and adapted colors and sizes to new style.
Description of the Change
* Are there any related MPs required for this MP to build/function as expected? Please list.
Unity8 won't work with this without lp:~3v1n0/unity8/menuitems-slots-cleanup
The examples client won't update the menu items size on the fly (without resizing the window) unless without using lp:~3v1n0/ubuntu-ui-toolkit/slotslayout-paddings-changes-updates-size (not needed for other components for now)
* Did you perform an exploratory manual test run of your code change and any related functionality?
Yep, ran in both laptop and phone
* If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?
N/A
* If you changed the UI, has there been a design review?
I'm updating the paddings and sizes matching the new design specs
* If you changed localized strings, has the POT file been updated?
N/A
| Unity8 CI Bot (unity8-ci-bot) wrote : | # |
FAILED: Continuous integration, rev:282
https:/
Executed test runs:
SUCCESS: https:/
UNSTABLE: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
Click here to trigger a rebuild:
https:/
- 282. By Marco Trevisan (Treviño) on 2016-10-05
-
Merging with lp:~3v1n0/ubuntu-settings-components/slots-layouts
- 283. By Marco Trevisan (Treviño) on 2016-10-05
-
testButtonMenu: fix failures on vivid because of SignalSpy unrealiability
| Unity8 CI Bot (unity8-ci-bot) wrote : | # |
PASSED: Continuous integration, rev:283
https:/
Executed test runs:
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
Click here to trigger a rebuild:
https:/
- 284. By Marco Trevisan (Treviño) on 2016-10-06
-
BaseMenu: bind ListItem height to menuHeight or it won't work because of bug #1630683
- 285. By Marco Trevisan (Treviño) on 2016-10-06
-
SimpleMessageMenu: animate menuHeight
- 286. By Marco Trevisan (Treviño) on 2016-10-06
-
Merging with lp:~3v1n0/ubuntu-settings-components/slots-layouts again
| Unity8 CI Bot (unity8-ci-bot) wrote : | # |
FAILED: Continuous integration, rev:286
https:/
Executed test runs:
SUCCESS: https:/
UNSTABLE: https:/
UNSTABLE: https:/
UNSTABLE: https:/
SUCCESS: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
Click here to trigger a rebuild:
https:/
- 287. By Marco Trevisan (Treviño) on 2016-10-06
-
testBaseMenu: adapt to use height instead of implicitHeight
| Unity8 CI Bot (unity8-ci-bot) wrote : | # |
PASSED: Continuous integration, rev:287
https:/
Executed test runs:
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
Click here to trigger a rebuild:
https:/
- 288. By Marco Trevisan (Treviño) on 2016-10-06
-
BaseStyle: use proper name for foregroud color
| Unity8 CI Bot (unity8-ci-bot) wrote : | # |
PASSED: Continuous integration, rev:288
https:/
Executed test runs:
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
Click here to trigger a rebuild:
https:/
- 289. By Marco Trevisan (Treviño) on 2016-10-10
-
CheckableMenu: make the checkbox size to adapt to style
| Unity8 CI Bot (unity8-ci-bot) wrote : | # |
PASSED: Continuous integration, rev:289
https:/
Executed test runs:
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
Click here to trigger a rebuild:
https:/
| Lukáš Tinkl (lukas-kde) wrote : | # |
Please get rid of specifying the font sizes using sth like:
font.pixelSize: menuStyle.
This will break with DGU (ie when you plug into an external monitor)
| Lukáš Tinkl (lukas-kde) wrote : | # |
I'd go with:
Label.Medium (for the touch style, to stay backwards compatible) and
Label.Small (for the smaller pointer mode)
- 290. By Marco Trevisan (Treviño) on 2016-10-11
-
PointerStyle: ignore the default SlotsLayout paddings or we'll take them in account twice
| Unity8 CI Bot (unity8-ci-bot) wrote : | # |
PASSED: Continuous integration, rev:290
https:/
Executed test runs:
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
Click here to trigger a rebuild:
https:/
| Marco Trevisan (Treviño) (3v1n0) wrote : | # |
> Please get rid of specifying the font sizes using sth like:
>
> font.pixelSize: menuStyle.
>
> This will break with DGU (ie when you plug into an external monitor)
Well, since menuStyle.
11:09:49 <Trevinho> greyback: hey, yesterday you were talking with ltinkl abou the label scaling when using pixelSize...
11:10:09 <greyback> yep?
11:10:11 <Trevinho> greyback: I was wondering why that doesn't happen when the pixelSize is bound to an units.gu value...
11:10:36 <Trevinho> isn't that like any other sized element?
11:11:03 <greyback> Trevinho: it would, if you did font.pixelSize: units.gu(2)
11:11:13 <Trevinho> greyback: so I did...
11:11:35 <Trevinho> greyback: I mean I've font.pixelSize: menuStyle.fontSize where fontSize is defined in GU's...
11:12:07 <greyback> Trevinho: ok, that should be fine
11:12:57
11:13:54 <greyback> Trevinho: ack. I didn't know that the theme sizes were dynamic like that.
11:14:32 <Trevinho> greyback: that's something I defined for menu items only...
11:14:36 <Trevinho> so not generic solution
11:14:44 <Trevinho> but in my case it is
- 291. By Marco Trevisan (Treviño) on 2016-10-11
-
Menus: ensure that labels will use proper style foreground color
- 292. By Marco Trevisan (Treviño) on 2016-10-11
-
BaseStyle: foregroundColor should use backgroundText by default
- 293. By Marco Trevisan (Treviño) on 2016-10-11
-
MediaPlayerMenu: use proper colors for title and subtitle elements
- 294. By Marco Trevisan (Treviño) on 2016-10-11
-
ButtonMenu: use a custom button implementation in order to have better sizing
- 295. By Marco Trevisan (Treviño) on 2016-10-26
-
GroupedMessageMenu: use proper color for count number
- 296. By Marco Trevisan (Treviño) on 2016-10-27
-
Merging with lp:ubuntu-settings-components
- 297. By Marco Trevisan (Treviño) on 2016-10-27
-
debian: bump revision and breaks old unity8 versions
- 298. By Marco Trevisan (Treviño) on 2016-10-27
-
debian/changelog: add correct commit message here
- 299. By Marco Trevisan (Treviño) on 2016-10-28
-
SliderMenu: consider the whole column content as the height of the menu item
| Unity8 CI Bot (unity8-ci-bot) wrote : | # |
PASSED: Continuous integration, rev:299
https:/
Executed test runs:
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
Click here to trigger a rebuild:
https:/

FAILED: Continuous integration, rev:281 /unity8- jenkins. ubuntu. com/job/ lp-ubuntu- settings- components- ci/81/ /unity8- jenkins. ubuntu. com/job/ build/3037 /unity8- jenkins. ubuntu. com/job/ test-0- autopkgtest/ label=amd64, release= vivid+overlay, testname= qmluitests. sh/1684 /unity8- jenkins. ubuntu. com/job/ test-0- autopkgtest/ label=amd64, release= xenial+ overlay, testname= qmluitests. sh/1684 /unity8- jenkins. ubuntu. com/job/ test-0- autopkgtest/ label=amd64, release= yakkety, testname= qmluitests. sh/1684 /unity8- jenkins. ubuntu. com/job/ build-0- fetch/3065 /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=amd64, release= vivid+overlay/ 2922 /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=amd64, release= vivid+overlay/ 2922/artifact/ output/ *zip*/output. zip /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=amd64, release= xenial+ overlay/ 2922 /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=amd64, release= xenial+ overlay/ 2922/artifact/ output/ *zip*/output. zip /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=amd64, release= yakkety/ 2922 /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=amd64, release= yakkety/ 2922/artifact/ output/ *zip*/output. zip /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=armhf, release= vivid+overlay/ 2922 /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=armhf, release= vivid+overlay/ 2922/artifact/ output/ *zip*/output. zip /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=armhf, release= xenial+ overlay/ 2922 /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=armhf, release= xenial+ overlay/ 2922/artifact/ output/ *zip*/output. zip /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=armhf, release= yakkety/ 2922 /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=armhf, release= yakkety/ 2922/artifact/ output/ *zip*/output. zip /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=i386, release= vivid+overlay/ 2922 /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=i386, release= vivid+overlay/ 2922/artifact/ output/ *zip*/output. zip /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=i386, release= xenial+ overlay/ 2922 /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=i386, release= xenial+ overlay/ 2922/artifact/ output/ *zip*/output. zip /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=i386, release= yakkety/ 2922 /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=i386, release= yakkety/ 2922/artifact/ output/ *zip*/output. zip
https:/
Executed test runs:
SUCCESS: https:/
UNSTABLE: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
Click here to trigger a rebuild: /unity8- jenkins. ubuntu. com/job/ lp-ubuntu- settings- components- ci/81/rebuild
https:/