on xenial help sign in
Merged
commit034dca796e3317295839fb327a158c69abbde3c4 authorAndrea Cimitan <andrea.cimitan@gmail.com> dateMon 26 Oct 2015, 12:26 (11 years ago) parent20def2342ca81f
268 files changed+873−718
CMakeLists.txt+1−1 data/CMakeLists.txt+3 debian/changelog+54 debian/control+1−1 debian/unity8.install+1 plugins/Dash/CardAttributes.qml+2−2 plugins/Dash/CardCreator.js+25−51 plugins/Dash/ScopeStyle.qml+1−1 plugins/Powerd/Powerd.h+2 po/ast.po+26−26 po/br.po+5−5 po/ja.po+4−4 po/ug.po+4−4 qml/Components/Background.qml+1−1 qml/Components/BaseCarouselDelegate.qml+1−1 qml/Components/Carousel.qml+1−1 qml/Components/DelayedLockscreen.qml+1−1 qml/Components/Dialogs.qml+1−1 qml/Components/DragHandle.qml+1−1 qml/Components/DraggingArea.qml+1−1 qml/Components/EdgeDragEvaluator.qml+1−1 qml/Components/Header.qml+2−2 qml/Components/InputMethod.qml+1−1 qml/Components/LazyImage.qml+11−11 qml/Components/ListItems/Header.qml+1−1 qml/Components/Lockscreen.qml+2−2 qml/Components/PassphraseLockscreen.qml+1−1 qml/Components/PinLockscreen.qml+2−2 qml/Components/PinPadButton.qml+1−1 qml/Components/Rating.qml+1−1 qml/Components/RatingStyle.qml+1−1 qml/Components/ResponsiveGridView.qml+1−1 qml/Components/ResponsiveVerticalJournal.qml+1−1 qml/Components/ScrollCalculator.qml+1−1 qml/Components/ShellDialog.qml+2−2 qml/Components/UbuntuShapeForItem.qml+1−1 qml/Components/UnityInputInfo/UnityInputInfo.qml+1−1 qml/Components/WindowControlButtons.qml+1−1 qml/Components/ZoomableImage.qml+1−1 qml/Dash/CardCarousel.qml+2−2 qml/Dash/CardHorizontalList.qml+1−1 qml/Dash/CardVerticalJournal.qml+1−1 qml/Dash/Dash.qml+1−1 qml/Dash/DashApplication.qml+3−2 qml/Dash/DashCategoryBase.qml+1−1 qml/Dash/DashContent.qml+1−1 qml/Dash/DashContentTabBarStyle.qml+1−1 qml/Dash/DashNavigation.qml+3−3 qml/Dash/DashNavigationButton.qml+3−3 qml/Dash/DashNavigationList.qml+4−4 qml/Dash/PageHeader.qml → qml/Dash/DashPageHeader.qml+11−15 qml/Dash/GenericScopeView.qml+5−5 qml/Dash/PreviewListView.qml+2−2 qml/Dash/Previews/Preview.qml+1−1 qml/Dash/Previews/PreviewActionButton.qml+1−1 qml/Dash/Previews/PreviewActionCombo.qml+3−3 qml/Dash/Previews/PreviewActions.qml+3−3 qml/Dash/Previews/PreviewAudioPlayback.qml+6−6 qml/Dash/Previews/PreviewComment.qml+1−1 qml/Dash/Previews/PreviewCommentInput.qml+1−1 qml/Dash/Previews/PreviewExpandable.qml+4−4 qml/Dash/Previews/PreviewHeader.qml+9−9 qml/Dash/Previews/PreviewIconActions.qml+1−1 qml/Dash/Previews/PreviewImageGallery.qml+2−2 qml/Dash/Previews/PreviewOverlay.qml+3−3 qml/Dash/Previews/PreviewPayments.qml+1−1 qml/Dash/Previews/PreviewProgress.qml+1−1 qml/Dash/Previews/PreviewRatingDisplay.qml+3−3 qml/Dash/Previews/PreviewRatingEdit.qml+2−2 qml/Dash/Previews/PreviewRatingInput.qml+5−5 qml/Dash/Previews/PreviewRatingSingleDisplay.qml+1−1 qml/Dash/Previews/PreviewTable.qml+4−4 qml/Dash/Previews/PreviewTextSummary.qml+4−4 qml/Dash/Previews/PreviewVideoPlayback.qml+1−1 qml/Dash/Previews/PreviewZoomableImage.qml+2−2 qml/Dash/PullToRefreshScopeStyle.qml+2−2 qml/Dash/ScopeSettings/ScopeSetting.qml+1−1 qml/Dash/ScopeSettings/ScopeSettingBoolean.qml+4−4 qml/Dash/ScopeSettings/ScopeSettingList.qml+2−2 qml/Dash/ScopeSettings/ScopeSettingString.qml+5−5 qml/Dash/ScopeSettingsPage.qml+2−2 qml/Dash/ScopesList.qml+1−1 qml/Dash/ScopesListCategory.qml+3−3 qml/Dash/ScopesListCategoryItem.qml+3−3 qml/Greeter/Clock.qml+1−1 qml/Greeter/CoverPage.qml+1−1 qml/Greeter/Greeter.qml+1−1 qml/Greeter/Infographics.qml+1−1 qml/Greeter/LoginList.qml+1−1 qml/Greeter/NarrowView.qml+1−1 qml/Greeter/ObjectPositioner.qml+1−1 qml/Greeter/WideView.qml+1−1 qml/Launcher/FoldingLauncherDelegate.qml+1−1 qml/Launcher/Launcher.qml+1−1 qml/Launcher/LauncherDelegate.qml+6−7 qml/Launcher/LauncherPanel.qml+5−5 qml/Notifications/Notification.qml+14−14 qml/Notifications/NotificationMenuItemFactory.qml+1−1 qml/Notifications/Notifications.qml+1−1 qml/Notifications/OptionToggle.qml+6−6 qml/Notifications/ShapedIcon.qml+2−2 qml/Notifications/SwipeToAct.qml+9−9 qml/OrientedShell.qml+1−1 qml/Panel/ActiveCallHint.qml+1−1 qml/Panel/Handle.qml+1−1 qml/Panel/IndicatorItem.qml+1−1 qml/Panel/IndicatorItemRow.qml+1−1 qml/Panel/IndicatorPage.qml+1−1 qml/Panel/Indicators/MenuItemFactory.qml+5−5 qml/Panel/Indicators/MessageMenuItemFactory.qml+1−1 qml/Panel/Indicators/ModemInfoItem.qml+5−5 qml/Panel/Indicators/RoamingIndication.qml+3−3 qml/Panel/Indicators/client/IndicatorRepresentation.qml+2−2 qml/Panel/Indicators/client/IndicatorsClient.qml+3−3 qml/Panel/Indicators/client/IndicatorsList.qml+2−2 qml/Panel/Indicators/client/IndicatorsTree.qml+1−1 qml/Panel/IndicatorsBar.qml+1−1 qml/Panel/IndicatorsMenu.qml+1−1 qml/Panel/MenuContent.qml+1−1 qml/Panel/Panel.qml+1−1 qml/Rotation/RotationStates.qml+1−1 qml/ScopeTool.qml+2−2 qml/Shell.qml+3−3 qml/Stages/Animations/SwipeFromBottomAnimation.qml+1−1 qml/Stages/ApplicationWindow.qml+1−1 qml/Stages/DecoratedWindow.qml+1−1 qml/Stages/DesktopSpread.qml+1−1 qml/Stages/DesktopSpreadDelegate.qml+1−1 qml/Stages/DesktopStage.qml+1−1 qml/Stages/MainViewStyle.qml+35−27 qml/Stages/PageHeadStyle.qml+2−2 qml/Stages/PhoneStage.qml+1−1 qml/Stages/ShimStage.qml+1−1 qml/Stages/Splash.qml+13−14 qml/Stages/SpreadDelegate.qml+1−1 qml/Stages/SpreadMaths.qml+1−1 qml/Stages/SurfaceContainer.qml+1−1 qml/Stages/TabletStage.qml+1−1 qml/Stages/TransformedSpreadDelegate.qml+1−1 qml/Stages/TransformedTabletSpreadDelegate.qml+1−1 qml/Stages/WindowDecoration.qml+1−1 qml/Stages/WindowMoveResizeArea.qml+1−1 qml/Stages/graphics/background_paper@27.png qml/Tutorial/Arrow.qml+1−1 qml/Tutorial/Slider.qml+1−1 qml/Tutorial/Tick.qml+1−1 qml/Tutorial/Tutorial.qml+1−1 qml/Tutorial/TutorialBottom.qml+1−1 qml/Tutorial/TutorialBottomFinish.qml+1−1 qml/Tutorial/TutorialContent.qml+1−1 qml/Tutorial/TutorialLeft.qml+1−1 qml/Tutorial/TutorialLeftFinish.qml+1−1 qml/Tutorial/TutorialPage.qml+1−1 qml/Tutorial/TutorialRight.qml+1−1 qml/Wizard/CheckableSetting.qml+4−4 qml/Wizard/Page.qml+3−3 qml/Wizard/Pages.qml+1−1 qml/Wizard/Pages/10-welcome.qml+2−2 qml/Wizard/Pages/20-sim.qml+1−1 qml/Wizard/Pages/30-passwd-type.qml+6−6 qml/Wizard/Pages/40-wifi.qml+2−2 qml/Wizard/Pages/50-location.qml+3−3 qml/Wizard/Pages/60-reporting.qml+11−1 qml/Wizard/Pages/80-finished.qml+1−1 qml/Wizard/Pages/here-terms.qml+3−3 qml/Wizard/Pages/passwd-confirm.qml+1−1 qml/Wizard/Pages/passwd-set.qml+1−1 qml/Wizard/StackButton.qml+3−3 qml/Wizard/Wizard.qml+1−1 tests/CMakeLists.txt+1 tests/autopilot/unity8/dash.py+3−3 tests/plugins/Dash/cardcreator/1.res+7−8 tests/plugins/Dash/cardcreator/2.res+9−8 tests/plugins/Dash/cardcreator/3.res+8−9 tests/plugins/Dash/cardcreator/4.res+3−3 tests/plugins/Dash/cardcreator/5.res+18−45 tests/plugins/Dash/cardcreator/6.res+10−9 tests/plugins/Dash/cardcreator/7.res+10−9 tests/plugins/Dash/cardcreator/8.res+7−6 tests/plugins/Dash/tst_CroppedImageMinimumSourceSize.qml+1−1 tests/plugins/Dash/tst_ScopeStyle.qml+1−1 tests/plugins/Ubuntu/Gestures/DownwardsLauncher.qml+1−1 tests/plugins/Ubuntu/Gestures/LeftwardsLauncher.qml+1−1 tests/plugins/Ubuntu/Gestures/RightwardsLauncher.qml+1−1 tests/plugins/Ubuntu/Gestures/UpwardsLauncher.qml+1−1 tests/plugins/Ubuntu/Gestures/tst_DirectionalDragArea.qml+1−1 tests/plugins/Ubuntu/Gestures/tst_FloatingFlickable.qml+1−1 tests/plugins/Ubuntu/Gestures/tst_PressedOutsideNotifier.qml+1−1 tests/qmltests/CMakeLists.txt+1−1 tests/qmltests/Components/tst_Dialogs.qml+2−2 tests/qmltests/Components/tst_DragHandle.qml+1−1 tests/qmltests/Components/tst_DragHandle/BidirectionalShowable.qml+1−1 tests/qmltests/Components/tst_DragHandle/HorizontalShowable.qml+1−1 tests/qmltests/Components/tst_DragHandle/VerticalShowable.qml+1−1 tests/qmltests/Components/tst_LazyImage.qml+3−3 tests/qmltests/Components/tst_LazyImage/ImageControls.qml+1−1 tests/qmltests/Components/tst_Lockscreen.qml+1−1 tests/qmltests/Components/tst_Rating.qml+3−3 tests/qmltests/Components/tst_ResponsiveGridView.qml+2−2 tests/qmltests/Components/tst_ResponsiveVerticalJournal.qml+2−2 tests/qmltests/Components/tst_Showable.qml+1−1 tests/qmltests/Dash/Previews/tst_Preview.qml+2−2 tests/qmltests/Dash/Previews/tst_PreviewActions.qml+1−1 tests/qmltests/Dash/Previews/tst_PreviewAudioPlayback.qml+3−3 tests/qmltests/Dash/Previews/tst_PreviewComment.qml+1−1 tests/qmltests/Dash/Previews/tst_PreviewCommentInput.qml+1−1 tests/qmltests/Dash/Previews/tst_PreviewExpandable.qml+3−3 tests/qmltests/Dash/Previews/tst_PreviewHeader.qml+1−1 tests/qmltests/Dash/Previews/tst_PreviewIconActions.qml+2−2 tests/qmltests/Dash/Previews/tst_PreviewPayments.qml+1−1 tests/qmltests/Dash/Previews/tst_PreviewProgress.qml+1−1 tests/qmltests/Dash/Previews/tst_PreviewRatingDisplay.qml+3−3 tests/qmltests/Dash/Previews/tst_PreviewRatingEdit.qml+3−3 tests/qmltests/Dash/Previews/tst_PreviewRatingInput.qml+3−3 tests/qmltests/Dash/Previews/tst_PreviewTable.qml+3−3 tests/qmltests/Dash/Previews/tst_PreviewTextSummary.qml+3−3 tests/qmltests/Dash/Previews/tst_PreviewWidgetFactory.qml+2−2 tests/qmltests/Dash/ScopeSettings/tst_ScopeSettingBoolean.qml+1−1 tests/qmltests/Dash/ScopeSettings/tst_ScopeSettingList.qml+1−1 tests/qmltests/Dash/ScopeSettings/tst_ScopeSettingNumber.qml+1−1 tests/qmltests/Dash/ScopeSettings/tst_ScopeSettingString.qml+1−1 tests/qmltests/Dash/ScopeSettings/tst_ScopeSettingsWidgetFactory.qml+1−1 tests/qmltests/Dash/tst_Card.qml+6−6 tests/qmltests/Dash/tst_CardBenchmark.qml+1−1 tests/qmltests/Dash/tst_CardTool.qml+1−1 tests/qmltests/Dash/tst_Dash.qml+2−2 tests/qmltests/Dash/tst_DashContent.qml+5−5 tests/qmltests/Dash/tst_PageHeader.qml → tests/qmltests/Dash/tst_DashPageHeader.qml+4−4 tests/qmltests/Dash/tst_GenericScopeView.qml+4−4 tests/qmltests/Dash/tst_PreviewListView.qml+4−4 tests/qmltests/Greeter/TestView.qml+1−1 tests/qmltests/Greeter/tst_Clock.qml+1−1 tests/qmltests/Greeter/tst_Greeter.qml+1−1 tests/qmltests/Greeter/tst_Infographics.qml+1−1 tests/qmltests/Greeter/tst_NarrowView.qml+1−1 tests/qmltests/Greeter/tst_WideView.qml+1−1 tests/qmltests/Launcher/tst_Launcher.qml+25−14 tests/qmltests/Notifications/tst_Notifications.qml+1−1 tests/qmltests/Notifications/tst_OptionToggle.qml+1−1 tests/qmltests/Notifications/tst_SwipeToAct.qml+1−1 tests/qmltests/Notifications/tst_VisualSnapDecisionsQueue.qml+1−1 tests/qmltests/Panel/IndicatorTest.qml+1−1 tests/qmltests/Panel/Indicators/tst_IndicatorsLight.qml+1−1 tests/qmltests/Panel/tst_IndicatorItem.qml+1−1 tests/qmltests/Panel/tst_IndicatorItemRow.qml+1−1 tests/qmltests/Panel/tst_IndicatorsBar.qml+1−1 tests/qmltests/Panel/tst_IndicatorsMenu.qml+1−1 tests/qmltests/Panel/tst_Panel.qml+1−1 tests/qmltests/Stages/ApplicationCheckBox.qml+1−1 tests/qmltests/Stages/RecursingChildSessionControl.qml+1−1 tests/qmltests/Stages/tst_ApplicationWindow.qml+2−2 tests/qmltests/Stages/tst_DesktopStage.qml+2−2 tests/qmltests/Stages/tst_PhoneStage.qml+1−1 tests/qmltests/Stages/tst_SessionContainer.qml+1−1 tests/qmltests/Stages/tst_Splash.qml+1−1 tests/qmltests/Stages/tst_SpreadDelegate.qml+2−2 tests/qmltests/Stages/tst_SurfaceContainer.qml+1−1 tests/qmltests/Stages/tst_TabletStage.qml+2−2 tests/qmltests/Stages/tst_WindowMoveResizeArea.qml+2−2 tests/qmltests/Tutorial/tst_Tutorial.qml+1−1 tests/qmltests/Wizard/tst_Wizard.qml+15−14 tests/qmltests/tst_OrientedShell.qml+2−2 tests/qmltests/tst_Shell.qml+2−2 tests/qmltests/tst_ShellWithPin.qml+1−1 tests/sdk/CMakeLists.txt+6 tests/sdk/check_sdk.py+114 tests/utils/modules/Unity/Test/MouseTouchEmulationCheckbox.qml+1−1 tests/utils/modules/Unity/Test/UnityTestCase.qml+1−1
CMakeLists.txt+1−1
@@ -57,7 +57,7 @@ find_package(Qt5DBus 5.2 REQUIRED)
5757find_package(Qt5Concurrent 5.2 REQUIRED)
5858find_package(Qt5Sql 5.2 REQUIRED)
5959
60−pkg_check_modules(APPLICATION_API REQUIRED unity-shell-application=8)
60+pkg_check_modules(APPLICATION_API REQUIRED unity-shell-application>=8)
6161
6262# Standard install paths
6363include(GNUInstallDirs)
data/CMakeLists.txt+3
@@ -11,5 +11,8 @@ install(FILES
1111 DESTINATION ${CMAKE_INSTALL_DATADIR}/applications
1212 )
1313
14+add_custom_target(pkgversion ALL COMMAND dpkg-parsechangelog -l${CMAKE_SOURCE_DIR}/debian/changelog --show-field version > ${CMAKE_CURRENT_BINARY_DIR}/version)
15+
1416install(FILES com.canonical.Unity8.gschema.xml DESTINATION ${CMAKE_INSTALL_DATADIR}/glib-2.0/schemas)
1517install(FILES unity8-dash.url-dispatcher DESTINATION ${CMAKE_INSTALL_DATADIR}/url-dispatcher/urls)
18+install(FILES ${CMAKE_CURRENT_BINARY_DIR}/version DESTINATION ${CMAKE_INSTALL_LOCALSTATEDIR}/lib/unity8)
debian/changelog+54
@@ -1,3 +1,57 @@
1+unity8 (8.11+15.10.20151009-0ubuntu1) wily; urgency=medium
2+
3+ [ CI Train Bot ]
4+ * New rebuild forced.
5+
6+ [ Pawel Stolowski ]
7+ * Store unity8 package version in /var/lib/.../version file for fast
8+ retrieval from the shell plugin.
9+
10+ -- Pawel Stolowski <ci-train-bot@canonical.com> Fri, 09 Oct 2015 09:13:03 +0000
11+
12+unity8 (8.11+15.10.20151008-0ubuntu1) wily; urgency=medium
13+
14+ [ Lukáš Tinkl ]
15+ * Revert to using plaintext instead of HTML-like markup for the
16+ notifications (LP: #1504256)
17+
18+ -- Michał Sawicz <michal.sawicz@canonical.com> Thu, 08 Oct 2015 20:46:26 +0000
19+
20+unity8 (8.11+15.10.20151002-0ubuntu1) wily; urgency=medium
21+
22+ [ CI Train Bot ]
23+ * Resync trunk.
24+
25+ [ Lukáš Tinkl ]
26+ * Wizard: skip the reporting page if the system is configured not to
27+ report crashes (LP: #1494442)
28+
29+ -- Ken VanDine <ken.vandine@canonical.com> Fri, 02 Oct 2015 13:24:03 +0000
30+
31+unity8 (8.11+15.10.20151001-0ubuntu1) wily; urgency=medium
32+
33+ [ Alexandros Frantzis ]
34+ * Use power state change reason SnapDecision to turn screen on when a
35+ SnapDecision arrives (LP: #1291455)
36+
37+ [ CI Train Bot ]
38+ * New rebuild forced.
39+
40+ -- Alexandros Frantzis <alexandros.frantzis@canonical.com> Thu, 01 Oct 2015 12:04:04 +0000
41+
42+unity8 (8.11+15.10.20150930.1-0ubuntu1) wily; urgency=medium
43+
44+ [ Albert Astals Cid ]
45+ * Make Launcher::test_quickListMenuOnRMB stable (LP: #1500359)
46+
47+ [ CI Train Bot ]
48+ * New rebuild forced.
49+
50+ [ Michael Zanetti ]
51+ * Stabilize Launcher DND test
52+
53+ -- Michał Sawicz <michal.sawicz@canonical.com> Wed, 30 Sep 2015 10:09:33 +0000
54+
155unity8 (8.11+15.10.20150925-0ubuntu1) wily; urgency=medium
256
357 [ Albert Astals Cid ]
debian/control+1−1
@@ -49,7 +49,7 @@ Build-Depends: cmake,
4949 qtdeclarative5-private-dev (>= 5.2.1),
5050 qtdeclarative5-qtmultimedia-plugin,
5151 qtdeclarative5-ubuntu-settings-components (>= 0.6),
52− qtdeclarative5-ubuntu-ui-toolkit-plugin (>= 1.1.1239) | qtdeclarative5-ubuntu-ui-toolkit-plugin-gles (>= 1.1.1239),
52+ qtdeclarative5-ubuntu-ui-toolkit-plugin (>= 1.3.1676) | qtdeclarative5-ubuntu-ui-toolkit-plugin-gles (>= 1.3.1676),
5353 qtdeclarative5-ubuntu-web-plugin,
5454 ttf-ubuntu-font-family,
5555Standards-Version: 3.9.4
debian/unity8.install+1
@@ -1,3 +1,4 @@
1+var/lib/unity8/version
12data/unity8-dash.conf usr/share/upstart/sessions/
23data/unity8-filewatcher.conf usr/share/upstart/sessions/
34data/unity8.conf usr/share/upstart/sessions/
plugins/Dash/CardAttributes.qml+2−2
@@ -16,7 +16,7 @@
1616
1717import QtQuick 2.2
1818import QtQuick.Layouts 1.1
19−import Ubuntu.Components 1.1
19+import Ubuntu.Components 1.3
2020
2121GridLayout {
2222 id: grid
@@ -27,7 +27,7 @@ GridLayout {
2727 columns: 2 + repeater.count % 2
2828 rowSpacing: units.gu(.5)
2929 property alias model: repeater.model
30− property color color: Theme.palette.normal.baseText
30+ property color color: theme.palette.normal.baseText
3131 property real fontScale: 1.0
3232
3333 Repeater {
plugins/Dash/CardCreator.js+25−51
@@ -28,11 +28,12 @@ var kBackgroundLoaderCode = 'Loader {\n\
2828 sourceComponent: UbuntuShape { \n\
2929 objectName: "background"; \n\
3030 radius: "medium"; \n\
31− color: getColor(0) || "white"; \n\
32− gradientColor: getColor(1) || color; \n\
31+ backgroundColor: getColor(0) || "white"; \n\
32+ secondaryBackgroundColor: getColor(1) || backgroundColor; \n\
33+ backgroundMode: UbuntuShape.VerticalGradient; \n\
3334 anchors.fill: parent; \n\
34− image: backgroundImage.source ? backgroundImage : null; \n\
35− property real luminance: Style.luminance(color); \n\
35+ source: backgroundImage.source ? backgroundImage : null; \n\
36+ property real luminance: Style.luminance(backgroundColor); \n\
3637 property Image backgroundImage: Image { \n\
3738 objectName: "backgroundImage"; \n\
3839 source: { \n\
@@ -52,7 +53,7 @@ var kBackgroundLoaderCode = 'Loader {\n\
5253// %1 is used as anchors of artShapeHolder
5354// %2 is used as image width
5455// %3 is used as image height
55−var kArtShapeHolderCode = 'Item { \n\
56+var kArtShapeHolderCode = 'Item { \n\
5657 id: artShapeHolder; \n\
5758 height: root.fixedArtShapeSize.height > 0 ? root.fixedArtShapeSize.height : artShapeLoader.height; \n\
5859 width: root.fixedArtShapeSize.width > 0 ? root.fixedArtShapeSize.width : artShapeLoader.width; \n\
@@ -66,10 +67,9 @@ var kArtShapeHolderCode = 'Item { \n\
6667 sourceComponent: Item { \n\
6768 id: artShape; \n\
6869 objectName: "artShape"; \n\
69− property bool doShapeItem: components["art"]["conciergeMode"] !== true; \n\
70+ readonly property bool doShapeItem: components["art"]["conciergeMode"] !== true; \n\
7071 visible: image.status == Image.Ready; \n\
7172 readonly property alias image: artImage; \n\
72− property alias borderSource: artShapeShape.borderSource; \n\
7373 ShaderEffectSource { \n\
7474 id: artShapeSource; \n\
7575 sourceItem: artImage; \n\
@@ -78,16 +78,17 @@ var kArtShapeHolderCode = 'Item { \n\
7878 height: 1; \n\
7979 hideSource: doShapeItem; \n\
8080 } \n\
81− Shape { \n\
81+ UbuntuShape { \n\
8282 id: artShapeShape; \n\
83− image: artShapeSource; \n\
83+ source: artShapeSource; \n\
8484 anchors.fill: parent; \n\
8585 visible: doShapeItem; \n\
8686 radius: "medium"; \n\
87+ aspect: root.artShapeStyle === "inset" ? UbuntuShape.Inset : UbuntuShape.Flat; \n\
8788 } \n\
8889 readonly property real fixedArtShapeSizeAspect: (root.fixedArtShapeSize.height > 0 && root.fixedArtShapeSize.width > 0) ? root.fixedArtShapeSize.width / root.fixedArtShapeSize.height : -1; \n\
8990 readonly property real aspect: fixedArtShapeSizeAspect > 0 ? fixedArtShapeSizeAspect : components !== undefined ? components["art"]["aspect-ratio"] : 1; \n\
90− Component.onCompleted: { updateWidthHeightBindings(); if (artShapeBorderSource !== undefined) borderSource = artShapeBorderSource; } \n\
91+ Component.onCompleted: { updateWidthHeightBindings(); } \n\
9192 Connections { target: root; onFixedArtShapeSizeChanged: updateWidthHeightBindings(); } \n\
9293 function updateWidthHeightBindings() { \n\
9394 if (root.fixedArtShapeSize.height > 0 && root.fixedArtShapeSize.width > 0) { \n\
@@ -112,44 +113,18 @@ var kArtShapeHolderCode = 'Item { \n\
112113
113114var kOverlayLoaderCode = 'Loader { \n\
114115 id: overlayLoader; \n\
115− anchors { \n\
116− left: artShapeHolder.left; \n\
117− right: artShapeHolder.right; \n\
118− bottom: artShapeHolder.bottom; \n\
119− } \n\
116+ readonly property real overlayHeight: (fixedHeaderHeight > 0 ? fixedHeaderHeight : headerHeight) + units.gu(2); \n\
117+ anchors.fill: artShapeHolder; \n\
120118 active: artShapeLoader.active && artShapeLoader.item && artShapeLoader.item.image.status === Image.Ready || false; \n\
121119 asynchronous: root.asynchronous; \n\
122120 visible: showHeader && status == Loader.Ready; \n\
123− sourceComponent: ShaderEffect { \n\
121+ sourceComponent: UbuntuShapeOverlay { \n\
124122 id: overlay; \n\
125− height: (fixedHeaderHeight > 0 ? fixedHeaderHeight : headerHeight) + units.gu(2); \n\
126123 property real luminance: Style.luminance(overlayColor); \n\
127− property color overlayColor: cardData && cardData["overlayColor"] || "#99000000"; \n\
128− property var source: ShaderEffectSource { \n\
129− id: shaderSource; \n\
130− sourceItem: artShapeLoader.item; \n\
131− onVisibleChanged: if (visible) scheduleUpdate(); \n\
132− live: false; \n\
133− sourceRect: Qt.rect(0, artShapeLoader.height - overlay.height, artShapeLoader.width, overlay.height); \n\
134− } \n\
135− vertexShader: " \n\
136− uniform highp mat4 qt_Matrix; \n\
137− attribute highp vec4 qt_Vertex; \n\
138− attribute highp vec2 qt_MultiTexCoord0; \n\
139− varying highp vec2 coord; \n\
140− void main() { \n\
141− coord = qt_MultiTexCoord0; \n\
142− gl_Position = qt_Matrix * qt_Vertex; \n\
143− }"; \n\
144− fragmentShader: " \n\
145− varying highp vec2 coord; \n\
146− uniform sampler2D source; \n\
147− uniform lowp float qt_Opacity; \n\
148− uniform highp vec4 overlayColor; \n\
149− void main() { \n\
150− lowp vec4 tex = texture2D(source, coord); \n\
151− gl_FragColor = vec4(overlayColor.r, overlayColor.g, overlayColor.b, 1) * qt_Opacity * overlayColor.a * tex.a; \n\
152− }"; \n\
124+ aspect: UbuntuShape.Flat; \n\
125+ radius: "medium"; \n\
126+ overlayColor: cardData && cardData["overlayColor"] || "#99000000"; \n\
127+ overlayRect: Qt.rect(0, 1 - overlayLoader.overlayHeight / height, 1, 1); \n\
153128 } \n\
154129 }\n';
155130
@@ -325,7 +300,7 @@ function cardString(template, components) {
325300 id: root; \n\
326301 property var components; \n\
327302 property var cardData; \n\
328− property var artShapeBorderSource: undefined; \n\
303+ property string artShapeStyle: "inset"; \n\
329304 property real fontScale: 1.0; \n\
330305 property var scopeStyle: null; \n\
331306 property int titleAlignment: Text.AlignLeft; \n\
@@ -368,7 +343,6 @@ function cardString(template, components) {
368343 }
369344
370345 if (hasArt) {
371− code += 'onArtShapeBorderSourceChanged: { if (artShapeBorderSource !== undefined && artShapeLoader.item) artShapeLoader.item.borderSource = artShapeBorderSource; } \n';
372346 code += 'readonly property size artShapeSize: artShapeLoader.item ? Qt.size(artShapeLoader.item.width, artShapeLoader.item.height) : Qt.size(-1, -1);\n';
373347
374348 var widthCode, heightCode;
@@ -480,20 +454,20 @@ function cardString(template, components) {
480454 }
481455 }
482456
483− var summaryColorWithBackground = 'backgroundLoader.active && backgroundLoader.item && root.scopeStyle ? root.scopeStyle.getTextColor(backgroundLoader.item.luminance) : (backgroundLoader.item && backgroundLoader.item.luminance > 0.7 ? Theme.palette.normal.baseText : "white")';
457+ var summaryColorWithBackground = 'backgroundLoader.active && backgroundLoader.item && root.scopeStyle ? root.scopeStyle.getTextColor(backgroundLoader.item.luminance) : (backgroundLoader.item && backgroundLoader.item.luminance > 0.7 ? theme.palette.normal.baseText : "white")';
484458
485459 var hasTitleContainer = hasTitle && (hasEmblem || (hasMascot && (hasSubtitle || hasAttributes)));
486460 var titleSubtitleCode = '';
487461 if (hasTitle) {
488462 var titleColor;
489463 if (headerAsOverlay) {
490− titleColor = 'root.scopeStyle && overlayLoader.item ? root.scopeStyle.getTextColor(overlayLoader.item.luminance) : (overlayLoader.item && overlayLoader.item.luminance > 0.7 ? Theme.palette.normal.baseText : "white")';
464+ titleColor = 'root.scopeStyle && overlayLoader.item ? root.scopeStyle.getTextColor(overlayLoader.item.luminance) : (overlayLoader.item && overlayLoader.item.luminance > 0.7 ? theme.palette.normal.baseText : "white")';
491465 } else if (hasSummary) {
492466 titleColor = 'summary.color';
493467 } else if (hasBackground) {
494468 titleColor = summaryColorWithBackground;
495469 } else {
496− titleColor = 'root.scopeStyle ? root.scopeStyle.foreground : Theme.palette.normal.baseText';
470+ titleColor = 'root.scopeStyle ? root.scopeStyle.foreground : theme.palette.normal.baseText';
497471 }
498472
499473 var titleAnchors;
@@ -555,7 +529,7 @@ function cardString(template, components) {
555529 titleAnchors += 'left: parent.left; \n\
556530 leftMargin: units.gu(1); \n\
557531 top: overlayLoader.top; \n\
558− topMargin: units.gu(1);\n';
532+ topMargin: units.gu(1) + overlayLoader.height - overlayLoader.overlayHeight; \n';
559533 } else {
560534 // Using anchors to the mascot/parent
561535 titleAnchors = titleRightAnchor;
@@ -649,7 +623,7 @@ function cardString(template, components) {
649623 if (hasBackground) {
650624 summaryColor = summaryColorWithBackground;
651625 } else {
652− summaryColor = 'root.scopeStyle ? root.scopeStyle.foreground : Theme.palette.normal.baseText';
626+ summaryColor = 'root.scopeStyle ? root.scopeStyle.foreground : theme.palette.normal.baseText';
653627 }
654628
655629 var summaryTopMargin = (hasMascot || hasSubtitle || hasAttributes ? 'anchors.margins' : '0');
@@ -698,7 +672,7 @@ function cardString(template, components) {
698672
699673function createCardComponent(parent, template, components) {
700674 var imports = 'import QtQuick 2.2; \n\
701− import Ubuntu.Components 1.1; \n\
675+ import Ubuntu.Components 1.3; \n\
702676 import Ubuntu.Settings.Components 0.1; \n\
703677 import Dash 0.1;\n\
704678 import Utils 0.1;\n';
plugins/Dash/ScopeStyle.qml+1−1
@@ -16,7 +16,7 @@
1616
1717import QtQuick 2.2
1818import Utils 0.1
19−import Ubuntu.Components 1.1
19+import Ubuntu.Components 1.3
2020
2121/*! \brief Helper for processing scope customization options.
2222
plugins/Powerd/Powerd.h+2
@@ -38,6 +38,8 @@ public:
3838 PowerKey = 2, // Display changed state due to user pressing power key
3939 Proximity = 3, // Display changed state due to proximity events
4040 Notification = 4, // Display changed state due to user notification
41+ SnapDecision = 5, // Display changed state due to snap decision prompt
42+ CallDone = 6, // Display changed state due to voice call end
4143 };
4244
4345 enum Status {
po/ast.po+26−26
@@ -8,15 +8,15 @@ msgstr ""
88"Project-Id-Version: unity8\n"
99"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
1010"POT-Creation-Date: 2015-09-16 00:49+0200\n"
11−"PO-Revision-Date: 2015-06-11 23:39+0000\n"
12−"Last-Translator: enolp <enolp@softastur.org>\n"
11+"PO-Revision-Date: 2015-10-06 12:07+0000\n"
12+"Last-Translator: Xuacu Saturio <xuacusk8@gmail.com>\n"
1313"Language-Team: Asturian <ast@li.org>\n"
1414"MIME-Version: 1.0\n"
1515"Content-Type: text/plain; charset=UTF-8\n"
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=2; plural=n != 1;\n"
18−"X-Launchpad-Export-Date: 2015-09-30 05:42+0000\n"
19−"X-Generator: Launchpad (build 17768)\n"
18+"X-Launchpad-Export-Date: 2015-10-07 06:06+0000\n"
19+"X-Generator: Launchpad (build 17802)\n"
2020
2121#: plugins/IntegratedLightDM/Greeter.cpp:112
2222msgid "Password: "
@@ -29,7 +29,7 @@ msgstr "Anclar atayu"
2929
3030#: plugins/Unity/Launcher/launcheritem.cpp:52
3131msgid "Quit"
32−msgstr ""
32+msgstr "Colar"
3333
3434#: plugins/Unity/Launcher/launcheritem.cpp:106
3535msgid "Unpin shortcut"
@@ -41,14 +41,14 @@ msgstr "Desanclar atayu"
4141#. en_US example: "Yesterday\u2003%l:%M %p" --> "Yesterday 1:00 PM"
4242#: plugins/Utils/relativetimeformatter.cpp:157
4343msgid "Yesterday %l:%M %p"
44−msgstr ""
44+msgstr "Ayeri %l:%M %p"
4545
4646#. Translators, please edit/rearrange these strftime(3) tokens to suit your locale!
4747#. This format string is used for showing, on a 12-hour clock, times that happened today.
4848#. en_US example: "%l:%M %p" --> "1:00 PM"
4949#: plugins/Utils/relativetimeformatter.cpp:164
5050msgid "%l:%M %p"
51−msgstr ""
51+msgstr "%l:%M %p"
5252
5353#. Translators, please edit/rearrange these strftime(3) tokens to suit your locale!
5454#. This format string is used for showing, on a 12-hour clock, events/appointments that happen tomorrow.
@@ -56,7 +56,7 @@ msgstr ""
5656#. en_US example: "Tomorrow\u2003%l:%M %p" --> "Tomorrow 1:00 PM"
5757#: plugins/Utils/relativetimeformatter.cpp:172
5858msgid "Tomorrow %l:%M %p"
59−msgstr ""
59+msgstr "Mañana %l:%M %p"
6060
6161#. Translators, please edit/rearrange these strftime(3) tokens to suit your locale!
6262#. This format string is used for showing, on a 12-hour clock, times that happened in the last week.
@@ -64,7 +64,7 @@ msgstr ""
6464#. en_US example: "%a\u2003%l:%M %p" --> "Fri 1:00 PM"
6565#: plugins/Utils/relativetimeformatter.cpp:181
6666msgid "%a %l:%M %p"
67−msgstr ""
67+msgstr "%a %l:%M %p"
6868
6969#. Translators, please edit/rearrange these strftime(3) tokens to suit your locale!
7070#. This format string is used for showing, on a 12-hour clock, times that happened before a week from now.
@@ -73,7 +73,7 @@ msgstr ""
7373#. en_GB example: "%a %b %d\u2003%l:%M %p" --> "Fri 31 Oct 1:00 PM"
7474#: plugins/Utils/relativetimeformatter.cpp:190
7575msgid "%a %d %b %l:%M %p"
76−msgstr ""
76+msgstr "%a %b %d %l:%M %p"
7777
7878#. Translators, please edit/rearrange these strftime(3) tokens to suit your locale!
7979#. This format string is used for showing, on a 24-hour clock, times that happen yesterday.
@@ -81,14 +81,14 @@ msgstr ""
8181#. en_US example: "Yesterday\u2003%l:%M %p" --> "Yesterday 13:00"
8282#: plugins/Utils/relativetimeformatter.cpp:201
8383msgid "Yesterday %H:%M"
84−msgstr ""
84+msgstr "Ayeri %H:%M"
8585
8686#. Translators, please edit/rearrange these strftime(3) tokens to suit your locale!
8787#. This format string is used for showing, on a 24-hour clock, times that happened today.
8888#. en_US example: "%H:%M" --> "13:00"
8989#: plugins/Utils/relativetimeformatter.cpp:208
9090msgid "%H:%M"
91−msgstr ""
91+msgstr "%H:%M"
9292
9393#. Translators, please edit/rearrange these strftime(3) tokens to suit your locale!
9494#. This format string is used for showing, on a 24-hour clock, events/appointments that happen tomorrow.
@@ -96,7 +96,7 @@ msgstr ""
9696#. en_US example: "Tomorrow\u2003%l:%M %p" --> "Tomorrow 13:00"
9797#: plugins/Utils/relativetimeformatter.cpp:216
9898msgid "Tomorrow %H:%M"
99−msgstr ""
99+msgstr "Mañana %H:%M"
100100
101101#. Translators, please edit/rearrange these strftime(3) tokens to suit your locale!
102102#. This format string is used for showing, on a 24-hour clock, times that happened in the last week.
@@ -104,7 +104,7 @@ msgstr ""
104104#. en_US example: "%a\u2003%H:%M" --> "Fri 13:00"
105105#: plugins/Utils/relativetimeformatter.cpp:225
106106msgid "%a %H:%M"
107−msgstr ""
107+msgstr "%a %H:%M"
108108
109109#. Translators, please edit/rearrange these strftime(3) tokens to suit your locale!
110110#. This format string is used for showing, on a 24-hour clock, times that happened before a week from now.
@@ -113,7 +113,7 @@ msgstr ""
113113#. en_GB example: "%a %b %d\u2003%H:%M" --> "Fri 31 Oct 13:00"
114114#: plugins/Utils/relativetimeformatter.cpp:234
115115msgid "%a %d %b %H:%M"
116−msgstr ""
116+msgstr "%a %b %d %H:%M"
117117
118118#: qml/Components/DelayedLockscreen.qml:49
119119msgid "Device Locked"
@@ -198,7 +198,7 @@ msgstr "Sí"
198198#: qml/Components/Dialogs.qml:203
199199msgctxt "Title: Power off/Restart dialog"
200200msgid "Power"
201−msgstr ""
201+msgstr "Apagáu"
202202
203203#: qml/Components/Dialogs.qml:204
204204msgid ""
@@ -378,7 +378,7 @@ msgstr "Sentímoslo, contraseña incorreuta"
378378#: qml/Greeter/NarrowView.qml:121
379379msgctxt "passphrase"
380380msgid "Please re-enter"
381−msgstr ""
381+msgstr "Vuelve a escribila"
382382
383383#: qml/Greeter/NarrowView.qml:122
384384msgid "Sorry, incorrect passcode"
@@ -404,32 +404,32 @@ msgstr "Nun ta reproduciéndose nada"
404404#, qt-format
405405msgid "%1 hour"
406406msgid_plural "%1 hours"
407−msgstr[0] ""
408−msgstr[1] ""
407+msgstr[0] "%1 hora"
408+msgstr[1] "%1 hores"
409409
410410#: qml/Panel/Indicators/MenuItemFactory.qml:851
411411#, qt-format
412412msgid "%1 minute"
413413msgid_plural "%1 minutes"
414−msgstr[0] ""
415−msgstr[1] ""
414+msgstr[0] "%1 minutu"
415+msgstr[1] "%1 minutos"
416416
417417#: qml/Panel/Indicators/MenuItemFactory.qml:856
418418#, qt-format
419419msgid "%1 second"
420420msgid_plural "%1 seconds"
421−msgstr[0] ""
422−msgstr[1] ""
421+msgstr[0] "%1 segundu"
422+msgstr[1] "%1 segundos"
423423
424424#: qml/Panel/Indicators/MenuItemFactory.qml:859
425425msgid "0 seconds"
426−msgstr ""
426+msgstr "0 segundos"
427427
428428#. Translators: String like "1 hour, 2 minutes, 3 seconds remaining"
429429#: qml/Panel/Indicators/MenuItemFactory.qml:861
430430#, qt-format
431431msgid "%1 remaining"
432−msgstr ""
432+msgstr "Queden %1"
433433
434434#: qml/Panel/Indicators/MenuItemFactory.qml:867
435435msgid "In queue…"
@@ -462,7 +462,7 @@ msgstr "Responder"
462462
463463#: qml/Panel/Indicators/MessageMenuItemFactory.qml:204
464464msgid "Call back"
465−msgstr ""
465+msgstr "Devolver llamada"
466466
467467#: qml/Panel/Indicators/ModemInfoItem.qml:105
468468msgid "Unlock SIM"
po/br.po+5−5
@@ -8,15 +8,15 @@ msgstr ""
88"Project-Id-Version: unity8\n"
99"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
1010"POT-Creation-Date: 2015-09-16 00:49+0200\n"
11−"PO-Revision-Date: 2015-08-25 14:12+0000\n"
11+"PO-Revision-Date: 2015-10-05 06:47+0000\n"
1212"Last-Translator: Fohanno Thierry <thierry.fohanno@ofis-bzh.org>\n"
1313"Language-Team: Breton <br@li.org>\n"
1414"MIME-Version: 1.0\n"
1515"Content-Type: text/plain; charset=UTF-8\n"
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=2; plural=n > 1;\n"
18−"X-Launchpad-Export-Date: 2015-09-30 05:43+0000\n"
19−"X-Generator: Launchpad (build 17768)\n"
18+"X-Launchpad-Export-Date: 2015-10-06 05:47+0000\n"
19+"X-Generator: Launchpad (build 17796)\n"
2020
2121#: plugins/IntegratedLightDM/Greeter.cpp:112
2222msgid "Password: "
@@ -29,7 +29,7 @@ msgstr "Spilhennañ ar verradenn"
2929
3030#: plugins/Unity/Launcher/launcheritem.cpp:52
3131msgid "Quit"
32−msgstr ""
32+msgstr "Mont kuit"
3333
3434#: plugins/Unity/Launcher/launcheritem.cpp:106
3535msgid "Unpin shortcut"
@@ -465,7 +465,7 @@ msgstr "Respont"
465465
466466#: qml/Panel/Indicators/MessageMenuItemFactory.qml:204
467467msgid "Call back"
468−msgstr ""
468+msgstr "Gervel en-dro"
469469
470470#: qml/Panel/Indicators/ModemInfoItem.qml:105
471471msgid "Unlock SIM"
po/ja.po+4−4
@@ -8,15 +8,15 @@ msgstr ""
88"Project-Id-Version: unity\n"
99"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
1010"POT-Creation-Date: 2015-09-16 00:49+0200\n"
11−"PO-Revision-Date: 2014-11-20 05:08+0000\n"
11+"PO-Revision-Date: 2015-10-05 10:05+0000\n"
1212"Last-Translator: Kentaro Kazuhama <Unknown>\n"
1313"Language-Team: Japanese <ja@li.org>\n"
1414"MIME-Version: 1.0\n"
1515"Content-Type: text/plain; charset=UTF-8\n"
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=1; plural=0;\n"
18−"X-Launchpad-Export-Date: 2015-09-30 05:43+0000\n"
19−"X-Generator: Launchpad (build 17768)\n"
18+"X-Launchpad-Export-Date: 2015-10-06 05:47+0000\n"
19+"X-Generator: Launchpad (build 17796)\n"
2020
2121#: plugins/IntegratedLightDM/Greeter.cpp:112
2222msgid "Password: "
@@ -390,7 +390,7 @@ msgstr "グループ通話"
390390
391391#: qml/Panel/Indicators/MenuItemFactory.qml:718
392392msgid "Nothing is playing"
393−msgstr ""
393+msgstr "再生するものがありません"
394394
395395#: qml/Panel/Indicators/MenuItemFactory.qml:847
396396#, qt-format
po/ug.po+4−4
@@ -8,15 +8,15 @@ msgstr ""
88"Project-Id-Version: unity\n"
99"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
1010"POT-Creation-Date: 2015-09-16 00:49+0200\n"
11−"PO-Revision-Date: 2015-09-24 05:59+0000\n"
11+"PO-Revision-Date: 2015-10-02 03:54+0000\n"
1212"Last-Translator: eltikin <eltikinuyghur@hotmail.com>\n"
1313"Language-Team: Uyghur Computer Science Association <UKIJ@yahoogroups.com>\n"
1414"MIME-Version: 1.0\n"
1515"Content-Type: text/plain; charset=UTF-8\n"
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=1; plural=0;\n"
18−"X-Launchpad-Export-Date: 2015-09-30 05:43+0000\n"
19−"X-Generator: Launchpad (build 17768)\n"
18+"X-Launchpad-Export-Date: 2015-10-03 05:40+0000\n"
19+"X-Generator: Launchpad (build 17783)\n"
2020
2121#: plugins/IntegratedLightDM/Greeter.cpp:112
2222msgid "Password: "
@@ -96,7 +96,7 @@ msgstr ""
9696#. en_US example: "Tomorrow\u2003%l:%M %p" --> "Tomorrow 13:00"
9797#: plugins/Utils/relativetimeformatter.cpp:216
9898msgid "Tomorrow %H:%M"
99−msgstr ""
99+msgstr "ئەتە %H:%M"
100100
101101#. Translators, please edit/rearrange these strftime(3) tokens to suit your locale!
102102#. This format string is used for showing, on a 24-hour clock, times that happened in the last week.
qml/Components/Background.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.0
18−import Ubuntu.Components 1.1
18+import Ubuntu.Components 1.3
1919import Utils 0.1 as Utils
2020
2121Loader {
qml/Components/BaseCarouselDelegate.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.0
18−import Ubuntu.Components 0.1
18+import Ubuntu.Components 1.3
1919
2020/*!
2121 \brief Base delegate for use with the Carousel component
qml/Components/Carousel.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.3
18−import Ubuntu.Components 0.1
18+import Ubuntu.Components 1.3
1919import "carousel.js" as CarouselJS
2020
2121/*! The Carousel component presents the items of a model in a carousel view. It's similar to a
qml/Components/DelayedLockscreen.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.0
18−import Ubuntu.Components 0.1
18+import Ubuntu.Components 1.3
1919import "../Components"
2020
2121Item {
qml/Components/Dialogs.qml+1−1
@@ -18,8 +18,8 @@ import QtQuick 2.0
1818
1919import Unity.Application 0.1
2020import Unity.Session 0.1
21−import Ubuntu.Components 1.1
2221import GlobalShortcut 1.0
22+import Ubuntu.Components 1.3
2323import "../Greeter"
2424
2525Item {
qml/Components/DragHandle.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.0
18−import Ubuntu.Components 0.1
18+import Ubuntu.Components 1.3
1919import Ubuntu.Gestures 0.1
2020
2121/*
qml/Components/DraggingArea.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.0
18−import Ubuntu.Components 0.1
18+import Ubuntu.Components 1.3
1919
2020MouseArea {
2121 id: draggingArea
qml/Components/EdgeDragEvaluator.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.0
18−import Ubuntu.Components 0.1
18+import Ubuntu.Components 1.3
1919import Ubuntu.Gestures 0.1
2020
2121/*
qml/Components/Header.qml+2−2
@@ -14,8 +14,8 @@
1414 * along with this program. If not, see <http://www.gnu.org/licenses/>.
1515 */
1616
17−import Ubuntu.Components 1.1
18−import Ubuntu.Components.Themes.Ambiance 1.1
17+import Ubuntu.Components 1.3
18+import Ubuntu.Components.Themes.Ambiance 1.3
1919
2020PageHeadStyle {
2121 id: root
qml/Components/InputMethod.qml+1−1
@@ -16,7 +16,7 @@
1616
1717import QtQuick 2.0
1818import Unity.Application 0.1
19−import Ubuntu.Components 0.1
19+import Ubuntu.Components 1.3
2020import Ubuntu.Gestures 0.1
2121
2222Item {
qml/Components/LazyImage.qml+11−11
@@ -18,7 +18,7 @@
1818 */
1919
2020import QtQuick 2.0
21−import Ubuntu.Components 0.1
21+import Ubuntu.Components 1.3
2222
2323Item {
2424 id: root
@@ -31,14 +31,12 @@ Item {
3131 property real initialHeight: scaleTo == "height" || scaleTo == "fit" ? height : units.gu(10)
3232
3333 property alias sourceSize: image.sourceSize
34− property alias fillMode: image.fillMode
3534 property alias asynchronous: image.asynchronous
3635 property alias cache: image.cache
37− property alias horizontalAlignment: image.horizontalAlignment
38− property alias verticalAlignment: image.verticalAlignment
3936 property alias sourceImage: image
37+
4038 property bool useUbuntuShape: true
41− property string borderSource: "radius_idle.sci"
39+ property bool pressed: false
4240
4341 state: "default"
4442
@@ -54,7 +52,7 @@ Item {
5452 UbuntuShape {
5553 id: placeholder
5654 objectName: "placeholder"
57− color: "#22FFFFFF"
55+ backgroundColor: "#22FFFFFF"
5856 anchors.fill: shape
5957 visible: opacity != 0
6058
@@ -88,10 +86,14 @@ Item {
8886 active: useUbuntuShape
8987 opacity: 0
9088 visible: opacity != 0
91− sourceComponent: UbuntuShape {}
89+ sourceComponent: UbuntuShapeOverlay {
90+ property bool pressed: false
91+ overlayColor: Qt.rgba(0, 0, 0, pressed ? 0.1 : 0)
92+ overlayRect: Qt.rect(0.0, 0.0, 1.0, 1.0)
93+ }
9294 onLoaded: {
93− item.image = image;
94− item.borderSource = Qt.binding(function() { return root.borderSource })
95+ item.source = image;
96+ item.pressed = Qt.binding(function() { return shape.pressed; });
9597 }
9698
9799 Image {
@@ -106,8 +108,6 @@ Item {
106108 fillMode: Image.PreserveAspectFit
107109 asynchronous: true
108110 cache: false
109− horizontalAlignment: Image.AlignHCenter
110− verticalAlignment: Image.AlignVCenter
111111 sourceSize.width: root.scaleTo == "width" ? root.width
112112 : root.scaleTo == "fit" && root.width <= root.height ? root.width
113113 : 0
qml/Components/ListItems/Header.qml+1−1
@@ -16,7 +16,7 @@
1616
1717import QtQuick 2.0
1818import QtQuick.Layouts 1.1
19−import Ubuntu.Components 0.1
19+import Ubuntu.Components 1.3
2020
2121Item {
2222 property alias text: label.text
qml/Components/Lockscreen.qml+2−2
@@ -15,8 +15,8 @@
1515 */
1616
1717import QtQuick 2.0
18−import Ubuntu.Components 1.0
19−import Ubuntu.Components.Popups 1.0
18+import Ubuntu.Components 1.3
19+import Ubuntu.Components.Popups 1.3
2020import Ubuntu.Telephony 0.1 as Telephony
2121
2222Showable {
qml/Components/PassphraseLockscreen.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.0
18−import Ubuntu.Components 0.1
18+import Ubuntu.Components 1.3
1919import "../Components"
2020
2121Item {
qml/Components/PinLockscreen.qml+2−2
@@ -15,8 +15,8 @@
1515 */
1616
1717import QtQuick 2.0
18−import Ubuntu.Components 0.1
19−import Ubuntu.Components.ListItems 0.1
18+import Ubuntu.Components 1.3
19+import Ubuntu.Components.ListItems 1.3
2020import "../Components"
2121
2222Item {
qml/Components/PinPadButton.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.0
18−import Ubuntu.Components 1.1
18+import Ubuntu.Components 1.3
1919
2020AbstractButton {
2121 id: root
qml/Components/Rating.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.0
18−import Ubuntu.Components 0.1
18+import Ubuntu.Components 1.3
1919
2020/*! Rating widget bar. */
2121
qml/Components/RatingStyle.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.0
18−import Ubuntu.Components 0.1
18+import Ubuntu.Components 1.3
1919
2020Row {
2121 anchors.fill: parent
qml/Components/ResponsiveGridView.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.3
18−import Ubuntu.Components 0.1
18+import Ubuntu.Components 1.3
1919
2020/*
2121 Essentially a GridView where you can specify the maximum number of columns it can have.
qml/Components/ResponsiveVerticalJournal.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.0
18−import Ubuntu.Components 0.1
18+import Ubuntu.Components 1.3
1919import "../Components"
2020import Dash 0.1
2121
qml/Components/ScrollCalculator.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.2
18−import Ubuntu.Components 1.1
18+import Ubuntu.Components 1.3
1919
2020Item {
2121 id: scrollArea
qml/Components/ShellDialog.qml+2−2
@@ -16,8 +16,8 @@
1616
1717import QtQuick 2.0
1818
19−import Ubuntu.Components 1.1
20−import Ubuntu.Components.Popups 0.1
19+import Ubuntu.Components 1.3
20+import Ubuntu.Components.Popups 1.3
2121
2222/*
2323 A Dialog configured for use as a proper in-scene Dialog
qml/Components/UbuntuShapeForItem.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.0
18−import Ubuntu.Components 0.1
18+import Ubuntu.Components 1.3
1919
2020/* FIXME: This component is duplicating the UbuntuShape from the SDK, but shapes more
2121 * general (Item-based) components. This ability should be incorporated into the SDK's
qml/Components/UnityInputInfo/UnityInputInfo.qml+1−1
@@ -19,7 +19,7 @@ pragma Singleton
1919import QtQuick 2.3
2020import Unity.InputInfo 0.1
2121// Workaround https://bugs.launchpad.net/ubuntu/+source/unity8/+bug/1473471
22−import Ubuntu.Components 1.2
22+import Ubuntu.Components 1.3
2323
2424Item {
2525 id: root
qml/Components/WindowControlButtons.qml+1−1
@@ -17,7 +17,7 @@
1717 */
1818
1919import QtQuick 2.3
20−import Ubuntu.Components 1.1
20+import Ubuntu.Components 1.3
2121
2222Row {
2323 id: root
qml/Components/ZoomableImage.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.0
18−import Ubuntu.Components 0.1
18+import Ubuntu.Components 1.3
1919import "../Components"
2020
2121/*! \brief Zoomable for image.
qml/Dash/CardCarousel.qml+2−2
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.0
18−import Ubuntu.Components 0.1
18+import Ubuntu.Components 1.3
1919import "../Components"
2020
2121DashRenderer {
@@ -68,7 +68,7 @@ DashRenderer {
6868 item.fontScale = Qt.binding(function() { return carousel.fontScale; });
6969 item.showHeader = Qt.binding(function() { return loader.explicitlyScaled; });
7070 item.titleAlignment = Qt.binding(function() { return cardTool.titleAlignment; });
71− item.artShapeBorderSource = "none";
71+ item.artShapeStyle = "flat";
7272 item.scopeStyle = cardCarousel.scopeStyle;
7373 }
7474
qml/Dash/CardHorizontalList.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.3
18−import Ubuntu.Components 1.1
18+import Ubuntu.Components 1.3
1919import "../Components"
2020
2121DashRenderer {
qml/Dash/CardVerticalJournal.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.0
18−import Ubuntu.Components 0.1
18+import Ubuntu.Components 1.3
1919import "../Components"
2020
2121DashRenderer {
qml/Dash/Dash.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.2
18−import Ubuntu.Components 0.1
18+import Ubuntu.Components 1.3
1919import Ubuntu.Gestures 0.1
2020import Unity 0.2
2121import Utils 0.1
qml/Dash/DashApplication.qml+3−2
@@ -15,14 +15,15 @@
1515 */
1616
1717import QtQuick 2.2
18−import Ubuntu.Components 1.0
18+import Ubuntu.Components 1.3
1919import Ubuntu.Thumbnailer 0.1 // Register support for image://thumbnailer/ and image://albumart/
2020
2121MainView {
2222 implicitWidth: units.gu(40)
2323 implicitHeight: units.gu(68)
2424
25− useDeprecatedToolbar: false
25+ // Workaround bug #1475643
26+ headerColor: Qt.rgba(0, 0, 0, 0)
2627
2728 Dash {
2829 anchors.fill: parent
qml/Dash/DashCategoryBase.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.0
18−import Ubuntu.Components 0.1
18+import Ubuntu.Components 1.3
1919
2020Item {
2121 width: parent.width
qml/Dash/DashContent.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.0
18−import Ubuntu.Components 0.1
18+import Ubuntu.Components 1.3
1919import Unity 0.2
2020import Utils 0.1
2121import "../Components"
qml/Dash/DashContentTabBarStyle.qml+1−1
@@ -14,7 +14,7 @@
1414 * along with this program. If not, see <http://www.gnu.org/licenses/>.
1515 */
1616
17−import Ubuntu.Components.Themes.Ambiance 0.1
17+import Ubuntu.Components.Themes.Ambiance 1.3
1818
1919TabBarStyle {
2020 indicatorImageSource: "graphics/tabbarchevron.png"
qml/Dash/DashNavigation.qml+3−3
@@ -1,5 +1,5 @@
11/*
2− * Copyright (C) 2014 Canonical, Ltd.
2+ * Copyright (C) 2014,2015 Canonical, Ltd.
33 *
44 * This program is free software; you can redistribute it and/or modify
55 * it under the terms of the GNU General Public License as published by
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.2
18−import Ubuntu.Components 1.1
18+import Ubuntu.Components 1.3
1919import Dash 0.1
2020import "../Components"
2121
@@ -48,7 +48,7 @@ Item {
4848 id: d
4949 readonly property color foregroundColor: root.scopeStyle
5050 ? root.scopeStyle.getTextColor(backgroundItem.luminance)
51− : Theme.palette.normal.baseText
51+ : theme.palette.normal.baseText
5252 readonly property bool bothVisible: altNavigationButton.visible && navigationButton.visible
5353 readonly property real navigationWidth: root.width >= units.gu(60) ? units.gu(40) : root.width
5454 readonly property real buttonWidth: navigationWidth / (bothVisible ? 2 : 1)
qml/Dash/DashNavigationButton.qml+3−3
@@ -1,5 +1,5 @@
11/*
2− * Copyright (C) 2014 Canonical, Ltd.
2+ * Copyright (C) 2014,2015 Canonical, Ltd.
33 *
44 * This program is free software; you can redistribute it and/or modify
55 * it under the terms of the GNU General Public License as published by
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.2
18−import Ubuntu.Components 1.1
18+import Ubuntu.Components 1.3
1919
2020AbstractButton {
2121 id: root
@@ -24,7 +24,7 @@ AbstractButton {
2424 // Set by parent
2525 property var scope: null
2626 property var scopeStyle: null
27− property color foregroundColor: Theme.palette.normal.baseText
27+ property color foregroundColor: theme.palette.normal.baseText
2828 property bool isAltNavigation: false
2929 property bool showDivider: false
3030
qml/Dash/DashNavigationList.qml+4−4
@@ -1,5 +1,5 @@
11/*
2− * Copyright (C) 2014 Canonical, Ltd.
2+ * Copyright (C) 2014,2015 Canonical, Ltd.
33 *
44 * This program is free software; you can redistribute it and/or modify
55 * it under the terms of the GNU General Public License as published by
@@ -15,8 +15,8 @@
1515 */
1616
1717import QtQuick 2.2
18−import Ubuntu.Components 1.1
19−import Ubuntu.Components.ListItems 0.1 as ListItem
18+import Ubuntu.Components 1.3
19+import Ubuntu.Components.ListItems 1.3 as ListItem
2020import "../Components"
2121
2222Item {
@@ -24,7 +24,7 @@ Item {
2424 property var navigation: null
2525 property var currentNavigation: null
2626 property var scopeStyle: null
27− property color foregroundColor: Theme.palette.normal.baseText
27+ property color foregroundColor: theme.palette.normal.baseText
2828 signal enterNavigation(var newNavigationId, bool hasChildren)
2929 signal goBackToParentClicked()
3030 signal allNavigationClicked()
qml/Dash/PageHeader.qml → qml/Dash/DashPageHeader.qmlrenamed+11−15
@@ -1,5 +1,5 @@
11/*
2− * Copyright (C) 2013 Canonical, Ltd.
2+ * Copyright (C) 2013,2015 Canonical, Ltd.
33 *
44 * This program is free software; you can redistribute it and/or modify
55 * it under the terms of the GNU General Public License as published by
@@ -15,10 +15,10 @@
1515 */
1616
1717import QtQuick 2.2
18−import Ubuntu.Components 1.1
19−import Ubuntu.Components.Themes.Ambiance 1.1
20−import Ubuntu.Components.Popups 1.0
21−import Ubuntu.Components.ListItems 1.0
18+import Ubuntu.Components 1.3
19+import Ubuntu.Components.Themes.Ambiance 1.3
20+import Ubuntu.Components.Popups 1.3
21+import Ubuntu.Components.ListItems 1.3
2222import "../Components"
2323import "../Components/SearchHistoryModel"
2424
@@ -136,7 +136,7 @@ Item {
136136 objectName: "headerContainer"
137137 clip: contentY < height
138138 anchors { left: parent.left; top: parent.top; right: parent.right }
139− height: units.gu(7)
139+ height: header.contentHeight
140140 contentHeight: headersColumn.height
141141 interactive: false
142142 contentY: showSearch ? 0 : height
@@ -171,18 +171,15 @@ Item {
171171 PageHeadStyle {
172172 id: searchHeader
173173 anchors { left: parent.left; right: parent.right }
174− height: headerContainer.height
175− contentHeight: height
176174 opacity: headerContainer.clip || headerContainer.showSearch ? 1 : 0 // setting visible false cause column to relayout
177175 __separator_visible: false
178176 // Required to keep PageHeadStyle noise down as it expects the Page's properties around.
179177 property var styledItem: searchHeader
180− property string title
181178 property color dividerColor: "transparent" // Doesn't matter as we don't have PageHeadSections
182179 property color panelColor: background.topColor
183180 panelForegroundColor: config.foregroundColor
184− property var config: PageHeadConfiguration {
185− foregroundColor: root.scopeStyle ? root.scopeStyle.headerForeground : Theme.palette.normal.baseText
181+ config: PageHeadConfiguration {
182+ foregroundColor: root.scopeStyle ? root.scopeStyle.headerForeground : theme.palette.normal.baseText
186183 backAction: Action {
187184 iconName: "back"
188185 onTriggered: {
@@ -247,16 +244,15 @@ Item {
247244 objectName: "innerPageHeader"
248245 anchors { left: parent.left; right: parent.right }
249246 height: headerContainer.height
250− contentHeight: height
251247 opacity: headerContainer.clip || !headerContainer.showSearch ? 1 : 0 // setting visible false cause column to relayout
252248 __separator_visible: false
253249 property var styledItem: header
254− property string title: root.title
255250 property color dividerColor: "transparent" // Doesn't matter as we don't have PageHeadSections
256251 property color panelColor: background.topColor
257252 panelForegroundColor: config.foregroundColor
258− property var config: PageHeadConfiguration {
259− foregroundColor: root.scopeStyle ? root.scopeStyle.headerForeground : Theme.palette.normal.baseText
253+ config: PageHeadConfiguration {
254+ title: root.title
255+ foregroundColor: root.scopeStyle ? root.scopeStyle.headerForeground : theme.palette.normal.baseText
260256 backAction: Action {
261257 iconName: backIsClose ? "close" : "back"
262258 visible: root.showBackButton
qml/Dash/GenericScopeView.qml+5−5
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.0
18−import Ubuntu.Components 1.1
18+import Ubuntu.Components 1.3
1919import Utils 0.1
2020import Unity 0.2
2121import Dash 0.1
@@ -573,7 +573,7 @@ FocusScope {
573573 }
574574 fontSize: "small"
575575 font.weight: Font.Bold
576− color: scopeStyle ? scopeStyle.foreground : Theme.palette.normal.baseText
576+ color: scopeStyle ? scopeStyle.foreground : theme.palette.normal.baseText
577577 }
578578 }
579579
@@ -610,7 +610,7 @@ FocusScope {
610610 width: categoryView.width
611611 height: section != "" ? units.gu(5) : 0
612612 text: section
613− color: scopeStyle ? scopeStyle.foreground : Theme.palette.normal.baseText
613+ color: scopeStyle ? scopeStyle.foreground : theme.palette.normal.baseText
614614 iconName: delegate && delegate.headerLink ? "go-next" : ""
615615 onClicked: {
616616 if (delegate.headerLink) scopeView.scope.performQuery(delegate.headerLink);
@@ -624,7 +624,7 @@ FocusScope {
624624 sourceComponent: scopeView.showPageHeader ? pageHeaderComponent : undefined
625625 Component {
626626 id: pageHeaderComponent
627− PageHeader {
627+ DashPageHeader {
628628 objectName: "scopePageHeader"
629629 width: parent.width
630630 title: scopeView.scope ? scopeView.scope.name : ""
@@ -731,7 +731,7 @@ FocusScope {
731731 }
732732 fontSize: "small"
733733 font.weight: Font.Bold
734− color: scopeStyle ? scopeStyle.foreground : Theme.palette.normal.baseText
734+ color: scopeStyle ? scopeStyle.foreground : theme.palette.normal.baseText
735735 }
736736
737737 Connections {
qml/Dash/PreviewListView.qml+2−2
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.0
18−import Ubuntu.Components 0.1
18+import Ubuntu.Components 1.3
1919import Unity 0.2
2020import "../Components"
2121import "Previews" as Previews
@@ -43,7 +43,7 @@ Item {
4343
4444 signal backClicked()
4545
46− PageHeader {
46+ DashPageHeader {
4747 id: header
4848 objectName: "pageHeader"
4949 width: parent.width
qml/Dash/Previews/Preview.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.0
18−import Ubuntu.Components 0.1
18+import Ubuntu.Components 1.3
1919
2020/*! \brief This component constructs the Preview UI.
2121 *
qml/Dash/Previews/PreviewActionButton.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.0
18−import Ubuntu.Components 1.1
18+import Ubuntu.Components 1.3
1919
2020Button {
2121 signal triggeredAction(var actionData)
qml/Dash/Previews/PreviewActionCombo.qml+3−3
@@ -1,5 +1,5 @@
11/*
2− * Copyright (C) 2014 Canonical, Ltd.
2+ * Copyright (C) 2014,2015 Canonical, Ltd.
33 *
44 * This program is free software; you can redistribute it and/or modify
55 * it under the terms of the GNU General Public License as published by
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.0
18−import Ubuntu.Components 1.1
18+import Ubuntu.Components 1.3
1919
2020Item {
2121 id: root
@@ -33,7 +33,7 @@ Item {
3333
3434 objectName: "moreLessButton"
3535 text: !expanded ? i18n.tr("More...") : i18n.tr("Less...")
36− strokeColor: Theme.palette.normal.baseText
36+ strokeColor: theme.palette.normal.baseText
3737 onClicked: expanded = !expanded
3838 width: parent.width
3939 }
qml/Dash/Previews/PreviewActions.qml+3−3
@@ -1,5 +1,5 @@
11/*
2− * Copyright (C) 2014 Canonical, Ltd.
2+ * Copyright (C) 2014,2015 Canonical, Ltd.
33 *
44 * This program is free software; you can redistribute it and/or modify
55 * it under the terms of the GNU General Public License as published by
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.1
18−import Ubuntu.Components 1.1
18+import Ubuntu.Components 1.3
1919
2020/*! This preview widget shows either one button, two buttons or one button
2121 * and a combo button depending on the number of items in widgetData["actions"].
@@ -50,7 +50,7 @@ PreviewWidget {
5050 Binding {
5151 target: loader.item
5252 property: "strokeColor"
53− value: root.scopeStyle ? root.scopeStyle.foreground : Theme.palette.normal.baseText
53+ value: root.scopeStyle ? root.scopeStyle.foreground : theme.palette.normal.baseText
5454 }
5555 Connections {
5656 target: loader.item
qml/Dash/Previews/PreviewAudioPlayback.qml+6−6
@@ -1,5 +1,5 @@
11/*
2− * Copyright (C) 2014 Canonical, Ltd.
2+ * Copyright (C) 2014,2015 Canonical, Ltd.
33 *
44 * This program is free software; you can redistribute it and/or modify
55 * it under the terms of the GNU General Public License as published by
@@ -16,7 +16,7 @@
1616
1717import QtQuick 2.0
1818import QtMultimedia 5.0
19−import Ubuntu.Components 0.1
19+import Ubuntu.Components 1.3
2020
2121/*! \brief Preview widget for audio tracks.
2222
@@ -139,7 +139,7 @@ PreviewWidget {
139139 objectName: "trackTitleLabel"
140140 anchors { top: parent.top; left: parent.left; right: parent.right }
141141 opacity: 0.9
142− color: scopeStyle ? scopeStyle.foreground : Theme.palette.normal.baseText
142+ color: scopeStyle ? scopeStyle.foreground : theme.palette.normal.baseText
143143 fontSize: "small"
144144 horizontalAlignment: Text.AlignLeft
145145 text: modelData["title"]
@@ -152,7 +152,7 @@ PreviewWidget {
152152 anchors { top: trackTitleLabel.bottom; left: parent.left; right: parent.right }
153153 visible: text !== ""
154154 opacity: 0.9
155− color: scopeStyle ? scopeStyle.foreground : Theme.palette.normal.baseText
155+ color: scopeStyle ? scopeStyle.foreground : theme.palette.normal.baseText
156156 font.weight: Font.Light
157157 fontSize: "small"
158158 horizontalAlignment: Text.AlignLeft
@@ -175,7 +175,7 @@ PreviewWidget {
175175 }
176176 height: units.dp(2)
177177 visible: progressBarImage.visible
178− color: UbuntuColors.orange
178+ backgroundColor: UbuntuColors.orange
179179 }
180180
181181 Image {
@@ -193,7 +193,7 @@ PreviewWidget {
193193 anchors.verticalCenter: parent.verticalCenter
194194 width: parent.column3Width
195195 opacity: 0.9
196− color: scopeStyle ? scopeStyle.foreground : Theme.palette.normal.baseText
196+ color: scopeStyle ? scopeStyle.foreground : theme.palette.normal.baseText
197197 fontSize: "small"
198198 horizontalAlignment: Text.AlignRight
199199 text: audio.lengthToString(modelData["length"])
qml/Dash/Previews/PreviewComment.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.0
18−import Ubuntu.Components 1.2
18+import Ubuntu.Components 1.3
1919
2020/*! \brief Preview widget for comments.
2121
qml/Dash/Previews/PreviewCommentInput.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.0
18−import Ubuntu.Components 1.1
18+import Ubuntu.Components 1.3
1919import "../../Components"
2020
2121/*! \brief Preview widget for commenting.
qml/Dash/Previews/PreviewExpandable.qml+4−4
@@ -1,5 +1,5 @@
11/*
2− * Copyright (C) 2014 Canonical, Ltd.
2+ * Copyright (C) 2014,2015 Canonical, Ltd.
33 *
44 * This program is free software; you can redistribute it and/or modify
55 * it under the terms of the GNU General Public License as published by
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.3
18−import Ubuntu.Components 1.1
18+import Ubuntu.Components 1.3
1919import "../../Components"
2020
2121/*! \brief Preview widget for expandable widgets.
@@ -41,7 +41,7 @@ PreviewWidget {
4141 right: expandButton.left
4242 }
4343 fontSize: "large"
44− color: root.scopeStyle ? root.scopeStyle.foreground : Theme.palette.normal.baseText
44+ color: root.scopeStyle ? root.scopeStyle.foreground : theme.palette.normal.baseText
4545 visible: text !== ""
4646 opacity: .8
4747 text: widgetData["title"] || ""
@@ -62,7 +62,7 @@ PreviewWidget {
6262 width: units.gu(3)
6363 height: units.gu(3)
6464 name: root.expanded ? "view-collapse" : "view-expand"
65− color: root.scopeStyle ? root.scopeStyle.foreground : Theme.palette.normal.baseText
65+ color: root.scopeStyle ? root.scopeStyle.foreground : theme.palette.normal.baseText
6666 }
6767 }
6868
qml/Dash/Previews/PreviewHeader.qml+9−9
@@ -1,5 +1,5 @@
11/*
2− * Copyright (C) 2014 Canonical, Ltd.
2+ * Copyright (C) 2014,2015 Canonical, Ltd.
33 *
44 * This program is free software; you can redistribute it and/or modify
55 * it under the terms of the GNU General Public License as published by
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.0
18−import Ubuntu.Components 0.1
18+import Ubuntu.Components 1.3
1919import Dash 0.1
2020import "../"
2121
@@ -40,10 +40,10 @@ PreviewWidget {
4040 readonly property string title: root.widgetData["title"] || ""
4141 readonly property string subtitle: root.widgetData["subtitle"] || ""
4242 readonly property var attributes: root.widgetData["attributes"] || null
43− readonly property color fontColor: root.scopeStyle ? root.scopeStyle.foreground : Theme.palette.normal.baseText
43+ readonly property color fontColor: root.scopeStyle ? root.scopeStyle.foreground : theme.palette.normal.baseText
4444
4545 // Rewire the source since we may have unwired it on onStatusChanged
46− onMascotChanged: if (mascotShapeLoader.item) mascotShapeLoader.item.image.source = mascot;
46+ onMascotChanged: if (mascotShapeLoader.item) mascotShapeLoader.item.source.source = mascot;
4747
4848 implicitHeight: row.height + row.margins * 2
4949 width: parent.width
@@ -77,16 +77,16 @@ PreviewWidget {
7777
7878 sourceComponent: UbuntuShape {
7979 objectName: "mascotShape"
80− visible: image.status === Image.Ready
81− image: Image {
80+ visible: source.status === Image.Ready
81+ sourceFillMode: UbuntuShape.PreserveAspectCrop
82+ sourceHorizontalAlignment: UbuntuShape.AlignHCenter
83+ sourceVerticalAlignment: UbuntuShape.AlignVCenter
84+ source: Image {
8285 source: headerRoot.mascot
8386 width: source ? mascotShapeLoader.width : 0
8487 height: mascotShapeLoader.height
8588
8689 sourceSize { width: mascotShapeLoader.maxSize; height: mascotShapeLoader.maxSize }
87− fillMode: Image.PreserveAspectCrop
88− horizontalAlignment: Image.AlignHCenter
89− verticalAlignment: Image.AlignVCenter
9090 onStatusChanged: if (status === Image.Error) source = headerRoot.fallback;
9191 }
9292 }
qml/Dash/Previews/PreviewIconActions.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.1
18−import Ubuntu.Components 1.1
18+import Ubuntu.Components 1.3
1919
2020/*! This preview widget icons+label for number of items in widgetData["actions"].
2121 * For each of the items we recognize the fields "label", "icon", "temporaryIcon" and "id".
qml/Dash/Previews/PreviewImageGallery.qml+2−2
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.0
18−import Ubuntu.Components 1.1
18+import Ubuntu.Components 1.3
1919import "../../Components"
2020
2121/*! This preview widget shows a horizontal list of images.
@@ -62,7 +62,7 @@ PreviewWidget {
6262 source: modelData ? modelData : ""
6363 scaleTo: "height"
6464 initialWidth: units.gu(13)
65− borderSource: mouseArea.pressed ? "radius_pressed.sci" : "radius_idle.sci"
65+ pressed: mouseArea.pressed
6666
6767 MouseArea {
6868 id: mouseArea
qml/Dash/Previews/PreviewOverlay.qml+3−3
@@ -1,5 +1,5 @@
11/*
2− * Copyright (C) 2014 Canonical, Ltd.
2+ * Copyright (C) 2014,2015 Canonical, Ltd.
33 *
44 * This program is free software; you can redistribute it and/or modify
55 * it under the terms of the GNU General Public License as published by
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.0
18−import Ubuntu.Components 1.1
18+import Ubuntu.Components 1.3
1919import "../../Components"
2020
2121Rectangle {
@@ -158,7 +158,7 @@ Rectangle {
158158 anchors.centerIn: parent
159159 width: units.gu(2.5)
160160 height: width
161− color: Theme.palette.normal.foregroundText
161+ color: theme.palette.normal.foregroundText
162162 name: "close"
163163 }
164164 }
qml/Dash/Previews/PreviewPayments.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.1
18−import Ubuntu.Components 0.1
18+import Ubuntu.Components 1.3
1919import Ubuntu.Payments 0.1
2020
2121/*! \brief Preview widget for a purchase button.
qml/Dash/Previews/PreviewProgress.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.1
18−import Ubuntu.Components 0.1
18+import Ubuntu.Components 1.3
1919import Ubuntu.DownloadDaemonListener 0.1
2020
2121/*! \brief Preview widget for a progress bar.
qml/Dash/Previews/PreviewRatingDisplay.qml+3−3
@@ -1,5 +1,5 @@
11/*
2− * Copyright (C) 2014 Canonical, Ltd.
2+ * Copyright (C) 2014,2015 Canonical, Ltd.
33 *
44 * This program is free software; you can redistribute it and/or modify
55 * it under the terms of the GNU General Public License as published by
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.0
18−import Ubuntu.Components 0.1
18+import Ubuntu.Components 1.3
1919import "../../Components"
2020
2121/*! \brief Preview widget for rating display.
@@ -60,7 +60,7 @@ PreviewWidget {
6060 urlIconEmpty: widgetData["rating-icon-empty"]
6161 urlIconFull: widgetData["rating-icon-full"]
6262 urlIconHalf: widgetData["rating-icon-half"]
63− labelColor: scopeStyle ? scopeStyle.foreground : Theme.palette.normal.baseText
63+ labelColor: scopeStyle ? scopeStyle.foreground : theme.palette.normal.baseText
6464 }
6565 }
6666 }
qml/Dash/Previews/PreviewRatingEdit.qml+2−2
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.4
18−import Ubuntu.Components 0.1
18+import Ubuntu.Components 1.3
1919import "../../Components"
2020
2121/*! \brief Preview widget for editable rating.
@@ -56,7 +56,7 @@ PreviewWidget {
5656 urlIconEmpty: widgetData["rating-icon-empty"]
5757 urlIconFull: widgetData["rating-icon-full"]
5858 urlIconHalf: widgetData["rating-icon-half"]
59− labelColor: scopeStyle ? scopeStyle.foreground : Theme.palette.normal.baseText
59+ labelColor: scopeStyle ? scopeStyle.foreground : theme.palette.normal.baseText
6060 }
6161
6262 PreviewRatingInput {
qml/Dash/Previews/PreviewRatingInput.qml+5−5
@@ -1,5 +1,5 @@
11/*
2− * Copyright (C) 2014 Canonical, Ltd.
2+ * Copyright (C) 2014,2015 Canonical, Ltd.
33 *
44 * This program is free software; you can redistribute it and/or modify
55 * it under the terms of the GNU General Public License as published by
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.0
18−import Ubuntu.Components 0.1
18+import Ubuntu.Components 1.3
1919import "../../Components"
2020
2121/*! \brief Preview widget for rating.
@@ -79,7 +79,7 @@ PreviewWidget {
7979 verticalCenter: parent.verticalCenter
8080 left: parent.left
8181 }
82− color: root.scopeStyle ? root.scopeStyle.foreground : Theme.palette.normal.baseText
82+ color: root.scopeStyle ? root.scopeStyle.foreground : theme.palette.normal.baseText
8383 opacity: .8
8484 text: widgetData["rating-label"] || i18n.tr("Rate this")
8585 }
@@ -124,7 +124,7 @@ PreviewWidget {
124124 left: parent.left
125125 right: parent.right
126126 }
127− color: root.scopeStyle ? root.scopeStyle.foreground : Theme.palette.normal.baseText
127+ color: root.scopeStyle ? root.scopeStyle.foreground : theme.palette.normal.baseText
128128 opacity: .8
129129 text: widgetData["review-label"] || i18n.tr("Add a review")
130130 }
@@ -170,7 +170,7 @@ PreviewWidget {
170170 top: parent.top
171171 right: parent.right
172172 }
173− color: readyToSubmit ? Theme.palette.selected.base : Theme.palette.normal.base
173+ color: readyToSubmit ? theme.palette.selected.base : theme.palette.normal.base
174174 text: widgetData["submit-label"] || i18n.tr("Send")
175175 onClicked: {
176176 if (readyToSubmit) root.submit()
qml/Dash/Previews/PreviewRatingSingleDisplay.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.4
18−import Ubuntu.Components 0.1
18+import Ubuntu.Components 1.3
1919import "../../Components"
2020
2121Column {
qml/Dash/Previews/PreviewTable.qml+4−4
@@ -1,5 +1,5 @@
11/*
2− * Copyright (C) 2014 Canonical, Ltd.
2+ * Copyright (C) 2014,2015 Canonical, Ltd.
33 *
44 * This program is free software; you can redistribute it and/or modify
55 * it under the terms of the GNU General Public License as published by
@@ -16,7 +16,7 @@
1616
1717import QtQuick 2.0
1818import QtQuick.Layouts 1.1
19−import Ubuntu.Components 0.1
19+import Ubuntu.Components 1.3
2020import "../../Components"
2121
2222/*! \brief Preview widget for table.
@@ -48,7 +48,7 @@ PreviewWidget {
4848 }
4949 height: visible ? implicitHeight : 0
5050 fontSize: "large"
51− color: root.scopeStyle ? root.scopeStyle.foreground : Theme.palette.normal.baseText
51+ color: root.scopeStyle ? root.scopeStyle.foreground : theme.palette.normal.baseText
5252 visible: text !== ""
5353 opacity: .8
5454 text: widgetData["title"] || ""
@@ -72,7 +72,7 @@ PreviewWidget {
7272 fontSize: "small"
7373 text: perRowRepeater.model[index]
7474 visible: root.expanded || rowIndex < maximumCollapsedRowCount
75− color: root.scopeStyle ? root.scopeStyle.foreground : Theme.palette.normal.baseText
75+ color: root.scopeStyle ? root.scopeStyle.foreground : theme.palette.normal.baseText
7676 font.bold: index == 0
7777 wrapMode: Text.Wrap
7878 Layout.alignment: Qt.AlignTop
qml/Dash/Previews/PreviewTextSummary.qml+4−4
@@ -1,5 +1,5 @@
11/*
2− * Copyright (C) 2014 Canonical, Ltd.
2+ * Copyright (C) 2014,2015 Canonical, Ltd.
33 *
44 * This program is free software; you can redistribute it and/or modify
55 * it under the terms of the GNU General Public License as published by
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.0
18−import Ubuntu.Components 0.1
18+import Ubuntu.Components 1.3
1919import "../../Components"
2020
2121/*! \brief Preview widget for text.
@@ -39,7 +39,7 @@ PreviewWidget {
3939 }
4040 height: visible ? implicitHeight : 0
4141 fontSize: "large"
42− color: root.scopeStyle ? root.scopeStyle.foreground : Theme.palette.normal.baseText
42+ color: root.scopeStyle ? root.scopeStyle.foreground : theme.palette.normal.baseText
4343 visible: text !== ""
4444 opacity: .8
4545 text: widgetData["title"] || ""
@@ -61,7 +61,7 @@ PreviewWidget {
6161 clip: true
6262 fontSize: "small"
6363 lineHeight: 1.2
64− color: root.scopeStyle ? root.scopeStyle.foreground : Theme.palette.normal.baseText
64+ color: root.scopeStyle ? root.scopeStyle.foreground : theme.palette.normal.baseText
6565 opacity: .8
6666 text: widgetData["text"] || ""
6767 wrapMode: Text.Wrap
qml/Dash/Previews/PreviewVideoPlayback.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.0
18−import Ubuntu.Components 0.1
18+import Ubuntu.Components 1.3
1919import Ubuntu.Thumbnailer 0.1
2020import "../../Components"
2121
qml/Dash/Previews/PreviewZoomableImage.qml+2−2
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.0
18−import Ubuntu.Components 0.1
18+import Ubuntu.Components 1.3
1919import "../../Components"
2020
2121/*! \brief Preview widget for image.
@@ -45,7 +45,7 @@ PreviewWidget {
4545 source: widgetData["source"]
4646 asynchronous: true
4747 useUbuntuShape: false
48− borderSource: mouseArea.pressed ? "radius_pressed.sci" : "radius_idle.sci"
48+ pressed: mouseArea.pressed
4949
5050 MouseArea {
5151 id: mouseArea
qml/Dash/PullToRefreshScopeStyle.qml+2−2
@@ -15,8 +15,8 @@
1515 */
1616
1717import QtQuick 2.3
18−import Ubuntu.Components 1.1
19−import Ubuntu.Components.Styles 1.1
18+import Ubuntu.Components 1.3
19+import Ubuntu.Components.Styles 1.3
2020
2121/**
2222 * TODO: Once the SDK version of PullToRefreshStyle doesn't have bug 1375799
qml/Dash/ScopeSettings/ScopeSetting.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.2
18−import Ubuntu.Components 1.1
18+import Ubuntu.Components 1.3
1919
2020/*! Interface for settings widgets. */
2121
qml/Dash/ScopeSettings/ScopeSettingBoolean.qml+4−4
@@ -1,5 +1,5 @@
11/*
2− * Copyright (C) 2014 Canonical, Ltd.
2+ * Copyright (C) 2015 Canonical, Ltd.
33 *
44 * This program is free software; you can redistribute it and/or modify
55 * it under the terms of the GNU General Public License as published by
@@ -15,8 +15,8 @@
1515 */
1616
1717import QtQuick 2.2
18−import Ubuntu.Components 1.1
19−import Ubuntu.Components.ListItems 1.0 as ListItem
18+import Ubuntu.Components 1.3
19+import Ubuntu.Components.ListItems 1.3 as ListItem
2020
2121ScopeSetting {
2222 id: root
@@ -44,7 +44,7 @@ ScopeSetting {
4444 elide: Text.ElideMiddle
4545 maximumLineCount: 2
4646 wrapMode: Text.Wrap
47− color: scopeStyle ? scopeStyle.foreground : Theme.palette.normal.baseText
47+ color: scopeStyle ? scopeStyle.foreground : theme.palette.normal.baseText
4848 }
4949
5050 CheckBox {
qml/Dash/ScopeSettings/ScopeSettingList.qml+2−2
@@ -15,8 +15,8 @@
1515 */
1616
1717import QtQuick 2.2
18−import Ubuntu.Components 1.1
19−import Ubuntu.Components.ListItems 1.0 as ListItem
18+import Ubuntu.Components 1.3
19+import Ubuntu.Components.ListItems 1.3 as ListItem
2020
2121ScopeSetting {
2222 id: root
qml/Dash/ScopeSettings/ScopeSettingString.qml+5−5
@@ -1,5 +1,5 @@
11/*
2− * Copyright (C) 2014 Canonical, Ltd.
2+ * Copyright (C) 2015 Canonical, Ltd.
33 *
44 * This program is free software; you can redistribute it and/or modify
55 * it under the terms of the GNU General Public License as published by
@@ -15,8 +15,8 @@
1515 */
1616
1717import QtQuick 2.2
18−import Ubuntu.Components 1.1
19−import Ubuntu.Components.ListItems 1.0 as ListItem
18+import Ubuntu.Components 1.3
19+import Ubuntu.Components.ListItems 1.3 as ListItem
2020
2121ScopeSetting {
2222 id: root
@@ -44,7 +44,7 @@ ScopeSetting {
4444 elide: Text.ElideMiddle
4545 maximumLineCount: 2
4646 wrapMode: Text.Wrap
47− color: scopeStyle ? scopeStyle.foreground : Theme.palette.normal.baseText
47+ color: scopeStyle ? scopeStyle.foreground : theme.palette.normal.baseText
4848 }
4949
5050 TextField {
@@ -57,7 +57,7 @@ ScopeSetting {
5757 }
5858 width: root.mode == "number" ? units.gu(8) : units.gu(12)
5959 text: widgetData.value
60− color: scopeStyle ? scopeStyle.foreground : Theme.palette.normal.fieldText
60+ color: scopeStyle ? scopeStyle.foreground : theme.palette.normal.fieldText
6161 validator: root.mode == "number" ? doubleValidator : null
6262 hasClearButton: root.mode == "number" ? false : true
6363
qml/Dash/ScopeSettingsPage.qml+2−2
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.2
18−import Ubuntu.Components 1.1
18+import Ubuntu.Components 1.3
1919import Unity 0.2
2020import "../Components"
2121import "ScopeSettings"
@@ -28,7 +28,7 @@ Item {
2828
2929 signal backClicked()
3030
31− PageHeader {
31+ DashPageHeader {
3232 id: header
3333 objectName: "pageHeader"
3434 width: parent.width
qml/Dash/ScopesList.qml+1−1
@@ -61,7 +61,7 @@ Item {
6161 value: root.scope ? root.scope.searchQuery : ""
6262 }
6363
64− PageHeader {
64+ DashPageHeader {
6565 id: header
6666 objectName: "pageHeader"
6767 title: i18n.tr("Manage")
qml/Dash/ScopesListCategory.qml+3−3
@@ -1,5 +1,5 @@
11/*
2− * Copyright (C) 2014 Canonical, Ltd.
2+ * Copyright (C) 2014,2015 Canonical, Ltd.
33 *
44 * This program is free software; you can redistribute it and/or modify
55 * it under the terms of the GNU General Public License as published by
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.3
18−import Ubuntu.Components 1.1
18+import Ubuntu.Components 1.3
1919import Dash 0.1
2020import "../Components/ListItems" as ListItems
2121
@@ -43,7 +43,7 @@ Item {
4343 id: header
4444 width: root.width
4545 height: units.gu(5)
46− color: scopeStyle ? scopeStyle.foreground : Theme.palette.normal.baseText
46+ color: scopeStyle ? scopeStyle.foreground : theme.palette.normal.baseText
4747 }
4848
4949 readonly property double listItemHeight: units.gu(6)
qml/Dash/ScopesListCategoryItem.qml+3−3
@@ -16,7 +16,7 @@
1616
1717import QtQuick 2.3
1818import QtQuick.Layouts 1.1
19−import Ubuntu.Components 1.1
19+import Ubuntu.Components 1.3
2020
2121MouseArea {
2222 id: root
@@ -49,10 +49,10 @@ MouseArea {
4949 width: units.gu(5)
5050 height: units.gu(5)
5151 visible: !hideChildren
52− image: Image {
52+ sourceFillMode: UbuntuShape.PreserveAspectCrop
53+ source: Image {
5354 id: shapeImage
5455 cache: true
55− fillMode: Image.PreserveAspectCrop
5656 sourceSize { width: shape.width; height: shape.height }
5757 }
5858 }
qml/Greeter/Clock.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.0
18−import Ubuntu.Components 0.1
18+import Ubuntu.Components 1.3
1919import "../Panel/Indicators"
2020import Unity.Indicators 0.1 as Indicators
2121
qml/Greeter/CoverPage.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.3
18−import Ubuntu.Components 1.1
18+import Ubuntu.Components 1.3
1919import Ubuntu.Gestures 0.1
2020import "../Components"
2121
qml/Greeter/Greeter.qml+1−1
@@ -17,7 +17,7 @@
1717import QtQuick 2.3
1818import AccountsService 0.1
1919import GSettings 1.0
20−import Ubuntu.Components 1.1
20+import Ubuntu.Components 1.3
2121import Ubuntu.SystemImage 0.1
2222import Unity.Launcher 0.1
2323import "../Components"
qml/Greeter/Infographics.qml+1−1
@@ -17,7 +17,7 @@
1717import "../Components"
1818import "Gradient.js" as Gradient
1919import QtQuick 2.0
20−import Ubuntu.Components 0.1
20+import Ubuntu.Components 1.3
2121
2222Item {
2323 id: infographic
qml/Greeter/LoginList.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.3
18−import Ubuntu.Components 1.1
18+import Ubuntu.Components 1.3
1919import "../Components"
2020
2121Item {
qml/Greeter/NarrowView.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.3
18−import Ubuntu.Components 1.1
18+import Ubuntu.Components 1.3
1919import "../Components"
2020
2121FocusScope {
qml/Greeter/ObjectPositioner.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.0
18−import Ubuntu.Components 0.1
18+import Ubuntu.Components 1.3
1919
2020Item {
2121 property int count
qml/Greeter/WideView.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.3
18−import Ubuntu.Components 1.1
18+import Ubuntu.Components 1.3
1919
2020FocusScope {
2121 id: root
qml/Launcher/FoldingLauncherDelegate.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.0
18−import Ubuntu.Components 0.1
18+import Ubuntu.Components 1.3
1919
2020LauncherDelegate {
2121 id: root
qml/Launcher/Launcher.qml+1−1
@@ -16,7 +16,7 @@
1616
1717import QtQuick 2.0
1818import "../Components"
19−import Ubuntu.Components 0.1
19+import Ubuntu.Components 1.3
2020import Ubuntu.Gestures 0.1
2121import Unity.Launcher 0.1
2222
qml/Launcher/LauncherDelegate.qml+6−7
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.0
18−import Ubuntu.Components 1.1
18+import Ubuntu.Components 1.3
1919
2020Item {
2121 id: root
@@ -130,13 +130,12 @@ Item {
130130 anchors.fill: parent
131131 anchors.margins: units.gu(1)
132132 radius: "medium"
133− borderSource: "none"
134−
135− image: Image {
133+ aspect: UbuntuShape.Flat
134+ sourceFillMode: UbuntuShape.PreserveAspectCrop
135+ source: Image {
136136 id: iconImage
137137 sourceSize.width: iconShape.width
138138 sourceSize.height: iconShape.height
139− fillMode: Image.PreserveAspectCrop
140139 source: root.iconName
141140 }
142141 }
@@ -159,9 +158,9 @@ Item {
159158 }
160159 width: Math.min(root.itemWidth, Math.max(units.gu(2), countLabel.implicitWidth + units.gu(1)))
161160 height: units.gu(2)
162− color: UbuntuColors.orange
161+ backgroundColor: UbuntuColors.orange
163162 visible: root.countVisible
164− borderSource: "none"
163+ aspect: UbuntuShape.Flat
165164
166165 Label {
167166 id: countLabel
qml/Launcher/LauncherPanel.qml+5−5
@@ -15,10 +15,10 @@
1515 */
1616
1717import QtQuick 2.3
18−import Ubuntu.Components 1.2
19−import Ubuntu.Components.ListItems 1.0 as ListItems
18+import Ubuntu.Components 1.3
19+import Ubuntu.Components.ListItems 1.3 as ListItems
2020import Unity.Launcher 0.1
21−import Ubuntu.Components.Popups 0.1
21+import Ubuntu.Components.Popups 1.3
2222import "../Components/ListItems"
2323import "../Components/"
2424
@@ -61,8 +61,8 @@ Rectangle {
6161 fill: parent
6262 topMargin: -units.gu(2)
6363 }
64− borderSource: "none"
65− color: UbuntuColors.orange
64+ aspect: UbuntuShape.Flat
65+ backgroundColor: UbuntuColors.orange
6666 }
6767
6868 Image {
qml/Notifications/Notification.qml+14−14
@@ -17,11 +17,11 @@
1717import QtQuick 2.0
1818import QtMultimedia 5.0
1919import Powerd 0.1
20−import Ubuntu.Components 1.2
20+import Ubuntu.Components 1.3
21+import Ubuntu.Components.ListItems 1.3 as ListItem
2122import Unity.Notifications 1.0
2223import QMenuModel 0.1
2324import Utils 0.1
24−import Ubuntu.Components.ListItems 0.1 as ListItem
2525
2626Item {
2727 id: notification
@@ -90,7 +90,7 @@ Item {
9090 // Turn on screen as needed (Powerd.Notification means the screen
9191 // stays on for a shorter amount of time)
9292 if (type == Notification.SnapDecision) {
93− Powerd.setStatus(Powerd.On, Powerd.Unknown);
93+ Powerd.setStatus(Powerd.On, Powerd.SnapDecision);
9494 } else if (type != Notification.Confirmation) {
9595 Powerd.setStatus(Powerd.On, Powerd.Notification);
9696 }
@@ -152,10 +152,10 @@ Item {
152152 rightMargin: notification.margins
153153 topMargin: type === Notification.Confirmation ? units.gu(.5) : 0
154154 }
155− color: parent.color
155+ backgroundColor: parent.color
156156 opacity: parent.opacity
157157 radius: "medium"
158− borderSource: "none"
158+ aspect: UbuntuShape.Flat
159159 }
160160
161161 Rectangle {
@@ -281,9 +281,9 @@ Item {
281281 }
282282 visible: type !== Notification.Confirmation
283283 fontSize: "medium"
284− color: darkOnBright ? sdFontColor : Theme.palette.selected.backgroundText
284+ color: darkOnBright ? sdFontColor : theme.palette.selected.backgroundText
285285 elide: Text.ElideRight
286− textFormat: Text.StyledText
286+ textFormat: Text.PlainText
287287 }
288288
289289 Label {
@@ -296,11 +296,11 @@ Item {
296296 }
297297 visible: body != "" && type !== Notification.Confirmation
298298 fontSize: "small"
299− color: darkOnBright ? sdFontColor : Theme.palette.selected.backgroundText
299+ color: darkOnBright ? sdFontColor : theme.palette.selected.backgroundText
300300 wrapMode: Text.WordWrap
301301 maximumLineCount: type == Notification.SnapDecision ? 12 : 2
302302 elide: Text.ElideRight
303− textFormat: Text.StyledText
303+ textFormat: Text.PlainText
304304 }
305305 }
306306
@@ -337,7 +337,7 @@ Item {
337337 anchors.horizontalCenter: parent.horizontalCenter
338338 visible: type === Notification.Confirmation && body !== ""
339339 fontSize: "medium"
340− color: darkOnBright ? sdFontColor : Theme.palette.selected.backgroundText
340+ color: darkOnBright ? sdFontColor : theme.palette.selected.backgroundText
341341 wrapMode: Text.WordWrap
342342 maximumLineCount: 1
343343 elide: Text.ElideRight
@@ -357,8 +357,8 @@ Item {
357357 }
358358
359359 height: units.gu(1)
360− color: darkOnBright ? UbuntuColors.darkGrey : UbuntuColors.lightGrey
361− borderSource: "none"
360+ backgroundColor: darkOnBright ? UbuntuColors.darkGrey : UbuntuColors.lightGrey
361+ aspect: UbuntuShape.Flat
362362 radius: "small"
363363
364364 UbuntuShape {
@@ -366,8 +366,8 @@ Item {
366366 objectName: "innerBar"
367367 width: valueIndicator.width * valueIndicator.value / 100
368368 height: units.gu(1)
369− color: notification.hints["x-canonical-value-bar-tint"] === "true" ? UbuntuColors.orange : darkOnBright ? UbuntuColors.lightGrey : "white"
370− borderSource: "none"
369+ backgroundColor: notification.hints["x-canonical-value-bar-tint"] === "true" ? UbuntuColors.orange : darkOnBright ? UbuntuColors.lightGrey : "white"
370+ aspect: UbuntuShape.Flat
371371 radius: "small"
372372 }
373373 }
qml/Notifications/NotificationMenuItemFactory.qml+1−1
@@ -18,7 +18,7 @@
1818 */
1919
2020import QtQuick 2.0
21−import Ubuntu.Components 0.1
21+import Ubuntu.Components 1.3
2222import QMenuModel 0.1
2323import "../Components"
2424
qml/Notifications/Notifications.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.0
18−import Ubuntu.Components 0.1
18+import Ubuntu.Components 1.3
1919import Unity.Notifications 1.0 as UnityNotifications
2020import Utils 0.1
2121import "../Components"
qml/Notifications/OptionToggle.qml+6−6
@@ -1,5 +1,5 @@
11/*
2− * Copyright (C) 2014 Canonical, Ltd.
2+ * Copyright (C) 2014,2015 Canonical, Ltd.
33 *
44 * This program is free software; you can redistribute it and/or modify
55 * it under the terms of the GNU General Public License as published by
@@ -15,9 +15,9 @@
1515 */
1616
1717import QtQuick 2.0
18−import Ubuntu.Components 0.1
19−import Ubuntu.Components.ListItems 0.1 as ListItem
20−import Ubuntu.Components.Popups 0.1
18+import Ubuntu.Components 1.3
19+import Ubuntu.Components.ListItems 1.3 as ListItem
20+import Ubuntu.Components.Popups 1.3
2121
2222UbuntuShape {
2323 id: optionToggle
@@ -29,8 +29,8 @@ UbuntuShape {
2929
3030 signal triggered(string id)
3131
32− color: Theme.palette.normal.base
33− borderSource: "none"
32+ backgroundColor: theme.palette.normal.base
33+ aspect: UbuntuShape.Flat
3434 height: expanded ? (optionToggleRepeater.count - startIndex) * itemHeight : itemHeight
3535 width: parent.width
3636 radius: "medium"
qml/Notifications/ShapedIcon.qml+2−2
@@ -1,5 +1,5 @@
11/*
2− * Copyright (C) 2013 Canonical, Ltd.
2+ * Copyright (C) 2013,2015 Canonical, Ltd.
33 *
44 * This program is free software; you can redistribute it and/or modify
55 * it under the terms of the GNU General Public License as published by
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.3
18−import Ubuntu.Components 1.2
18+import Ubuntu.Components 1.3
1919
2020Item {
2121 property string fileSource
qml/Notifications/SwipeToAct.qml+9−9
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.3
18−import Ubuntu.Components 1.2
18+import Ubuntu.Components 1.3
1919
2020Item {
2121 id: swipeToAct
@@ -98,8 +98,8 @@ Item {
9898 id: row
9999 width: parent.width
100100 height: priv.sliderHeight
101− color: priv.sliderBGColor
102− borderSource: "none"
101+ backgroundColor: priv.sliderBGColor
102+ aspect: UbuntuShape.Flat
103103 visible: !clickToAct
104104
105105 UbuntuShape {
@@ -108,8 +108,8 @@ Item {
108108 anchors.top: parent.top
109109 anchors.left: parent.left
110110 anchors.margins: priv.gap
111− color: UbuntuColors.red
112− borderSource: "none"
111+ backgroundColor: UbuntuColors.red
112+ aspect: UbuntuShape.Flat
113113
114114 state: "normal"
115115 height: units.gu(6)
@@ -187,10 +187,10 @@ Item {
187187 }
188188
189189 z: 1
190− color: priv.sliderMainColor
190+ backgroundColor: priv.sliderMainColor
191191 height: units.gu(6)
192192 width: units.gu(6)
193− borderSource: "none"
193+ aspect: UbuntuShape.Flat
194194 radius: "medium"
195195 Icon {
196196 anchors.fill: parent
@@ -226,8 +226,8 @@ Item {
226226 anchors.top: parent.top
227227 anchors.right: parent.right
228228 anchors.margins: priv.gap
229− color: UbuntuColors.green
230− borderSource: "none"
229+ backgroundColor: UbuntuColors.green
230+ aspect: UbuntuShape.Flat
231231
232232 state: "normal"
233233 height: units.gu(6)
qml/OrientedShell.qml+1−1
@@ -23,7 +23,7 @@ import "Components/UnityInputInfo"
2323import "Rotation"
2424// Backup Workaround https://bugs.launchpad.net/ubuntu/+source/unity8/+bug/1473471
2525// in case we remove the UnityInputInfo import
26−import Ubuntu.Components 1.2
26+import Ubuntu.Components 1.3
2727
2828Rectangle {
2929 id: root
qml/Panel/ActiveCallHint.qml+1−1
@@ -16,7 +16,7 @@
1616
1717import QtQuick 2.0
1818import Ubuntu.Telephony 0.1 as Telephony
19−import Ubuntu.Components 0.1
19+import Ubuntu.Components 1.3
2020import Unity.Application 0.1
2121import "../Components"
2222
qml/Panel/Handle.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.2
18−import Ubuntu.Components 1.1
18+import Ubuntu.Components 1.3
1919
2020Rectangle {
2121 id: handle
qml/Panel/IndicatorItem.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.2
18−import Ubuntu.Components 1.1
18+import Ubuntu.Components 1.3
1919import Ubuntu.Settings.Components 0.1
2020import "Indicators"
2121
qml/Panel/IndicatorItemRow.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.2
18−import Ubuntu.Components 1.1
18+import Ubuntu.Components 1.3
1919
2020Item {
2121 id: root
qml/Panel/IndicatorPage.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.0
18−import Ubuntu.Components 0.1 as Components
18+import Ubuntu.Components 1.3 as Components
1919import Unity.Indicators 0.1 as Indicators
2020import "Indicators"
2121
qml/Panel/Indicators/MenuItemFactory.qml+5−5
@@ -19,8 +19,8 @@ import Ubuntu.Settings.Menus 0.1 as Menus
1919import Ubuntu.Settings.Components 0.1
2020import QMenuModel 0.1
2121import Utils 0.1 as Utils
22−import Ubuntu.Components.ListItems 0.1 as ListItems
23−import Ubuntu.Components 1.2
22+import Ubuntu.Components.ListItems 1.3 as ListItems
23+import Ubuntu.Components 1.3
2424import Unity.Session 0.1
2525
2626Item {
@@ -249,7 +249,7 @@ Item {
249249 name: "settings"
250250 height: units.gu(3)
251251 width: height
252− color: Theme.palette.selected.backgroundText
252+ color: theme.palette.selected.backgroundText
253253 }
254254 }
255255 }
@@ -281,7 +281,7 @@ Item {
281281 source: menuData.icon
282282 height: units.gu(3)
283283 width: height
284− color: Theme.palette.selected.backgroundText
284+ color: theme.palette.selected.backgroundText
285285 }
286286 }
287287 }
@@ -924,7 +924,7 @@ Item {
924924 enabled: menuData && menuData.sensitive || false
925925 highlightWhenPressed: false
926926 text: menuData && menuData.label || ""
927− foregroundColor: Theme.palette.normal.backgroundText
927+ foregroundColor: theme.palette.normal.backgroundText
928928
929929 onMenuModelChanged: {
930930 loadAttributes();
qml/Panel/Indicators/MessageMenuItemFactory.qml+1−1
@@ -19,7 +19,7 @@
1919 */
2020
2121import QtQuick 2.0
22−import Ubuntu.Components 0.1
22+import Ubuntu.Components 1.3
2323import Ubuntu.Settings.Menus 0.1 as Menus
2424import QMenuModel 0.1 as QMenuModel
2525import Utils 0.1 as Utils
qml/Panel/Indicators/ModemInfoItem.qml+5−5
@@ -1,5 +1,5 @@
11/*
2− * Copyright 2014 Canonical Ltd.
2+ * Copyright 2014,2015 Canonical Ltd.
33 *
44 * This program is free software; you can redistribute it and/or modify
55 * it under the terms of the GNU Lesser General Public License as published by
@@ -16,8 +16,8 @@
1616
1717import QtQuick 2.0
1818import QtQuick.Layouts 1.1
19−import Ubuntu.Components 0.1
20−import Ubuntu.Components.ListItems 0.1 as ListItem
19+import Ubuntu.Components 1.3
20+import Ubuntu.Components.ListItems 1.3 as ListItem
2121
2222ListItem.Empty {
2323 id: menu
@@ -65,7 +65,7 @@ ListItem.Empty {
6565 height: parent.height
6666 Icon {
6767 id: statusIcon
68− color: Theme.palette.selected.backgroundText
68+ color: theme.palette.selected.backgroundText
6969
7070 Layout.preferredHeight: parent.height
7171 Layout.preferredWidth: Layout.preferredHeight
@@ -75,7 +75,7 @@ ListItem.Empty {
7575
7676 Icon {
7777 id: iconConnectivity
78− color: Theme.palette.selected.backgroundText
78+ color: theme.palette.selected.backgroundText
7979
8080 Layout.preferredHeight: parent.height
8181 Layout.preferredWidth: Layout.preferredHeight
qml/Panel/Indicators/RoamingIndication.qml+3−3
@@ -1,5 +1,5 @@
11/*
2− * Copyright 2014 Canonical Ltd.
2+ * Copyright 2014,2015 Canonical Ltd.
33 *
44 * This program is free software; you can redistribute it and/or modify
55 * it under the terms of the GNU Lesser General Public License as published by
@@ -16,7 +16,7 @@
1616
1717import QtQuick 2.0
1818import QtQuick.Layouts 1.1
19−import Ubuntu.Components 0.1
19+import Ubuntu.Components 1.3
2020
2121RowLayout {
2222 spacing: units.gu(0.5)
@@ -30,7 +30,7 @@ RowLayout {
3030
3131 Icon {
3232 id: iconRoaming
33− color: Theme.palette.selected.backgroundText
33+ color: theme.palette.selected.backgroundText
3434
3535 Layout.preferredHeight: parent.height
3636 Layout.preferredWidth: Layout.preferredHeight
qml/Panel/Indicators/client/IndicatorRepresentation.qml+2−2
@@ -19,8 +19,8 @@
1919 */
2020
2121import QtQuick 2.0
22−import Ubuntu.Components 0.1
23−import Ubuntu.Components.ListItems 0.1 as ListItem
22+import Ubuntu.Components 1.3
23+import Ubuntu.Components.ListItems 1.3 as ListItem
2424import "../.."
2525
2626Page {
qml/Panel/Indicators/client/IndicatorsClient.qml+3−3
@@ -18,15 +18,15 @@
1818 */
1919
2020import QtQuick 2.0
21−import Ubuntu.Components 0.1
22−import Ubuntu.Components.ListItems 0.1 as ListItem
21+import Ubuntu.Components 1.3
22+import Ubuntu.Components.ListItems 1.3 as ListItem
2323
2424Rectangle {
2525 color: "black"
2626 id: root
2727
2828 Component.onCompleted: {
29− Theme.name = "Ubuntu.Components.Themes.SuruGradient"
29+ theme.name = "Ubuntu.Components.Themes.SuruGradient"
3030 }
3131
3232 PageStack {
qml/Panel/Indicators/client/IndicatorsList.qml+2−2
@@ -18,8 +18,8 @@
1818 */
1919
2020import QtQuick 2.0
21−import Ubuntu.Components 0.1
22−import Ubuntu.Components.ListItems 0.1 as ListItem
21+import Ubuntu.Components 1.3
22+import Ubuntu.Components.ListItems 1.3 as ListItem
2323import Unity.Indicators 0.1 as Indicators
2424import "../.."
2525
qml/Panel/Indicators/client/IndicatorsTree.qml+1−1
@@ -18,7 +18,7 @@
1818 */
1919
2020import QtQuick 2.0
21−import Ubuntu.Components 0.1
21+import Ubuntu.Components 1.3
2222import Unity.Indicators 0.1 as Indicators
2323import ".."
2424
qml/Panel/IndicatorsBar.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.2
18−import Ubuntu.Components 1.1
18+import Ubuntu.Components 1.3
1919import "../Components"
2020
2121Item {
qml/Panel/IndicatorsMenu.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.2
18−import Ubuntu.Components 1.1
18+import Ubuntu.Components 1.3
1919import Ubuntu.Gestures 0.1
2020import "../Components"
2121import "Indicators"
qml/Panel/MenuContent.qml+1−1
@@ -16,7 +16,7 @@
1616
1717import QtQuick 2.2
1818import QtQuick.Layouts 1.1
19−import Ubuntu.Components 1.1
19+import Ubuntu.Components 1.3
2020import Unity.Indicators 0.1 as Indicators
2121import Utils 0.1
2222import "../Components"
qml/Panel/Panel.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.2
18−import Ubuntu.Components 1.1
18+import Ubuntu.Components 1.3
1919import Unity.Application 0.1
2020import "../Components"
2121import "../Components/PanelState"
qml/Rotation/RotationStates.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.0
18−import Ubuntu.Components 1.1
18+import Ubuntu.Components 1.3
1919import Powerd 0.1
2020
2121// Why the state machine is done that way:
qml/ScopeTool.qml+2−2
@@ -15,8 +15,8 @@
1515*/
1616
1717import QtQuick 2.0
18−import Ubuntu.Components 0.1
19−import Ubuntu.Components.Popups 0.1
18+import Ubuntu.Components 1.3
19+import Ubuntu.Components.Popups 1.3
2020import Ubuntu.Thumbnailer 0.1 // Register support for image://thumbnailer/ and image://albumart/
2121import Utils 0.1
2222import Unity 0.2
qml/Shell.qml+3−3
@@ -19,8 +19,8 @@ import QtQuick.Window 2.0
1919import AccountsService 0.1
2020import GSettings 1.0
2121import Unity.Application 0.1
22−import Ubuntu.Components 0.1
23−import Ubuntu.Components.Popups 1.0
22+import Ubuntu.Components 1.3
23+import Ubuntu.Components.Popups 1.3
2424import Ubuntu.Gestures 0.1
2525import Ubuntu.Telephony 0.1 as Telephony
2626import Unity.Connectivity 0.1
@@ -162,7 +162,7 @@ Item {
162162 }
163163
164164 Component.onCompleted: {
165− Theme.name = "Ubuntu.Components.Themes.SuruGradient"
165+ theme.name = "Ubuntu.Components.Themes.SuruGradient"
166166 if (ApplicationManager.count > 0) {
167167 ApplicationManager.focusApplication(ApplicationManager.get(0).appId);
168168 }
qml/Stages/Animations/SwipeFromBottomAnimation.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.0
18−import Ubuntu.Components 1.1
18+import Ubuntu.Components 1.3
1919
2020BaseSessionAnimation {
2121 id: animation
qml/Stages/ApplicationWindow.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.0
18−import Ubuntu.Components 1.1
18+import Ubuntu.Components 1.3
1919import Unity.Application 0.1
2020
2121FocusScope {
qml/Stages/DecoratedWindow.qml+1−1
@@ -17,7 +17,7 @@
1717 */
1818
1919import QtQuick 2.3
20−import Ubuntu.Components 1.1
20+import Ubuntu.Components 1.3
2121import Unity.Application 0.1
2222
2323FocusScope {
qml/Stages/DesktopSpread.qml+1−1
@@ -16,7 +16,7 @@
1616
1717import QtQuick 2.4
1818import QtQuick.Layouts 1.1
19−import Ubuntu.Components 1.2
19+import Ubuntu.Components 1.3
2020import Ubuntu.Gestures 0.1
2121import Unity.Application 0.1
2222
qml/Stages/DesktopSpreadDelegate.qml+1−1
@@ -17,7 +17,7 @@
1717 */
1818
1919import QtQuick 2.3
20−import Ubuntu.Components 1.1
20+import Ubuntu.Components 1.3
2121import Unity.Application 0.1
2222
2323Item {
qml/Stages/DesktopStage.qml+1−1
@@ -18,7 +18,7 @@
1818
1919import QtQuick 2.4
2020import QtQuick.Layouts 1.1
21−import Ubuntu.Components 1.1
21+import Ubuntu.Components 1.3
2222import Unity.Application 0.1
2323import "../Components"
2424import "../Components/PanelState"
qml/Stages/MainViewStyle.qml+35−27
@@ -1,5 +1,5 @@
11/*
2− * Copyright 2014 Canonical Ltd.
2+ * Copyright 2012 Canonical Ltd.
33 *
44 * This program is free software; you can redistribute it and/or modify
55 * it under the terms of the GNU Lesser General Public License as published by
@@ -13,51 +13,60 @@
1313 * You should have received a copy of the GNU Lesser General Public License
1414 * along with this program. If not, see <http://www.gnu.org/licenses/>.
1515 */
16−import QtQuick 2.0
17−import Ubuntu.Components 1.1
16+import QtQuick 2.4
17+import Ubuntu.Components 1.3
1818
1919// FIXME: copied with slight modifications from Ubuntu UI Toolkit's Ambiance's theme
2020Item {
21− // styling properties
2221 anchors.fill: parent
2322 z: -1
2423 id: mainViewStyle
2524
25+ property var theme
26+
27+ /*!
28+ Color of the header's background.
29+
30+ \sa backgroundColor, footerColor
31+ */
32+ property color headerColor: styledItem.headerColor
33+
2634 /*!
27− The background texture of the main view. The image will be drawn over the background color,
28− so if it has (semi-)transparent pixels, in those pixels the background color will be visible.
29− */
30− property url backgroundSource: "graphics/background_paper.png"
31− property var theme
35+ Color of the background.
36+
37+ The background is usually a single color. However if \l headerColor
38+ or \l footerColor are set then a gradient of colors will be drawn.
39+
40+ \sa footerColor, headerColor
41+ */
42+ property color backgroundColor: styledItem.backgroundColor
43+
44+ /*!
45+ Color of the footer's background.
46+
47+ \sa backgroundColor, headerColor
48+ */
49+ property color footerColor: styledItem.footerColor
3250
3351 Gradient {
3452 id: backgroundGradient
35− GradientStop { position: 0.0; color: styledItem.headerColor }
36− GradientStop { position: 0.83; color: styledItem.backgroundColor }
37− GradientStop { position: 1.0; color: styledItem.footerColor }
53+ GradientStop { position: 0.0; color: mainViewStyle.headerColor }
54+ GradientStop { position: 0.83; color: mainViewStyle.backgroundColor }
55+ GradientStop { position: 1.0; color: mainViewStyle.footerColor }
3856 }
3957
4058 Rectangle {
4159 id: backgroundColor
4260 anchors.fill: parent
43− color: styledItem.backgroundColor
61+ color: mainViewStyle.backgroundColor
4462 gradient: internals.isGradient ? backgroundGradient : null
4563 }
4664
47− Image {
48− id: backgroundTexture
49− anchors.fill: parent
50− source: mainViewStyle.theme.name === "Ambiance" ? mainViewStyle.backgroundSource : ""
51− fillMode: Image.Tile
52− asynchronous: true
53− cache: false
54− visible: status === Image.Ready
55− }
56−
5765 QtObject {
5866 id: internals
59− property bool isGradient: styledItem.backgroundColor != styledItem.headerColor ||
60− styledItem.backgroundColor != styledItem.footerColor
67+ property bool isGradient: mainViewStyle.backgroundColor != mainViewStyle.headerColor ||
68+ mainViewStyle.backgroundColor != mainViewStyle.footerColor
69+
6170 /*
6271 As we don't know the order the property bindings and onXXXChanged signals are evaluated
6372 we should rely only on one property when changing the theme to avoid intermediate
@@ -65,8 +74,7 @@ Item {
6574
6675 Qt bug: https://bugreports.qt-project.org/browse/QTBUG-11712
6776 */
68− property string theme: (ColorUtils.luminance(styledItem.backgroundColor) >= 0.85) ? "Ambiance" :
69− (isGradient ? "SuruGradient" : "SuruDark")
77+ property string theme: (ColorUtils.luminance(styledItem.backgroundColor) >= 0.85) ? "Ambiance" : "SuruDark"
7078 }
7179
7280 // automatically select the appropriate theme depending on the background colors
qml/Stages/PageHeadStyle.qml+2−2
@@ -14,8 +14,8 @@
1414 * along with this program. If not, see <http://www.gnu.org/licenses/>.
1515 */
1616import QtQuick 2.2
17−import Ubuntu.Components 1.1
18−import Ubuntu.Components.Styles 1.1 as Style
17+import Ubuntu.Components 1.3
18+import Ubuntu.Components.Styles 1.3 as Style
1919
2020// FIXME: copied with large modifications from Ubuntu UI Toolkit's Ambiance's theme
2121Style.PageHeadStyle {
qml/Stages/PhoneStage.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.2
18−import Ubuntu.Components 0.1
18+import Ubuntu.Components 1.3
1919import Ubuntu.Gestures 0.1
2020import Unity.Application 0.1
2121import Unity.Session 0.1
qml/Stages/ShimStage.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.3
18−import Ubuntu.Components 0.1
18+import Ubuntu.Components 1.3
1919
2020Rectangle {
2121 id: shimStage
qml/Stages/Splash.qml+13−14
@@ -15,11 +15,11 @@
1515*/
1616
1717import QtQuick 2.2
18−import Ubuntu.Components 1.1
19−import Ubuntu.Components.Themes 0.1
18+import Ubuntu.Components 1.3
19+import Ubuntu.Components.Themes 1.3
2020import "../Components"
2121
22−import Ubuntu.Components.Themes.Ambiance 1.1 as Ambiance
22+import Ubuntu.Components.Themes.Ambiance 1.3 as Ambiance
2323
2424Item {
2525 id: root
@@ -62,17 +62,17 @@ Item {
6262 : root.footerColor
6363
6464 // FIXME: fake a Theme object as to expose the Palette corresponding to the backgroundColor (see MainViewStyle.qml)
65− property var theme: QtObject {
65+ readonly property var fakeTheme: QtObject {
6666 property string name
6767 property Palette palette: Qt.createQmlObject("import QtQuick 2.2;\
68− import Ubuntu.Components.Themes.%1 1.1;\
69− Palette {}".arg(styledItem.theme.name),
68+ import Ubuntu.Components.Themes.%1 1.3;\
69+ Palette {}".arg(styledItem.fakeTheme.name),
7070 styledItem, "dynamicPalette");
7171 }
7272
7373 // FIXME: should instead use future toolkit API:
7474 // style: theme.createStyleComponent("MainViewStyle.qml", styledItem)
75− style: Component { MainViewStyle {theme: styledItem.theme} }
75+ style: Component { MainViewStyle {theme: styledItem.fakeTheme} }
7676 }
7777
7878 StyledItem {
@@ -89,13 +89,13 @@ Item {
8989 property string title
9090 property var tabsModel
9191 property var config: QtObject {
92− property color foregroundColor: styledItem.theme.palette.selected.backgroundText
92+ property color foregroundColor: styledItem.fakeTheme.palette.selected.backgroundText
9393 property var sections: QtObject {}
9494 }
9595
9696 // FIXME: should instead use future toolkit API:
9797 // style: theme.createStyleComponent("PageHeadStyle.qml", header)
98− style: Component { PageHeadStyle {theme: styledItem.theme} }
98+ style: Component { PageHeadStyle {theme: styledItem.fakeTheme} }
9999 }
100100
101101 Image {
@@ -121,14 +121,13 @@ Item {
121121 visible: d.showIcon
122122
123123 radius: "medium"
124− borderSource: "none"
125−
126− image: Image {
124+ aspect: UbuntuShape.Flat
125+ sourceFillMode: Image.PreserveAspectCrop
126+ source: Image {
127127 id: iconImage
128128 sourceSize.width: iconShape.width
129129 sourceSize.height: iconShape.height
130130 source: d.showIcon ? root.icon : ""
131− fillMode: Image.PreserveAspectCrop
132131 }
133132 }
134133
@@ -139,7 +138,7 @@ Item {
139138 anchors.topMargin: units.gu(2)
140139 fontSize: "large"
141140
142− color: styledItem.theme.palette.selected.backgroundText
141+ color: styledItem.fakeTheme.palette.selected.backgroundText
143142 visible: d.showIcon
144143 }
145144
qml/Stages/SpreadDelegate.qml+1−1
@@ -19,7 +19,7 @@
1919
2020import QtQuick 2.0
2121import QtQuick.Window 2.0
22−import Ubuntu.Components 1.1
22+import Ubuntu.Components 1.3
2323import "../Components"
2424
2525FocusScope {
qml/Stages/SpreadMaths.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.2
18−import Ubuntu.Components 1.1
18+import Ubuntu.Components 1.3
1919import Utils 0.1
2020
2121Item {
qml/Stages/SurfaceContainer.qml+1−1
@@ -15,7 +15,7 @@
1515*/
1616
1717import QtQuick 2.0
18−import Ubuntu.Components 1.1
18+import Ubuntu.Components 1.3
1919import Ubuntu.Gestures 0.1 // For TouchGate
2020import Utils 0.1 // for InputWatcher
2121import Unity.Application 0.1 // for MirSurfaceItem
qml/Stages/TabletStage.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.0
18−import Ubuntu.Components 0.1
18+import Ubuntu.Components 1.3
1919import Ubuntu.Gestures 0.1
2020import Unity.Application 0.1
2121import Utils 0.1
qml/Stages/TransformedSpreadDelegate.qml+1−1
@@ -18,7 +18,7 @@
1818
1919import QtQuick 2.0
2020import Utils 0.1
21−import Ubuntu.Components 0.1
21+import Ubuntu.Components 1.3
2222
2323SpreadDelegate {
2424 id: root
qml/Stages/TransformedTabletSpreadDelegate.qml+1−1
@@ -18,7 +18,7 @@
1818
1919import QtQuick 2.0
2020import Utils 0.1
21−import Ubuntu.Components 0.1
21+import Ubuntu.Components 1.3
2222import Unity.Application 0.1
2323
2424SpreadDelegate {
qml/Stages/WindowDecoration.qml+1−1
@@ -17,7 +17,7 @@
1717 */
1818
1919import QtQuick 2.3
20−import Ubuntu.Components 1.1
20+import Ubuntu.Components 1.3
2121import "../Components"
2222
2323Item {
qml/Stages/WindowMoveResizeArea.qml+1−1
@@ -17,7 +17,7 @@
1717 */
1818
1919import QtQuick 2.3
20−import Ubuntu.Components 1.1
20+import Ubuntu.Components 1.3
2121import Utils 0.1
2222
2323MouseArea {
qml/Stages/graphics/background_paper@27.pngdeleted

Binary file not shown.

qml/Tutorial/Arrow.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.3
18−import Ubuntu.Components 1.1
18+import Ubuntu.Components 1.3
1919
2020Item {
2121 id: root
qml/Tutorial/Slider.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.3
18−import Ubuntu.Components 1.1
18+import Ubuntu.Components 1.3
1919
2020Item {
2121 id: root
qml/Tutorial/Tick.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.3
18−import Ubuntu.Components 1.1
18+import Ubuntu.Components 1.3
1919
2020MouseArea {
2121 implicitHeight: tick.height
qml/Tutorial/Tutorial.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.3
18−import Ubuntu.Components 1.1
18+import Ubuntu.Components 1.3
1919
2020Item {
2121 id: root
qml/Tutorial/TutorialBottom.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.3
18−import Ubuntu.Components 1.1
18+import Ubuntu.Components 1.3
1919import Ubuntu.Gestures 0.1
2020import "../Components"
2121import "." as LocalComponents
qml/Tutorial/TutorialBottomFinish.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.3
18−import Ubuntu.Components 1.1
18+import Ubuntu.Components 1.3
1919import "." as LocalComponents
2020
2121TutorialPage {
qml/Tutorial/TutorialContent.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.3
18−import Ubuntu.Components 1.1
18+import Ubuntu.Components 1.3
1919
2020Item {
2121 id: root
qml/Tutorial/TutorialLeft.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.3
18−import Ubuntu.Components 1.1
18+import Ubuntu.Components 1.3
1919import "." as LocalComponents
2020
2121TutorialPage {
qml/Tutorial/TutorialLeftFinish.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.3
18−import Ubuntu.Components 1.1
18+import Ubuntu.Components 1.3
1919import "." as LocalComponents
2020
2121TutorialPage {
qml/Tutorial/TutorialPage.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.3
18−import Ubuntu.Components 1.1
18+import Ubuntu.Components 1.3
1919import "../Components"
2020
2121Showable {
qml/Tutorial/TutorialRight.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.3
18−import Ubuntu.Components 1.1
18+import Ubuntu.Components 1.3
1919import Ubuntu.Gestures 0.1
2020import Unity.Application 0.1
2121import "../Components"
qml/Wizard/CheckableSetting.qml+4−4
@@ -1,5 +1,5 @@
11/*
2− * Copyright (C) 2014 Canonical, Ltd.
2+ * Copyright (C) 2014,2015 Canonical, Ltd.
33 *
44 * This program is free software; you can redistribute it and/or modify
55 * it under the terms of the GNU General Public License as published by
@@ -15,8 +15,8 @@
1515 */
1616
1717import QtQuick 2.3
18−import Ubuntu.Components 1.1
19−import Ubuntu.Components.ListItems 1.0 as ListItem
18+import Ubuntu.Components 1.3
19+import Ubuntu.Components.ListItems 1.3 as ListItem
2020
2121ListItem.Empty {
2222 id: listItem
@@ -77,7 +77,7 @@ ListItem.Empty {
7777 rightMargin: listItem.rightMargin
7878 }
7979 wrapMode: Text.Wrap
80− linkColor: Theme.palette.normal.foregroundText
80+ linkColor: theme.palette.normal.foregroundText
8181 onLinkActivated: listItem.linkActivated(link)
8282 }
8383 }
qml/Wizard/Page.qml+3−3
@@ -1,5 +1,5 @@
11/*
2− * Copyright (C) 2013 Canonical, Ltd.
2+ * Copyright (C) 2013,2015 Canonical, Ltd.
33 *
44 * This program is free software; you can redistribute it and/or modify
55 * it under the terms of the GNU General Public License as published by
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.3
18−import Ubuntu.Components 1.1
18+import Ubuntu.Components 1.3
1919
2020Item {
2121 readonly property real buttonMargin: units.gu(2)
@@ -57,7 +57,7 @@ Item {
5757 }
5858 wrapMode: Text.Wrap
5959 text: title
60− color: Theme.palette.normal.baseText
60+ color: theme.palette.normal.baseText
6161 font.pixelSize: units.gu(4)
6262 }
6363
qml/Wizard/Pages.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.3
18−import Ubuntu.Components 1.1
18+import Ubuntu.Components 1.3
1919import Ubuntu.SystemSettings.SecurityPrivacy 1.0
2020import Wizard 0.1
2121import "../Components"
qml/Wizard/Pages/10-welcome.qml+2−2
@@ -15,8 +15,8 @@
1515 */
1616
1717import QtQuick 2.3
18−import Ubuntu.Components 1.1
19−import Ubuntu.Components.ListItems 0.1
18+import Ubuntu.Components 1.3
19+import Ubuntu.Components.ListItems 1.3
2020import Ubuntu.SystemSettings.LanguagePlugin 1.0
2121import Wizard 0.1
2222import ".." as LocalComponents
qml/Wizard/Pages/20-sim.qml+1−1
@@ -16,7 +16,7 @@
1616
1717import QtQuick 2.0
1818import MeeGo.QOfono 0.2
19−import Ubuntu.Components 0.1
19+import Ubuntu.Components 1.3
2020import ".." as LocalComponents
2121
2222LocalComponents.Page {
qml/Wizard/Pages/30-passwd-type.qml+6−6
@@ -1,5 +1,5 @@
11/*
2− * Copyright (C) 2014 Canonical, Ltd.
2+ * Copyright (C) 2014,2015 Canonical, Ltd.
33 *
44 * This program is free software; you can redistribute it and/or modify
55 * it under the terms of the GNU General Public License as published by
@@ -15,8 +15,8 @@
1515 */
1616
1717import QtQuick 2.3
18−import Ubuntu.Components 1.1
19−import Ubuntu.Components.ListItems 1.0
18+import Ubuntu.Components 1.3
19+import Ubuntu.Components.ListItems 1.3
2020import Ubuntu.SystemSettings.SecurityPrivacy 1.0
2121import ".." as LocalComponents
2222
@@ -111,13 +111,13 @@ LocalComponents.Page {
111111
112112 Component.onCompleted: {
113113 // A visible selected background looks bad in ListItem widgets with our theme
114− originalBackground = Theme.palette.selected.background
115− Theme.palette.selected.background = "transparent"
114+ originalBackground = theme.palette.selected.background
115+ theme.palette.selected.background = "transparent"
116116 }
117117
118118 Component.onDestruction: {
119119 // Restore original theme background
120− Theme.palette.selected.background = originalBackground
120+ theme.palette.selected.background = originalBackground
121121 }
122122 }
123123 }
qml/Wizard/Pages/40-wifi.qml+2−2
@@ -17,8 +17,8 @@
1717import QtQuick 2.0
1818import QMenuModel 0.1 as QMenuModel
1919import QtSystemInfo 5.0
20−import Ubuntu.Components 0.1
21−import Ubuntu.Components.ListItems 0.1 as ListItem
20+import Ubuntu.Components 1.3
21+import Ubuntu.Components.ListItems 1.3 as ListItem
2222import Ubuntu.Settings.Menus 0.1 as Menus
2323import ".." as LocalComponents
2424
qml/Wizard/Pages/50-location.qml+3−3
@@ -1,5 +1,5 @@
11/*
2− * Copyright (C) 2013,2014 Canonical, Ltd.
2+ * Copyright (C) 2013-2015 Canonical, Ltd.
33 *
44 * This program is free software; you can redistribute it and/or modify
55 * it under the terms of the GNU General Public License as published by
@@ -18,7 +18,7 @@ import QtQuick 2.3
1818import AccountsService 0.1
1919import QMenuModel 0.1 as QMenuModel
2020import Qt.labs.folderlistmodel 2.1
21−import Ubuntu.Components 1.1
21+import Ubuntu.Components 1.3
2222import ".." as LocalComponents
2323
2424LocalComponents.Page {
@@ -98,7 +98,7 @@ LocalComponents.Page {
9898 anchors.leftMargin: hereCheck.labelOffset
9999 anchors.right: parent.right
100100 wrapMode: Text.Wrap
101− linkColor: Theme.palette.normal.foregroundText
101+ linkColor: theme.palette.normal.foregroundText
102102 // Translators: HERE is a trademark for Nokia's location service, you probably shouldn't translate it
103103 text: i18n.tr("By selecting this option you agree to the Nokia HERE <a href='#'>terms and conditions</a>.")
104104 onLinkActivated: pageStack.load(Qt.resolvedUrl("here-terms.qml"))
qml/Wizard/Pages/60-reporting.qml+11−1
@@ -15,15 +15,25 @@
1515 */
1616
1717import QtQuick 2.0
18−import Ubuntu.Components 0.1
18+import Ubuntu.Components 1.3
19+import Ubuntu.SystemSettings.Diagnostics 1.0
1920import ".." as LocalComponents
2021
2122LocalComponents.Page {
23+ id: reportingPage
2224 objectName: "reportingPage"
2325
2426 title: i18n.tr("Improving your experience")
2527 forwardButtonSourceComponent: forwardButton
2628
29+ skipValid: false
30+ skip: !diagnostics.reportCrashes // skip the page when the system is configured not to report crashes
31+
32+ UbuntuDiagnostics {
33+ id: diagnostics
34+ Component.onCompleted: reportingPage.skipValid = true;
35+ }
36+
2737 Column {
2838 id: column
2939 anchors.fill: content
qml/Wizard/Pages/80-finished.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.0
18−import Ubuntu.Components 0.1
18+import Ubuntu.Components 1.3
1919import ".." as LocalComponents
2020
2121LocalComponents.Page {
qml/Wizard/Pages/here-terms.qml+3−3
@@ -1,5 +1,5 @@
11/*
2− * Copyright (C) 2014 Canonical, Ltd.
2+ * Copyright (C) 2014,2015 Canonical, Ltd.
33 *
44 * This program is free software; you can redistribute it and/or modify
55 * it under the terms of the GNU General Public License as published by
@@ -17,7 +17,7 @@
1717import QtQuick 2.3
1818import AccountsService 0.1
1919import Qt.labs.folderlistmodel 2.1
20−import Ubuntu.Components 1.1
20+import Ubuntu.Components 1.3
2121import Ubuntu.Web 0.2
2222import ".." as LocalComponents
2323
@@ -102,7 +102,7 @@ LocalComponents.Page {
102102 anchors.left: parent.left
103103 anchors.right: parent.right
104104 wrapMode: Text.Wrap
105− linkColor: Theme.palette.normal.foregroundText
105+ linkColor: theme.palette.normal.foregroundText
106106 onLinkActivated: {
107107 webview.url = link
108108 termsLabel.visible = false
qml/Wizard/Pages/passwd-confirm.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.3
18−import Ubuntu.Components 1.1
18+import Ubuntu.Components 1.3
1919import Ubuntu.SystemSettings.SecurityPrivacy 1.0
2020import ".." as LocalComponents
2121import "../../Components" as UnityComponents
qml/Wizard/Pages/passwd-set.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.3
18−import Ubuntu.Components 1.1
18+import Ubuntu.Components 1.3
1919import Ubuntu.SystemSettings.SecurityPrivacy 1.0
2020import ".." as LocalComponents
2121import "../../Components" as UnityComponents
qml/Wizard/StackButton.qml+3−3
@@ -1,5 +1,5 @@
11/*
2− * Copyright (C) 2014 Canonical, Ltd.
2+ * Copyright (C) 2014,2015 Canonical, Ltd.
33 *
44 * This program is free software; you can redistribute it and/or modify
55 * it under the terms of the GNU General Public License as published by
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.3
18−import Ubuntu.Components 1.1
18+import Ubuntu.Components 1.3
1919
2020AbstractButton {
2121 id: stackButton
@@ -32,7 +32,7 @@ AbstractButton {
3232 anchors.verticalCenter: parent.verticalCenter
3333 anchors.left: parent.left
3434 anchors.right: parent.right
35− color: enabled ? Theme.palette.selected.backgroundText : Qt.darker(Theme.palette.selected.backgroundText, 1.5)
35+ color: enabled ? theme.palette.selected.backgroundText : Qt.darker(theme.palette.selected.backgroundText, 1.5)
3636 text: {
3737 if (backArrow) {
3838 // Translators: This is the arrow for "Back" buttons
qml/Wizard/Wizard.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.3
18−import Ubuntu.Components 1.1
18+import Ubuntu.Components 1.3
1919import Wizard 0.1
2020import "../Components"
2121
tests/CMakeLists.txt+1
@@ -132,3 +132,4 @@ add_subdirectory(libs)
132132add_subdirectory(plugins)
133133add_subdirectory(qmltests)
134134add_subdirectory(whitespace)
135+add_subdirectory(sdk)
tests/autopilot/unity8/dash.py+3−3
@@ -158,7 +158,7 @@ class Dash(ubuntuuitoolkit.UbuntuUIToolkitCustomProxyObjectBase):
158158 def enter_search_query(self, query, keyboard):
159159 current_header = self._get_current_page_header()
160160 search_button = \
161− current_header.select_single(objectName="search_header_button")
161+ current_header.select_single(objectName="search_action_button")
162162 self.pointing_device.move(
163163 search_button.globalRect.x + search_button.width / 2,
164164 search_button.globalRect.y + search_button.height / 2)
@@ -224,7 +224,7 @@ class GenericScopeView(ubuntuuitoolkit.UbuntuUIToolkitCustomProxyObjectBase):
224224 """
225225 category_element = self._get_category_element(category)
226226 icon = category_element.wait_select_single(
227− 'AbstractButton', title=title)
227+ 'UCAbstractButton', title=title)
228228 list_view = self.select_single(
229229 ListViewWithPageHeader, objectName='categoryListView')
230230 list_view.swipe_child_into_view(icon)
@@ -247,7 +247,7 @@ class GenericScopeView(ubuntuuitoolkit.UbuntuUIToolkitCustomProxyObjectBase):
247247 """
248248 category_element = self._get_category_element(category)
249249 see_all = category_element.select_single(objectName='seeAll')
250− application_cards = category_element.select_many('AbstractButton')
250+ application_cards = category_element.select_many('UCAbstractButton')
251251
252252 application_cards = sorted(
253253 (card for card in application_cards
tests/plugins/Dash/cardcreator/1.res+7−8
@@ -2,7 +2,7 @@ AbstractButton {
22 id: root;
33 property var components;
44 property var cardData;
5− property var artShapeBorderSource: undefined;
5+ property string artShapeStyle: "inset";
66 property real fontScale: 1.0;
77 property var scopeStyle: null;
88 property int titleAlignment: Text.AlignLeft;
@@ -14,7 +14,6 @@ AbstractButton {
1414 implicitWidth: childrenRect.width;
1515 enabled: true;
1616
17−onArtShapeBorderSourceChanged: { if (artShapeBorderSource !== undefined && artShapeLoader.item) artShapeLoader.item.borderSource = artShapeBorderSource; }
1817readonly property size artShapeSize: artShapeLoader.item ? Qt.size(artShapeLoader.item.width, artShapeLoader.item.height) : Qt.size(-1, -1);
1918Item {
2019 id: artShapeHolder;
@@ -30,10 +29,9 @@ Item {
3029 sourceComponent: Item {
3130 id: artShape;
3231 objectName: "artShape";
33− property bool doShapeItem: components["art"]["conciergeMode"] !== true;
32+ readonly property bool doShapeItem: components["art"]["conciergeMode"] !== true;
3433 visible: image.status == Image.Ready;
3534 readonly property alias image: artImage;
36− property alias borderSource: artShapeShape.borderSource;
3735 ShaderEffectSource {
3836 id: artShapeSource;
3937 sourceItem: artImage;
@@ -42,16 +40,17 @@ Item {
4240 height: 1;
4341 hideSource: doShapeItem;
4442 }
45− Shape {
43+ UbuntuShape {
4644 id: artShapeShape;
47− image: artShapeSource;
45+ source: artShapeSource;
4846 anchors.fill: parent;
4947 visible: doShapeItem;
5048 radius: "medium";
49+ aspect: root.artShapeStyle === "inset" ? UbuntuShape.Inset : UbuntuShape.Flat;
5150 }
5251 readonly property real fixedArtShapeSizeAspect: (root.fixedArtShapeSize.height > 0 && root.fixedArtShapeSize.width > 0) ? root.fixedArtShapeSize.width / root.fixedArtShapeSize.height : -1;
5352 readonly property real aspect: fixedArtShapeSizeAspect > 0 ? fixedArtShapeSizeAspect : components !== undefined ? components["art"]["aspect-ratio"] : 1;
54− Component.onCompleted: { updateWidthHeightBindings(); if (artShapeBorderSource !== undefined) borderSource = artShapeBorderSource; }
53+ Component.onCompleted: { updateWidthHeightBindings(); }
5554 Connections { target: root; onFixedArtShapeSizeChanged: updateWidthHeightBindings(); }
5655 function updateWidthHeightBindings() {
5756 if (root.fixedArtShapeSize.height > 0 && root.fixedArtShapeSize.width > 0) {
@@ -87,7 +86,7 @@ Label {
8786 wrapMode: Text.Wrap;
8887 maximumLineCount: 2;
8988 font.pixelSize: Math.round(FontUtils.sizeToPixels(fontSize) * fontScale);
90− color: root.scopeStyle ? root.scopeStyle.foreground : Theme.palette.normal.baseText;
89+ color: root.scopeStyle ? root.scopeStyle.foreground : theme.palette.normal.baseText;
9190 visible: showHeader ;
9291 width: undefined;
9392 text: root.title;
tests/plugins/Dash/cardcreator/2.res+9−8
@@ -2,7 +2,7 @@ AbstractButton {
22 id: root;
33 property var components;
44 property var cardData;
5− property var artShapeBorderSource: undefined;
5+ property string artShapeStyle: "inset";
66 property real fontScale: 1.0;
77 property var scopeStyle: null;
88 property int titleAlignment: Text.AlignLeft;
@@ -23,11 +23,12 @@ Loader {
2323 sourceComponent: UbuntuShape {
2424 objectName: "background";
2525 radius: "medium";
26− color: getColor(0) || "white";
27− gradientColor: getColor(1) || color;
28− anchors.fill: parent;
29− image: backgroundImage.source ? backgroundImage : null;
30− property real luminance: Style.luminance(color);
26+ backgroundColor: getColor(0) || "white";
27+ secondaryBackgroundColor: getColor(1) || backgroundColor;
28+ backgroundMode: UbuntuShape.VerticalGradient;
29+ anchors.fill: parent;
30+ source: backgroundImage.source ? backgroundImage : null;
31+ property real luminance: Style.luminance(backgroundColor);
3132 property Image backgroundImage: Image {
3233 objectName: "backgroundImage";
3334 source: {
@@ -88,7 +89,7 @@ CroppedImageMinimumSourceSize {
8889 wrapMode: Text.Wrap;
8990 maximumLineCount: 2;
9091 font.pixelSize: Math.round(FontUtils.sizeToPixels(fontSize) * fontScale);
91− color: backgroundLoader.active && backgroundLoader.item && root.scopeStyle ? root.scopeStyle.getTextColor(backgroundLoader.item.luminance) : (backgroundLoader.item && backgroundLoader.item.luminance > 0.7 ? Theme.palette.normal.baseText : "white");
92+ color: backgroundLoader.active && backgroundLoader.item && root.scopeStyle ? root.scopeStyle.getTextColor(backgroundLoader.item.luminance) : (backgroundLoader.item && backgroundLoader.item.luminance > 0.7 ? theme.palette.normal.baseText : "white");
9293 visible: showHeader ;
9394 width: undefined;
9495 text: root.title;
@@ -108,7 +109,7 @@ CroppedImageMinimumSourceSize {
108109 maximumLineCount: 1;
109110 fontSize: "x-small";
110111 font.pixelSize: Math.round(FontUtils.sizeToPixels(fontSize) * fontScale);
111− color: backgroundLoader.active && backgroundLoader.item && root.scopeStyle ? root.scopeStyle.getTextColor(backgroundLoader.item.luminance) : (backgroundLoader.item && backgroundLoader.item.luminance > 0.7 ? Theme.palette.normal.baseText : "white");
112+ color: backgroundLoader.active && backgroundLoader.item && root.scopeStyle ? root.scopeStyle.getTextColor(backgroundLoader.item.luminance) : (backgroundLoader.item && backgroundLoader.item.luminance > 0.7 ? theme.palette.normal.baseText : "white");
112113 visible: titleLabel.visible && titleLabel.text;
113114 text: cardData && cardData["subtitle"] || "";
114115 font.weight: Font.Light;
tests/plugins/Dash/cardcreator/3.res+8−9
@@ -2,7 +2,7 @@ AbstractButton {
22 id: root;
33 property var components;
44 property var cardData;
5− property var artShapeBorderSource: undefined;
5+ property string artShapeStyle: "inset";
66 property real fontScale: 1.0;
77 property var scopeStyle: null;
88 property int titleAlignment: Text.AlignLeft;
@@ -14,7 +14,6 @@ AbstractButton {
1414 implicitWidth: childrenRect.width;
1515 enabled: true;
1616
17−onArtShapeBorderSourceChanged: { if (artShapeBorderSource !== undefined && artShapeLoader.item) artShapeLoader.item.borderSource = artShapeBorderSource; }
1817readonly property size artShapeSize: artShapeLoader.item ? Qt.size(artShapeLoader.item.width, artShapeLoader.item.height) : Qt.size(-1, -1);
1918Item {
2019 id: artShapeHolder;
@@ -30,10 +29,9 @@ Item {
3029 sourceComponent: Item {
3130 id: artShape;
3231 objectName: "artShape";
33− property bool doShapeItem: components["art"]["conciergeMode"] !== true;
32+ readonly property bool doShapeItem: components["art"]["conciergeMode"] !== true;
3433 visible: image.status == Image.Ready;
3534 readonly property alias image: artImage;
36− property alias borderSource: artShapeShape.borderSource;
3735 ShaderEffectSource {
3836 id: artShapeSource;
3937 sourceItem: artImage;
@@ -42,16 +40,17 @@ Item {
4240 height: 1;
4341 hideSource: doShapeItem;
4442 }
45− Shape {
43+ UbuntuShape {
4644 id: artShapeShape;
47− image: artShapeSource;
45+ source: artShapeSource;
4846 anchors.fill: parent;
4947 visible: doShapeItem;
5048 radius: "medium";
49+ aspect: root.artShapeStyle === "inset" ? UbuntuShape.Inset : UbuntuShape.Flat;
5150 }
5251 readonly property real fixedArtShapeSizeAspect: (root.fixedArtShapeSize.height > 0 && root.fixedArtShapeSize.width > 0) ? root.fixedArtShapeSize.width / root.fixedArtShapeSize.height : -1;
5352 readonly property real aspect: fixedArtShapeSizeAspect > 0 ? fixedArtShapeSizeAspect : components !== undefined ? components["art"]["aspect-ratio"] : 1;
54− Component.onCompleted: { updateWidthHeightBindings(); if (artShapeBorderSource !== undefined) borderSource = artShapeBorderSource; }
53+ Component.onCompleted: { updateWidthHeightBindings(); }
5554 Connections { target: root; onFixedArtShapeSizeChanged: updateWidthHeightBindings(); }
5655 function updateWidthHeightBindings() {
5756 if (root.fixedArtShapeSize.height > 0 && root.fixedArtShapeSize.width > 0) {
@@ -87,7 +86,7 @@ Label {
8786 wrapMode: Text.Wrap;
8887 maximumLineCount: 2;
8988 font.pixelSize: Math.round(FontUtils.sizeToPixels(fontSize) * fontScale);
90− color: root.scopeStyle ? root.scopeStyle.foreground : Theme.palette.normal.baseText;
89+ color: root.scopeStyle ? root.scopeStyle.foreground : theme.palette.normal.baseText;
9190 visible: showHeader ;
9291 width: undefined;
9392 text: root.title;
@@ -107,7 +106,7 @@ Label {
107106 maximumLineCount: 1;
108107 fontSize: "x-small";
109108 font.pixelSize: Math.round(FontUtils.sizeToPixels(fontSize) * fontScale);
110− color: root.scopeStyle ? root.scopeStyle.foreground : Theme.palette.normal.baseText;
109+ color: root.scopeStyle ? root.scopeStyle.foreground : theme.palette.normal.baseText;
111110 visible: titleLabel.visible && titleLabel.text;
112111 text: cardData && cardData["subtitle"] || "";
113112 font.weight: Font.Light;
tests/plugins/Dash/cardcreator/4.res+3−3
@@ -2,7 +2,7 @@ AbstractButton {
22 id: root;
33 property var components;
44 property var cardData;
5− property var artShapeBorderSource: undefined;
5+ property string artShapeStyle: "inset";
66 property real fontScale: 1.0;
77 property var scopeStyle: null;
88 property int titleAlignment: Text.AlignLeft;
@@ -72,7 +72,7 @@ Label {
7272 wrapMode: Text.Wrap;
7373 maximumLineCount: 2;
7474 font.pixelSize: Math.round(FontUtils.sizeToPixels(fontSize) * fontScale);
75− color: root.scopeStyle ? root.scopeStyle.foreground : Theme.palette.normal.baseText;
75+ color: root.scopeStyle ? root.scopeStyle.foreground : theme.palette.normal.baseText;
7676 visible: showHeader ;
7777 width: undefined;
7878 text: root.title;
@@ -92,7 +92,7 @@ Label {
9292 maximumLineCount: 1;
9393 fontSize: "x-small";
9494 font.pixelSize: Math.round(FontUtils.sizeToPixels(fontSize) * fontScale);
95− color: root.scopeStyle ? root.scopeStyle.foreground : Theme.palette.normal.baseText;
95+ color: root.scopeStyle ? root.scopeStyle.foreground : theme.palette.normal.baseText;
9696 visible: titleLabel.visible && titleLabel.text;
9797 text: cardData && cardData["subtitle"] || "";
9898 font.weight: Font.Light;
tests/plugins/Dash/cardcreator/5.res+18−45
@@ -2,7 +2,7 @@ AbstractButton {
22 id: root;
33 property var components;
44 property var cardData;
5− property var artShapeBorderSource: undefined;
5+ property string artShapeStyle: "inset";
66 property real fontScale: 1.0;
77 property var scopeStyle: null;
88 property int titleAlignment: Text.AlignLeft;
@@ -14,7 +14,6 @@ AbstractButton {
1414 implicitWidth: childrenRect.width;
1515 enabled: false;
1616
17−onArtShapeBorderSourceChanged: { if (artShapeBorderSource !== undefined && artShapeLoader.item) artShapeLoader.item.borderSource = artShapeBorderSource; }
1817readonly property size artShapeSize: artShapeLoader.item ? Qt.size(artShapeLoader.item.width, artShapeLoader.item.height) : Qt.size(-1, -1);
1918Item {
2019 id: artShapeHolder;
@@ -30,10 +29,9 @@ Item {
3029 sourceComponent: Item {
3130 id: artShape;
3231 objectName: "artShape";
33− property bool doShapeItem: components["art"]["conciergeMode"] !== true;
32+ readonly property bool doShapeItem: components["art"]["conciergeMode"] !== true;
3433 visible: image.status == Image.Ready;
3534 readonly property alias image: artImage;
36− property alias borderSource: artShapeShape.borderSource;
3735 ShaderEffectSource {
3836 id: artShapeSource;
3937 sourceItem: artImage;
@@ -42,16 +40,17 @@ Item {
4240 height: 1;
4341 hideSource: doShapeItem;
4442 }
45− Shape {
43+ UbuntuShape {
4644 id: artShapeShape;
47− image: artShapeSource;
45+ source: artShapeSource;
4846 anchors.fill: parent;
4947 visible: doShapeItem;
5048 radius: "medium";
49+ aspect: root.artShapeStyle === "inset" ? UbuntuShape.Inset : UbuntuShape.Flat;
5150 }
5251 readonly property real fixedArtShapeSizeAspect: (root.fixedArtShapeSize.height > 0 && root.fixedArtShapeSize.width > 0) ? root.fixedArtShapeSize.width / root.fixedArtShapeSize.height : -1;
5352 readonly property real aspect: fixedArtShapeSizeAspect > 0 ? fixedArtShapeSizeAspect : components !== undefined ? components["art"]["aspect-ratio"] : 1;
54− Component.onCompleted: { updateWidthHeightBindings(); if (artShapeBorderSource !== undefined) borderSource = artShapeBorderSource; }
53+ Component.onCompleted: { updateWidthHeightBindings(); }
5554 Connections { target: root; onFixedArtShapeSizeChanged: updateWidthHeightBindings(); }
5655 function updateWidthHeightBindings() {
5756 if (root.fixedArtShapeSize.height > 0 && root.fixedArtShapeSize.width > 0) {
@@ -75,44 +74,18 @@ Item {
7574 }
7675Loader {
7776 id: overlayLoader;
78− anchors {
79− left: artShapeHolder.left;
80− right: artShapeHolder.right;
81− bottom: artShapeHolder.bottom;
82− }
83− active: artShapeLoader.active && artShapeLoader.item && artShapeLoader.item.image.status === Image.Ready || false;
77+ readonly property real overlayHeight: (fixedHeaderHeight > 0 ? fixedHeaderHeight : headerHeight) + units.gu(2);
78+ anchors.fill: artShapeHolder;
79+ active: artShapeLoader.active && artShapeLoader.item && artShapeLoader.item.image.status === Image.Ready || false;
8480 asynchronous: root.asynchronous;
8581 visible: showHeader && status == Loader.Ready;
86− sourceComponent: ShaderEffect {
82+ sourceComponent: UbuntuShapeOverlay {
8783 id: overlay;
88− height: (fixedHeaderHeight > 0 ? fixedHeaderHeight : headerHeight) + units.gu(2);
89− property real luminance: Style.luminance(overlayColor);
90− property color overlayColor: cardData && cardData["overlayColor"] || "#99000000";
91− property var source: ShaderEffectSource {
92− id: shaderSource;
93− sourceItem: artShapeLoader.item;
94− onVisibleChanged: if (visible) scheduleUpdate();
95− live: false;
96− sourceRect: Qt.rect(0, artShapeLoader.height - overlay.height, artShapeLoader.width, overlay.height);
97− }
98− vertexShader: "
99− uniform highp mat4 qt_Matrix;
100− attribute highp vec4 qt_Vertex;
101− attribute highp vec2 qt_MultiTexCoord0;
102− varying highp vec2 coord;
103− void main() {
104− coord = qt_MultiTexCoord0;
105− gl_Position = qt_Matrix * qt_Vertex;
106− }";
107− fragmentShader: "
108− varying highp vec2 coord;
109− uniform sampler2D source;
110− uniform lowp float qt_Opacity;
111− uniform highp vec4 overlayColor;
112− void main() {
113− lowp vec4 tex = texture2D(source, coord);
114− gl_FragColor = vec4(overlayColor.r, overlayColor.g, overlayColor.b, 1) * qt_Opacity * overlayColor.a * tex.a;
115− }";
84+ property real luminance: Style.luminance(overlayColor);
85+ aspect: UbuntuShape.Flat;
86+ radius: "medium";
87+ overlayColor: cardData && cardData["overlayColor"] || "#99000000";
88+ overlayRect: Qt.rect(0, 1 - overlayLoader.overlayHeight / height, 1, 1);
11689 }
11790 }
11891readonly property int headerHeight: titleLabel.height + subtitleLabel.height + subtitleLabel.anchors.topMargin;
@@ -124,14 +97,14 @@ Label {
12497 left: parent.left;
12598 leftMargin: units.gu(1);
12699 top: overlayLoader.top;
127− topMargin: units.gu(1);
100+ topMargin: units.gu(1) + overlayLoader.height - overlayLoader.overlayHeight;
128101 }
129102 elide: Text.ElideRight;
130103 fontSize: "small";
131104 wrapMode: Text.Wrap;
132105 maximumLineCount: 2;
133106 font.pixelSize: Math.round(FontUtils.sizeToPixels(fontSize) * fontScale);
134− color: root.scopeStyle && overlayLoader.item ? root.scopeStyle.getTextColor(overlayLoader.item.luminance) : (overlayLoader.item && overlayLoader.item.luminance > 0.7 ? Theme.palette.normal.baseText : "white");
107+ color: root.scopeStyle && overlayLoader.item ? root.scopeStyle.getTextColor(overlayLoader.item.luminance) : (overlayLoader.item && overlayLoader.item.luminance > 0.7 ? theme.palette.normal.baseText : "white");
135108 visible: showHeader && overlayLoader.active;
136109 width: undefined;
137110 text: root.title;
@@ -152,7 +125,7 @@ Label {
152125 maximumLineCount: 1;
153126 fontSize: "x-small";
154127 font.pixelSize: Math.round(FontUtils.sizeToPixels(fontSize) * fontScale);
155− color: root.scopeStyle && overlayLoader.item ? root.scopeStyle.getTextColor(overlayLoader.item.luminance) : (overlayLoader.item && overlayLoader.item.luminance > 0.7 ? Theme.palette.normal.baseText : "white");
128+ color: root.scopeStyle && overlayLoader.item ? root.scopeStyle.getTextColor(overlayLoader.item.luminance) : (overlayLoader.item && overlayLoader.item.luminance > 0.7 ? theme.palette.normal.baseText : "white");
156129 visible: titleLabel.visible && titleLabel.text;
157130 text: cardData && cardData["subtitle"] || "";
158131 font.weight: Font.Light;
tests/plugins/Dash/cardcreator/6.res+10−9
@@ -2,7 +2,7 @@ AbstractButton {
22 id: root;
33 property var components;
44 property var cardData;
5− property var artShapeBorderSource: undefined;
5+ property string artShapeStyle: "inset";
66 property real fontScale: 1.0;
77 property var scopeStyle: null;
88 property int titleAlignment: Text.AlignLeft;
@@ -23,11 +23,12 @@ Loader {
2323 sourceComponent: UbuntuShape {
2424 objectName: "background";
2525 radius: "medium";
26− color: getColor(0) || "white";
27− gradientColor: getColor(1) || color;
28− anchors.fill: parent;
29− image: backgroundImage.source ? backgroundImage : null;
30− property real luminance: Style.luminance(color);
26+ backgroundColor: getColor(0) || "white";
27+ secondaryBackgroundColor: getColor(1) || backgroundColor;
28+ backgroundMode: UbuntuShape.VerticalGradient;
29+ anchors.fill: parent;
30+ source: backgroundImage.source ? backgroundImage : null;
31+ property real luminance: Style.luminance(backgroundColor);
3132 property Image backgroundImage: Image {
3233 objectName: "backgroundImage";
3334 source: {
@@ -67,7 +68,7 @@ Item {
6768 wrapMode: Text.Wrap;
6869 maximumLineCount: 2;
6970 font.pixelSize: Math.round(FontUtils.sizeToPixels(fontSize) * fontScale);
70− color: backgroundLoader.active && backgroundLoader.item && root.scopeStyle ? root.scopeStyle.getTextColor(backgroundLoader.item.luminance) : (backgroundLoader.item && backgroundLoader.item.luminance > 0.7 ? Theme.palette.normal.baseText : "white");
71+ color: backgroundLoader.active && backgroundLoader.item && root.scopeStyle ? root.scopeStyle.getTextColor(backgroundLoader.item.luminance) : (backgroundLoader.item && backgroundLoader.item.luminance > 0.7 ? theme.palette.normal.baseText : "white");
7172 visible: showHeader ;
7273 width: undefined;
7374 text: root.title;
@@ -87,7 +88,7 @@ Item {
8788 maximumLineCount: 1;
8889 fontSize: "x-small";
8990 font.pixelSize: Math.round(FontUtils.sizeToPixels(fontSize) * fontScale);
90− color: backgroundLoader.active && backgroundLoader.item && root.scopeStyle ? root.scopeStyle.getTextColor(backgroundLoader.item.luminance) : (backgroundLoader.item && backgroundLoader.item.luminance > 0.7 ? Theme.palette.normal.baseText : "white");
91+ color: backgroundLoader.active && backgroundLoader.item && root.scopeStyle ? root.scopeStyle.getTextColor(backgroundLoader.item.luminance) : (backgroundLoader.item && backgroundLoader.item.luminance > 0.7 ? theme.palette.normal.baseText : "white");
9192 visible: titleLabel.visible && titleLabel.text;
9293 text: cardData && cardData["subtitle"] || "";
9394 font.weight: Font.Light;
@@ -101,7 +102,7 @@ Item {
101102 rightMargin: units.gu(1);
102103 }
103104 source: cardData && cardData["emblem"] || "";
104− color: backgroundLoader.active && backgroundLoader.item && root.scopeStyle ? root.scopeStyle.getTextColor(backgroundLoader.item.luminance) : (backgroundLoader.item && backgroundLoader.item.luminance > 0.7 ? Theme.palette.normal.baseText : "white");
105+ color: backgroundLoader.active && backgroundLoader.item && root.scopeStyle ? root.scopeStyle.getTextColor(backgroundLoader.item.luminance) : (backgroundLoader.item && backgroundLoader.item.luminance > 0.7 ? theme.palette.normal.baseText : "white");
105106 height: source != "" ? titleLabel.font.pixelSize : 0;
106107 width: implicitWidth > 0 && implicitHeight > 0 ? (implicitWidth / implicitHeight * height) : implicitWidth;
107108 }
tests/plugins/Dash/cardcreator/7.res+10−9
@@ -2,7 +2,7 @@ AbstractButton {
22 id: root;
33 property var components;
44 property var cardData;
5− property var artShapeBorderSource: undefined;
5+ property string artShapeStyle: "inset";
66 property real fontScale: 1.0;
77 property var scopeStyle: null;
88 property int titleAlignment: Text.AlignLeft;
@@ -23,11 +23,12 @@ Loader {
2323 sourceComponent: UbuntuShape {
2424 objectName: "background";
2525 radius: "medium";
26− color: getColor(0) || "white";
27− gradientColor: getColor(1) || color;
28− anchors.fill: parent;
29− image: backgroundImage.source ? backgroundImage : null;
30− property real luminance: Style.luminance(color);
26+ backgroundColor: getColor(0) || "white";
27+ secondaryBackgroundColor: getColor(1) || backgroundColor;
28+ backgroundMode: UbuntuShape.VerticalGradient;
29+ anchors.fill: parent;
30+ source: backgroundImage.source ? backgroundImage : null;
31+ property real luminance: Style.luminance(backgroundColor);
3132 property Image backgroundImage: Image {
3233 objectName: "backgroundImage";
3334 source: {
@@ -89,7 +90,7 @@ CroppedImageMinimumSourceSize {
8990 wrapMode: Text.Wrap;
9091 maximumLineCount: 2;
9192 font.pixelSize: Math.round(FontUtils.sizeToPixels(fontSize) * fontScale);
92− color: backgroundLoader.active && backgroundLoader.item && root.scopeStyle ? root.scopeStyle.getTextColor(backgroundLoader.item.luminance) : (backgroundLoader.item && backgroundLoader.item.luminance > 0.7 ? Theme.palette.normal.baseText : "white");
93+ color: backgroundLoader.active && backgroundLoader.item && root.scopeStyle ? root.scopeStyle.getTextColor(backgroundLoader.item.luminance) : (backgroundLoader.item && backgroundLoader.item.luminance > 0.7 ? theme.palette.normal.baseText : "white");
9394 visible: showHeader ;
9495 width: undefined;
9596 text: root.title;
@@ -109,7 +110,7 @@ CroppedImageMinimumSourceSize {
109110 maximumLineCount: 1;
110111 fontSize: "x-small";
111112 font.pixelSize: Math.round(FontUtils.sizeToPixels(fontSize) * fontScale);
112− color: backgroundLoader.active && backgroundLoader.item && root.scopeStyle ? root.scopeStyle.getTextColor(backgroundLoader.item.luminance) : (backgroundLoader.item && backgroundLoader.item.luminance > 0.7 ? Theme.palette.normal.baseText : "white");
113+ color: backgroundLoader.active && backgroundLoader.item && root.scopeStyle ? root.scopeStyle.getTextColor(backgroundLoader.item.luminance) : (backgroundLoader.item && backgroundLoader.item.luminance > 0.7 ? theme.palette.normal.baseText : "white");
113114 visible: titleLabel.visible && titleLabel.text;
114115 text: cardData && cardData["subtitle"] || "";
115116 font.weight: Font.Light;
@@ -122,7 +123,7 @@ CroppedImageMinimumSourceSize {
122123 rightMargin: units.gu(1);
123124 top: subtitleLabel.bottom;
124125 }
125− color: backgroundLoader.active && backgroundLoader.item && root.scopeStyle ? root.scopeStyle.getTextColor(backgroundLoader.item.luminance) : (backgroundLoader.item && backgroundLoader.item.luminance > 0.7 ? Theme.palette.normal.baseText : "white");
126+ color: backgroundLoader.active && backgroundLoader.item && root.scopeStyle ? root.scopeStyle.getTextColor(backgroundLoader.item.luminance) : (backgroundLoader.item && backgroundLoader.item.luminance > 0.7 ? theme.palette.normal.baseText : "white");
126127 fontScale: root.fontScale;
127128 model: cardData && cardData["attributes"];
128129 }
tests/plugins/Dash/cardcreator/8.res+7−6
@@ -2,7 +2,7 @@ AbstractButton {
22 id: root;
33 property var components;
44 property var cardData;
5− property var artShapeBorderSource: undefined;
5+ property string artShapeStyle: "inset";
66 property real fontScale: 1.0;
77 property var scopeStyle: null;
88 property int titleAlignment: Text.AlignLeft;
@@ -23,11 +23,12 @@ Loader {
2323 sourceComponent: UbuntuShape {
2424 objectName: "background";
2525 radius: "medium";
26− color: getColor(0) || "white";
27− gradientColor: getColor(1) || color;
26+ backgroundColor: getColor(0) || "white";
27+ secondaryBackgroundColor: getColor(1) || backgroundColor;
28+ backgroundMode: UbuntuShape.VerticalGradient;
2829 anchors.fill: parent;
29− image: backgroundImage.source ? backgroundImage : null;
30− property real luminance: Style.luminance(color);
30+ source: backgroundImage.source ? backgroundImage : null;
31+ property real luminance: Style.luminance(backgroundColor);
3132 property Image backgroundImage: Image {
3233 objectName: "backgroundImage";
3334 source: {
@@ -80,7 +81,7 @@ left: parent.left;
8081 wrapMode: Text.Wrap;
8182 maximumLineCount: 2;
8283 font.pixelSize: Math.round(FontUtils.sizeToPixels(fontSize) * fontScale);
83− color: backgroundLoader.active && backgroundLoader.item && root.scopeStyle ? root.scopeStyle.getTextColor(backgroundLoader.item.luminance) : (backgroundLoader.item && backgroundLoader.item.luminance > 0.7 ? Theme.palette.normal.baseText : "white");
84+ color: backgroundLoader.active && backgroundLoader.item && root.scopeStyle ? root.scopeStyle.getTextColor(backgroundLoader.item.luminance) : (backgroundLoader.item && backgroundLoader.item.luminance > 0.7 ? theme.palette.normal.baseText : "white");
8485 visible: showHeader ;
8586 width: parent.width - x;
8687 text: root.title;
tests/plugins/Dash/tst_CroppedImageMinimumSourceSize.qml+1−1
@@ -16,7 +16,7 @@
1616
1717import QtQuick 2.3
1818import QtTest 1.0
19−import Ubuntu.Components 1.1
19+import Ubuntu.Components 1.3
2020import Dash 0.1
2121
2222Rectangle {
tests/plugins/Dash/tst_ScopeStyle.qml+1−1
@@ -17,7 +17,7 @@
1717import QtQuick 2.2
1818import QtTest 1.0
1919import Dash 0.1
20−import Ubuntu.Components 1.1
20+import Ubuntu.Components 1.3
2121import Utils 0.1
2222
2323Rectangle {
tests/plugins/Ubuntu/Gestures/DownwardsLauncher.qml+1−1
@@ -16,7 +16,7 @@
1616
1717import QtQuick 2.0
1818import Ubuntu.Gestures 0.1
19−import Ubuntu.Components 0.1
19+import Ubuntu.Components 1.3
2020
2121Item {
2222
tests/plugins/Ubuntu/Gestures/LeftwardsLauncher.qml+1−1
@@ -16,7 +16,7 @@
1616
1717import QtQuick 2.0
1818import Ubuntu.Gestures 0.1
19−import Ubuntu.Components 0.1
19+import Ubuntu.Components 1.3
2020
2121Item {
2222 id: root
tests/plugins/Ubuntu/Gestures/RightwardsLauncher.qml+1−1
@@ -16,7 +16,7 @@
1616
1717import QtQuick 2.0
1818import Ubuntu.Gestures 0.1
19−import Ubuntu.Components 0.1
19+import Ubuntu.Components 1.3
2020
2121Item {
2222 objectName: "rightwardsLauncher"
tests/plugins/Ubuntu/Gestures/UpwardsLauncher.qml+1−1
@@ -16,7 +16,7 @@
1616
1717import QtQuick 2.0
1818import Ubuntu.Gestures 0.1
19−import Ubuntu.Components 0.1
19+import Ubuntu.Components 1.3
2020
2121Item {
2222 id: root
tests/plugins/Ubuntu/Gestures/tst_DirectionalDragArea.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.0
18−import Ubuntu.Components 0.1
18+import Ubuntu.Components 1.3
1919import Unity.Test 0.1
2020
2121Rectangle {
tests/plugins/Ubuntu/Gestures/tst_FloatingFlickable.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.0
18−import Ubuntu.Components 0.1
18+import Ubuntu.Components 1.3
1919import Ubuntu.Gestures 0.1
2020import Unity.Test 0.1
2121
tests/plugins/Ubuntu/Gestures/tst_PressedOutsideNotifier.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.0
18−import Ubuntu.Components 0.1
18+import Ubuntu.Components 1.3
1919import Ubuntu.Gestures 0.1
2020
2121/*
tests/qmltests/CMakeLists.txt+1−1
@@ -24,7 +24,7 @@ add_unity8_qmltest(Dash CardCarousel)
2424add_unity8_qmlbenchmark(Dash CardBenchmark 1000)
2525add_unity8_qmltest(Dash CardTool)
2626add_unity8_qmltest(Dash GenericScopeView)
27−add_unity8_qmltest(Dash PageHeader)
27+add_unity8_qmltest(Dash DashPageHeader)
2828add_unity8_qmltest(Dash PreviewListView)
2929add_unity8_qmltest(Dash/Previews Preview)
3030add_unity8_qmltest(Dash/Previews PreviewActions)
tests/qmltests/Components/tst_Dialogs.qml+2−2
@@ -16,7 +16,7 @@
1616
1717import QtQuick 2.2
1818import QtTest 1.0
19−import Ubuntu.Components 1.1
19+import Ubuntu.Components 1.3
2020import Unity.Test 0.1
2121
2222import "../../../qml/Components"
@@ -105,7 +105,7 @@ Rectangle {
105105 var dialogsPrivate = findInvisibleChild(dialogs, "dialogsPrivate");
106106 dialogsPrivate.showPowerDialog();
107107 var dialogLoader = findInvisibleChild(dialogs, "dialogLoader");
108− tryCompare(dialogLoader.item, "focus", true);
108+ tryCompare(dialogLoader.item.__foreground, "focus", true);
109109 }
110110 }
111111}
tests/qmltests/Components/tst_DragHandle.qml+1−1
@@ -17,7 +17,7 @@
1717import QtQuick 2.0
1818import "../../../qml/Components"
1919import "tst_DragHandle"
20−import Ubuntu.Components 0.1
20+import Ubuntu.Components 1.3
2121import Ubuntu.Gestures 0.1
2222import Unity.Test 0.1
2323
tests/qmltests/Components/tst_DragHandle/BidirectionalShowable.qml+1−1
@@ -16,7 +16,7 @@
1616
1717import QtQuick 2.0
1818import "../../../../qml/Components"
19−import Ubuntu.Components 0.1
19+import Ubuntu.Components 1.3
2020import Ubuntu.Gestures 0.1
2121
2222Item {
tests/qmltests/Components/tst_DragHandle/HorizontalShowable.qml+1−1
@@ -16,7 +16,7 @@
1616
1717import QtQuick 2.0
1818import "../../../../qml/Components"
19−import Ubuntu.Components 0.1
19+import Ubuntu.Components 1.3
2020import Ubuntu.Gestures 0.1
2121
2222Showable {
tests/qmltests/Components/tst_DragHandle/VerticalShowable.qml+1−1
@@ -16,7 +16,7 @@
1616
1717import QtQuick 2.0
1818import "../../../../qml/Components"
19−import Ubuntu.Components 0.1
19+import Ubuntu.Components 1.3
2020import Ubuntu.Gestures 0.1
2121
2222Showable {
tests/qmltests/Components/tst_LazyImage.qml+3−3
@@ -1,5 +1,5 @@
11/*
2− * Copyright 2013 Canonical Ltd.
2+ * Copyright 2013,2015 Canonical Ltd.
33 *
44 * This program is free software; you can redistribute it and/or modify
55 * it under the terms of the GNU General Public License as published by
@@ -17,7 +17,7 @@
1717import QtQuick 2.0
1818import QtTest 1.0
1919import "../../../qml/Components"
20−import Ubuntu.Components 0.1
20+import Ubuntu.Components 1.3
2121import Unity.Test 0.1 as UT
2222import "tst_LazyImage"
2323
@@ -32,7 +32,7 @@ Rectangle {
3232 rightMargin: 2 * parent.width / 3
3333 }
3434
35− color: Theme.palette.normal.baseText
35+ color: theme.palette.normal.baseText
3636
3737 Column {
3838 anchors { fill: parent; margins: units.gu(5) }
tests/qmltests/Components/tst_LazyImage/ImageControls.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.0
18−import Ubuntu.Components 0.1
18+import Ubuntu.Components 1.3
1919import "../../../../qml/Components"
2020
2121Row {
tests/qmltests/Components/tst_Lockscreen.qml+1−1
@@ -18,7 +18,7 @@ import QtQuick 2.0
1818import QtTest 1.0
1919import ".."
2020import "../../../qml/Components"
21−import Ubuntu.Components 0.1
21+import Ubuntu.Components 1.3
2222import Unity.Test 0.1 as UT
2323
2424Rectangle {
tests/qmltests/Components/tst_Rating.qml+3−3
@@ -1,5 +1,5 @@
11/*
2− * Copyright 2013 Canonical Ltd.
2+ * Copyright 2013,2015 Canonical Ltd.
33 *
44 * This program is free software; you can redistribute it and/or modify
55 * it under the terms of the GNU General Public License as published by
@@ -17,14 +17,14 @@
1717import QtQuick 2.0
1818import QtTest 1.0
1919import "../../../qml/Components"
20−import Ubuntu.Components 0.1
20+import Ubuntu.Components 1.3
2121import Unity.Test 0.1 as UT
2222
2323Rectangle {
2424 id: root
2525 width: units.gu(40)
2626 height: units.gu(10)
27− color: Theme.palette.selected.background
27+ color: theme.palette.selected.background
2828
2929 Rating {
3030 id: rating
tests/qmltests/Components/tst_ResponsiveGridView.qml+2−2
@@ -18,8 +18,8 @@ import QtQuick 2.0
1818import QtTest 1.0
1919import ".."
2020import "../../../qml/Components"
21−import Ubuntu.Components.ListItems 0.1 as ListItem
22−import Ubuntu.Components 0.1
21+import Ubuntu.Components.ListItems 1.3 as ListItem
22+import Ubuntu.Components 1.3
2323import Unity.Test 0.1 as UT
2424
2525Item {
tests/qmltests/Components/tst_ResponsiveVerticalJournal.qml+2−2
@@ -18,8 +18,8 @@ import QtQuick 2.0
1818import QtTest 1.0
1919import ".."
2020import "../../../qml/Components"
21−import Ubuntu.Components.ListItems 0.1 as ListItem
22−import Ubuntu.Components 0.1
21+import Ubuntu.Components.ListItems 1.3 as ListItem
22+import Ubuntu.Components 1.3
2323import Utils 0.1
2424import Unity.Test 0.1 as UT
2525
tests/qmltests/Components/tst_Showable.qml+1−1
@@ -16,7 +16,7 @@
1616
1717import QtQuick 2.0
1818import QtTest 1.0
19−import Ubuntu.Components 0.1
19+import Ubuntu.Components 1.3
2020import Unity.Test 0.1 as UT
2121import ".."
2222import "../../../qml/Components"
tests/qmltests/Dash/Previews/tst_Preview.qml+2−2
@@ -1,5 +1,5 @@
11/*
2− * Copyright 2014 Canonical Ltd.
2+ * Copyright 2014,2015 Canonical Ltd.
33 *
44 * This program is free software; you can redistribute it and/or modify
55 * it under the terms of the GNU General Public License as published by
@@ -24,7 +24,7 @@ Rectangle {
2424 id: root
2525 width: units.gu(60)
2626 height: units.gu(60)
27− color: Theme.palette.selected.background
27+ color: theme.palette.selected.background
2828
2929 Item {
3030 id: shell
tests/qmltests/Dash/Previews/tst_PreviewActions.qml+1−1
@@ -18,7 +18,7 @@ import QtQuick 2.0
1818import QtTest 1.0
1919import "../../../../qml/Dash/Previews"
2020import Unity.Test 0.1 as UT
21−import Ubuntu.Components 0.1
21+import Ubuntu.Components 1.3
2222
2323
2424Rectangle {
tests/qmltests/Dash/Previews/tst_PreviewAudioPlayback.qml+3−3
@@ -1,5 +1,5 @@
11/*
2− * Copyright 2014 Canonical Ltd.
2+ * Copyright 2014,2015 Canonical Ltd.
33 *
44 * This program is free software; you can redistribute it and/or modify
55 * it under the terms of the GNU General Public License as published by
@@ -16,7 +16,7 @@
1616
1717import QtQuick 2.0
1818import QtTest 1.0
19−import Ubuntu.Components 0.1
19+import Ubuntu.Components 1.3
2020import "../../../../qml/Dash/Previews"
2121import Unity.Test 0.1 as UT
2222import QtMultimedia 5.0
@@ -25,7 +25,7 @@ Rectangle {
2525 id: root
2626 width: units.gu(60)
2727 height: units.gu(80)
28− color: Theme.palette.selected.background
28+ color: theme.palette.selected.background
2929
3030 property var tracksModel0: {
3131 "tracks": [ ]
tests/qmltests/Dash/Previews/tst_PreviewComment.qml+1−1
@@ -16,7 +16,7 @@
1616
1717import QtQuick 2.0
1818import QtTest 1.0
19−import Ubuntu.Components 1.1
19+import Ubuntu.Components 1.3
2020import "../../../../qml/Dash/Previews"
2121import Unity.Test 0.1 as UT
2222
tests/qmltests/Dash/Previews/tst_PreviewCommentInput.qml+1−1
@@ -16,7 +16,7 @@
1616
1717import QtQuick 2.0
1818import QtTest 1.0
19−import Ubuntu.Components 1.1
19+import Ubuntu.Components 1.3
2020import "../../../../qml/Dash/Previews"
2121import Unity.Test 0.1 as UT
2222
tests/qmltests/Dash/Previews/tst_PreviewExpandable.qml+3−3
@@ -1,5 +1,5 @@
11/*
2− * Copyright 2014 Canonical Ltd.
2+ * Copyright 2014,2015 Canonical Ltd.
33 *
44 * This program is free software; you can redistribute it and/or modify
55 * it under the terms of the GNU General Public License as published by
@@ -16,7 +16,7 @@
1616
1717import QtQuick 2.0
1818import QtTest 1.0
19−import Ubuntu.Components 0.1
19+import Ubuntu.Components 1.3
2020import "../../../../qml/Dash/Previews"
2121import Unity.Test 0.1 as UT
2222
@@ -24,7 +24,7 @@ Rectangle {
2424 id: root
2525 width: units.gu(40)
2626 height: units.gu(80)
27− color: Theme.palette.selected.background
27+ color: theme.palette.selected.background
2828
2929 property string longText: "Lorem ipsum dolor sit amet, consectetur adipiscing elit.\nPhasellus a mi vitae augue rhoncus lobortis ut rutrum metus.\nCurabitur tortor leo, tristique sed mollis quis, condimentum venenatis nibh.\nLorem ipsum dolor sit amet, consectetur adipiscing elit.\nPhasellus a mi vitae augue rhoncus lobortis ut rutrum metus.\nCurabitur tortor leo, tristique sed mollis quis, condimentum venenatis nibh."
3030 property string longText2: "This is a very very very long text. 1 This is a very very very long text. 2 This is a very very very long text. 3 This is a very very very long text. 4 This is a very very very long text. 5 This is a very very very long text. 6 This is a very very very long text. 7 This is a very very very long text. 8 This is a very very very long text. 9 This is a very very very long text. 10 This is a very very very long text. 11 This is a very very very long text."
tests/qmltests/Dash/Previews/tst_PreviewHeader.qml+1−1
@@ -149,7 +149,7 @@ Rectangle {
149149 tryCompareFunction(function() { return findChild(previewHeader, "mascotShape") != null }, true);
150150 var mascot = findChild(previewHeader, "mascotShape");
151151 tryCompare(mascot, "visible", true);
152− tryCompare(mascot.image, "status", Image.Ready);
152+ tryCompare(mascot.source, "status", Image.Ready);
153153 }
154154 }
155155}
tests/qmltests/Dash/Previews/tst_PreviewIconActions.qml+2−2
@@ -18,7 +18,7 @@ import QtQuick 2.0
1818import QtTest 1.0
1919import "../../../../qml/Dash/Previews"
2020import Unity.Test 0.1 as UT
21−import Ubuntu.Components 0.1
21+import Ubuntu.Components 1.3
2222
2323
2424Rectangle {
@@ -104,7 +104,7 @@ Rectangle {
104104
105105 var button = findChild(root, "button" + buttonId);
106106 var image = findChildsByType(button, "QQuickImage")[0];
107− var label = findChildsByType(button, "Label")[0];
107+ var label = findChildsByType(button, "UCLabel")[0];
108108
109109 compare(image.source, buttonIcon);
110110 compare(label.text, buttonLabel);
tests/qmltests/Dash/Previews/tst_PreviewPayments.qml+1−1
@@ -18,7 +18,7 @@ import QtQuick 2.0
1818import QtTest 1.0
1919import "../../../../qml/Dash/Previews"
2020import Unity.Test 0.1 as UT
21−import Ubuntu.Components 0.1
21+import Ubuntu.Components 1.3
2222
2323Rectangle {
2424 id: root
tests/qmltests/Dash/Previews/tst_PreviewProgress.qml+1−1
@@ -18,7 +18,7 @@ import QtQuick 2.0
1818import QtTest 1.0
1919import "../../../../qml/Dash/Previews"
2020import Unity.Test 0.1 as UT
21−import Ubuntu.Components 0.1
21+import Ubuntu.Components 1.3
2222
2323Rectangle {
2424 id: root
tests/qmltests/Dash/Previews/tst_PreviewRatingDisplay.qml+3−3
@@ -1,5 +1,5 @@
11/*
2− * Copyright 2014 Canonical Ltd.
2+ * Copyright 2014,2015 Canonical Ltd.
33 *
44 * This program is free software; you can redistribute it and/or modify
55 * it under the terms of the GNU General Public License as published by
@@ -16,7 +16,7 @@
1616
1717import QtQuick 2.0
1818import QtTest 1.0
19−import Ubuntu.Components 0.1
19+import Ubuntu.Components 1.3
2020import "../../../../qml/Dash/Previews"
2121import Unity.Test 0.1 as UT
2222
@@ -24,7 +24,7 @@ Rectangle {
2424 id: root
2525 width: units.gu(40)
2626 height: units.gu(80)
27− color: Theme.palette.selected.background
27+ color: theme.palette.selected.background
2828
2929 property var reviewsModel0: {
3030 "reviews": [ ]
tests/qmltests/Dash/Previews/tst_PreviewRatingEdit.qml+3−3
@@ -1,5 +1,5 @@
11/*
2− * Copyright 2014 Canonical Ltd.
2+ * Copyright 2014,2015 Canonical Ltd.
33 *
44 * This program is free software; you can redistribute it and/or modify
55 * it under the terms of the GNU General Public License as published by
@@ -16,7 +16,7 @@
1616
1717import QtQuick 2.0
1818import QtTest 1.0
19−import Ubuntu.Components 0.1
19+import Ubuntu.Components 1.3
2020import "../../../../qml/Dash/Previews"
2121import Unity.Test 0.1 as UT
2222
@@ -24,7 +24,7 @@ Rectangle {
2424 id: root
2525 width: units.gu(40)
2626 height: units.gu(80)
27− color: Theme.palette.selected.background
27+ color: theme.palette.selected.background
2828
2929 property var widgetData0: { "visible": "both", "required": "both", author: "Some dude", rating: 4.5, review: "Very cool app" }
3030
tests/qmltests/Dash/Previews/tst_PreviewRatingInput.qml+3−3
@@ -1,5 +1,5 @@
11/*
2− * Copyright 2014 Canonical Ltd.
2+ * Copyright 2014,2015 Canonical Ltd.
33 *
44 * This program is free software; you can redistribute it and/or modify
55 * it under the terms of the GNU General Public License as published by
@@ -16,7 +16,7 @@
1616
1717import QtQuick 2.0
1818import QtTest 1.0
19−import Ubuntu.Components 0.1
19+import Ubuntu.Components 1.3
2020import "../../../../qml/Dash/Previews"
2121import Unity.Test 0.1 as UT
2222
@@ -24,7 +24,7 @@ Rectangle {
2424 id: root
2525 width: units.gu(40)
2626 height: units.gu(80)
27− color: Theme.palette.selected.background
27+ color: theme.palette.selected.background
2828
2929 property real validInputRating: 1
3030 property real invalidInputRating: -1
tests/qmltests/Dash/Previews/tst_PreviewTable.qml+3−3
@@ -1,5 +1,5 @@
11/*
2− * Copyright 2014 Canonical Ltd.
2+ * Copyright 2014,2015 Canonical Ltd.
33 *
44 * This program is free software; you can redistribute it and/or modify
55 * it under the terms of the GNU General Public License as published by
@@ -16,7 +16,7 @@
1616
1717import QtQuick 2.0
1818import QtTest 1.0
19−import Ubuntu.Components 0.1
19+import Ubuntu.Components 1.3
2020import "../../../../qml/Dash/Previews"
2121import Unity.Test 0.1 as UT
2222
@@ -24,7 +24,7 @@ Rectangle {
2424 id: root
2525 width: units.gu(40)
2626 height: units.gu(80)
27− color: Theme.palette.selected.background
27+ color: theme.palette.selected.background
2828
2929 property var widgetDataComplete: {
3030 "title": "Title here longa long long long long long long long long long long",
tests/qmltests/Dash/Previews/tst_PreviewTextSummary.qml+3−3
@@ -1,5 +1,5 @@
11/*
2− * Copyright 2014 Canonical Ltd.
2+ * Copyright 2014,2015 Canonical Ltd.
33 *
44 * This program is free software; you can redistribute it and/or modify
55 * it under the terms of the GNU General Public License as published by
@@ -16,7 +16,7 @@
1616
1717import QtQuick 2.0
1818import QtTest 1.0
19−import Ubuntu.Components 0.1
19+import Ubuntu.Components 1.3
2020import "../../../../qml/Dash/Previews"
2121import Unity.Test 0.1 as UT
2222
@@ -24,7 +24,7 @@ Rectangle {
2424 id: root
2525 width: units.gu(40)
2626 height: units.gu(80)
27− color: Theme.palette.selected.background
27+ color: theme.palette.selected.background
2828
2929 property var widgetDataComplete: {
3030 "title": "Title here",
tests/qmltests/Dash/Previews/tst_PreviewWidgetFactory.qml+2−2
@@ -1,5 +1,5 @@
11/*
2− * Copyright 2014 Canonical Ltd.
2+ * Copyright 2014,2015 Canonical Ltd.
33 *
44 * This program is free software; you can redistribute it and/or modify
55 * it under the terms of the GNU General Public License as published by
@@ -23,7 +23,7 @@ Rectangle {
2323 id: root
2424 width: units.gu(60)
2525 height: units.gu(80)
26− color: Theme.palette.selected.background
26+ color: theme.palette.selected.background
2727
2828 PreviewWidgetFactory {
2929 id: factory
tests/qmltests/Dash/ScopeSettings/tst_ScopeSettingBoolean.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.0
18−import Ubuntu.Components 1.1
18+import Ubuntu.Components 1.3
1919import QtTest 1.0
2020import "../../../../qml/Dash/ScopeSettings"
2121import Unity.Test 0.1 as UT
tests/qmltests/Dash/ScopeSettings/tst_ScopeSettingList.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.0
18−import Ubuntu.Components 1.1
18+import Ubuntu.Components 1.3
1919import QtTest 1.0
2020import "../../../../qml/Dash/ScopeSettings"
2121import Unity.Test 0.1 as UT
tests/qmltests/Dash/ScopeSettings/tst_ScopeSettingNumber.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.0
18−import Ubuntu.Components 1.1
18+import Ubuntu.Components 1.3
1919import QtTest 1.0
2020import "../../../../qml/Dash/ScopeSettings"
2121import Unity.Test 0.1 as UT
tests/qmltests/Dash/ScopeSettings/tst_ScopeSettingString.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.0
18−import Ubuntu.Components 1.1
18+import Ubuntu.Components 1.3
1919import QtTest 1.0
2020import "../../../../qml/Dash/ScopeSettings"
2121import Unity.Test 0.1 as UT
tests/qmltests/Dash/ScopeSettings/tst_ScopeSettingsWidgetFactory.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.0
18−import Ubuntu.Components 1.1
18+import Ubuntu.Components 1.3
1919import QtTest 1.0
2020import "../../../../qml/Dash/ScopeSettings"
2121import Unity.Test 0.1 as UT
tests/qmltests/Dash/tst_Card.qml+6−6
@@ -1,5 +1,5 @@
11/*
2− * Copyright (C) 2013 Canonical, Ltd.
2+ * Copyright (C) 2013,2015 Canonical, Ltd.
33 *
44 * This program is free software; you can redistribute it and/or modify
55 * it under the terms of the GNU General Public License as published by
@@ -16,7 +16,7 @@
1616
1717import QtQuick 2.0
1818import QtTest 1.0
19−import Ubuntu.Components 0.1
19+import Ubuntu.Components 1.3
2020import Unity.Test 0.1 as UT
2121import "../../../qml/Dash"
2222import "CardHelpers.js" as Helpers
@@ -443,11 +443,11 @@ Rectangle {
443443 }
444444
445445 if (data.hasOwnProperty("color")) {
446− tryCompare(background, "color", data.color);
446+ tryCompare(background, "backgroundColor", data.color);
447447 }
448448
449449 if (data.hasOwnProperty("gradientColor")) {
450− tryCompare(background, "gradientColor", data.gradientColor);
450+ tryCompare(background, "secondaryBackgroundColor", data.gradientColor);
451451 }
452452
453453 if (data.hasOwnProperty("image")) {
@@ -520,9 +520,9 @@ Rectangle {
520520 waitForRendering(selector);
521521 waitForRendering(card);
522522
523− background.color = data.tag;
523+ background.backgroundColor = data.tag;
524524
525− var fontColor = data.dark ? Theme.palette.normal.baseText : "white";
525+ var fontColor = data.dark ? theme.palette.normal.baseText : "white";
526526
527527 tryCompareFunction(function() { return Qt.colorEqual(summary.color, fontColor); }, true);
528528 tryCompareFunction(function() { return Qt.colorEqual(title.color, fontColor); }, true);
tests/qmltests/Dash/tst_CardBenchmark.qml+1−1
@@ -16,7 +16,7 @@
1616
1717import QtQuick 2.0
1818import QtTest 1.0
19−import Ubuntu.Components 0.1
19+import Ubuntu.Components 1.3
2020import Unity.Test 0.1 as UT
2121import "../../../qml/Dash"
2222import "CardHelpers.js" as Helpers
tests/qmltests/Dash/tst_CardTool.qml+1−1
@@ -16,7 +16,7 @@
1616
1717import QtQuick 2.0
1818import QtTest 1.0
19−import Ubuntu.Components 0.1
19+import Ubuntu.Components 1.3
2020import Unity.Test 0.1 as UT
2121import "../../../qml/Dash"
2222import "CardHelpers.js" as Helpers
tests/qmltests/Dash/tst_Dash.qml+2−2
@@ -17,7 +17,7 @@
1717import QtQuick 2.0
1818import QtTest 1.0
1919import "../../../qml/Dash"
20−import Ubuntu.Components 0.1
20+import Ubuntu.Components 1.3
2121import Unity.Test 0.1 as UT
2222
2323Item {
@@ -319,7 +319,7 @@ Item {
319319
320320 // Click on the store
321321 var scopesListPageHeader = findChild(scopesList, "pageHeader");
322− var searchButton = findChild(scopesListPageHeader, "store_header_button");
322+ var searchButton = findChild(scopesListPageHeader, "store_action_button");
323323 mouseClick(searchButton);
324324
325325 spy.wait();
tests/qmltests/Dash/tst_DashContent.qml+5−5
@@ -18,7 +18,7 @@ import QtQuick 2.0
1818import QtTest 1.0
1919import "../../../qml/Dash"
2020import "../../../qml/Components"
21−import Ubuntu.Components 0.1
21+import Ubuntu.Components 1.3
2222import Unity 0.2
2323import Unity.Test 0.1 as UT
2424import Utils 0.1
@@ -215,7 +215,7 @@ Item {
215215 verify(pageHeader, "Could not find the scope page header.");
216216 var innerHeader = findChild(pageHeader, "innerPageHeader");
217217 verify(innerHeader, "Could not find the scope page header.");
218− compare(innerHeader.title, scopesModel.getScope(data.index).name);
218+ compare(innerHeader.config.title, scopesModel.getScope(data.index).name);
219219 }
220220
221221 function test_is_active_data() {
@@ -552,13 +552,13 @@ Item {
552552 }
553553
554554 function getSettledButtons() {
555− var buttons = findChildsByType(dashContent, "AbstractButton");
555+ var buttons = findChildsByType(dashContent, "UCAbstractButton");
556556 wait(2500);
557− var aux = findChildsByType(dashContent, "AbstractButton");
557+ var aux = findChildsByType(dashContent, "UCAbstractButton");
558558 while (!compareArrays(aux, buttons)) {
559559 buttons = aux;
560560 wait(2500);
561− aux = findChildsByType(dashContent, "AbstractButton");
561+ aux = findChildsByType(dashContent, "UCAbstractButton");
562562 }
563563 return buttons;
564564 }
tests/qmltests/Dash/tst_PageHeader.qml → tests/qmltests/Dash/tst_DashPageHeader.qmlrenamed+4−4
@@ -1,5 +1,5 @@
11/*
2− * Copyright 2013 Canonical Ltd.
2+ * Copyright 2013,2015 Canonical Ltd.
33 *
44 * This program is free software; you can redistribute it and/or modify
55 * it under the terms of the GNU General Public License as published by
@@ -18,7 +18,7 @@ import QtQuick 2.0
1818import QtTest 1.0
1919import ".."
2020import "../../../qml/Dash"
21−import Ubuntu.Components 0.1
21+import Ubuntu.Components 1.3
2222import Unity 0.2
2323import Unity.Test 0.1 as UT
2424
@@ -244,7 +244,7 @@ Item {
244244 anchors.fill: parent
245245 spacing: units.gu(1)
246246
247− PageHeader {
247+ DashPageHeader {
248248 id: pageHeader
249249 anchors {
250250 left: parent.left
@@ -254,7 +254,7 @@ Item {
254254 searchEntryEnabled: true
255255 title: "%^$%^%^&%^&%^$%GHR%"
256256 scopeStyle: QtObject {
257− readonly property color foreground: Theme.palette.normal.baseText
257+ readonly property color foreground: theme.palette.normal.baseText
258258 readonly property url headerLogo: showImageCheckBox.checked ? pageHeader.titleImageSource : ""
259259 }
260260 showBackButton: showBackButtonCheckBox.checked
tests/qmltests/Dash/tst_GenericScopeView.qml+4−4
@@ -20,7 +20,7 @@ import Unity 0.2
2020import ".."
2121import "../../../qml/Dash"
2222import "../../../qml/Components"
23−import Ubuntu.Components 1.1
23+import Ubuntu.Components 1.3
2424import Unity.Test 0.1 as UT
2525
2626Item {
@@ -429,7 +429,7 @@ Item {
429429 // open
430430 tryCompare(testCase.subPageLoader, "open", false);
431431 tryCompare(testCase.subPageLoader, "visible", false);
432− var settings = findChild(innerHeader, "settings_header_button");
432+ var settings = findChild(innerHeader, "settings_action_button");
433433 mouseClick(settings);
434434 tryCompare(testCase.subPageLoader, "open", true);
435435 tryCompareFunction(function() { return (String(subPageLoader.source)).indexOf("ScopeSettingsPage.qml") != -1; }, true);
@@ -500,7 +500,7 @@ Item {
500500 mouseClick(seeAll0);
501501 verify(category0.expanded);
502502 tryCompare(category0, "height", category0.item.expandedHeight + seeAll0.height);
503− tryCompare(genericScopeView.categoryView, "contentY", units.gu(14));
503+ tryCompare(genericScopeView.categoryView, "contentY", units.gu(13));
504504
505505 scrollToEnd();
506506
@@ -577,7 +577,7 @@ Item {
577577 verify(innerHeader, "Could not find the inner header");
578578
579579 expectFail("Apps", "Click scope should not have a favorite button");
580− var favoriteAction = findChild(innerHeader, "favorite_header_button");
580+ var favoriteAction = findChild(innerHeader, "favorite_action_button");
581581 verify(favoriteAction, "Could not find the favorite action.");
582582 mouseClick(favoriteAction);
583583
tests/qmltests/Dash/tst_PreviewListView.qml+4−4
@@ -1,5 +1,5 @@
11/*
2− * Copyright 2014 Canonical Ltd.
2+ * Copyright 2014,2015 Canonical Ltd.
33 *
44 * This program is free software; you can redistribute it and/or modify
55 * it under the terms of the GNU General Public License as published by
@@ -16,7 +16,7 @@
1616
1717import QtQuick 2.0
1818import QtTest 1.0
19−import Ubuntu.Components 1.1
19+import Ubuntu.Components 1.3
2020import "../../../qml/Dash"
2121import Unity.Test 0.1 as UT
2222import Unity 0.2 as Unity
@@ -26,7 +26,7 @@ Rectangle {
2626 id: root
2727 width: units.gu(60)
2828 height: units.gu(60)
29− color: Theme.palette.selected.background
29+ color: theme.palette.selected.background
3030
3131 Unity.MockScope {
3232 id: mockScope
@@ -91,7 +91,7 @@ Rectangle {
9191 var header = findChild(listView, "innerPageHeader");
9292 verify(header, "Could not find the preview header");
9393
94− compare(header.title, "Mock Scope");
94+ compare(header.config.title, "Mock Scope");
9595 }
9696
9797 function test_header_style() {
tests/qmltests/Greeter/TestView.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.3
18−import Ubuntu.Components 1.1
18+import Ubuntu.Components 1.3
1919import "../Components"
2020
2121Item {
tests/qmltests/Greeter/tst_Clock.qml+1−1
@@ -18,7 +18,7 @@ import QtQuick 2.0
1818import QtTest 1.0
1919import ".."
2020import "../../../qml/Greeter"
21−import Ubuntu.Components 0.1
21+import Ubuntu.Components 1.3
2222import Unity.Indicators 0.1 as Indicators
2323import Unity.Test 0.1 as UT
2424
tests/qmltests/Greeter/tst_Greeter.qml+1−1
@@ -18,7 +18,7 @@ import QtQuick 2.0
1818import QtTest 1.0
1919import ".."
2020import "../../../qml/Greeter"
21−import Ubuntu.Components 0.1
21+import Ubuntu.Components 1.3
2222import AccountsService 0.1
2323import GSettings 1.0
2424import IntegratedLightDM 0.1 as LightDM
tests/qmltests/Greeter/tst_Infographics.qml+1−1
@@ -18,7 +18,7 @@ import QtQuick 2.0
1818import QtTest 1.0
1919import ".."
2020import "../../../qml/Greeter"
21−import Ubuntu.Components 0.1
21+import Ubuntu.Components 1.3
2222import Unity.Test 0.1 as UT
2323import IntegratedLightDM 0.1 as LightDM
2424
tests/qmltests/Greeter/tst_NarrowView.qml+1−1
@@ -19,7 +19,7 @@ import QtTest 1.0
1919import ".."
2020import "../../../qml/Greeter"
2121import IntegratedLightDM 0.1 as LightDM
22−import Ubuntu.Components 0.1
22+import Ubuntu.Components 1.3
2323import Unity.Test 0.1 as UT
2424
2525Item {
tests/qmltests/Greeter/tst_WideView.qml+1−1
@@ -19,7 +19,7 @@ import QtTest 1.0
1919import ".."
2020import "../../../qml/Greeter"
2121import IntegratedLightDM 0.1 as LightDM
22−import Ubuntu.Components 0.1
22+import Ubuntu.Components 1.3
2323import Unity.Test 0.1 as UT
2424
2525Item {
tests/qmltests/Launcher/tst_Launcher.qml+25−14
@@ -18,7 +18,7 @@ import QtQuick 2.0
1818import QtQuick.Layouts 1.1
1919import QtTest 1.0
2020import Unity.Test 0.1
21−import Ubuntu.Components 1.1
21+import Ubuntu.Components 1.3
2222import ".."
2323import "../../../qml/Launcher"
2424import Unity.Launcher 0.1
@@ -200,7 +200,10 @@ Item {
200200 verify(!!panel);
201201
202202 // wait until it gets fully extended
203− tryCompare(panel, "x", 0);
203+ // a tryCompare doesn't work since
204+ // compare(-0.000005917593600024418, 0);
205+ // is true and in this case we want exactly 0 or will have pain later on
206+ tryCompareFunction( function(){ return panel.x === 0; }, true );
204207 tryCompare(launcher, "state", "visible");
205208 }
206209
@@ -479,16 +482,21 @@ Item {
479482 tryCompare(findChild(draggedItem, "dropIndicator"), "opacity", 0)
480483
481484 // Doing longpress
482− var currentMouseX = draggedItem.width / 2
483− var currentMouseY = draggedItem.height / 2
484− mousePress(draggedItem, currentMouseX, currentMouseY)
485+ var mouseOnLauncher = launcher.mapFromItem(draggedItem, draggedItem.width / 2, draggedItem.height / 2)
486+ var currentMouseX = mouseOnLauncher.x
487+ var currentMouseY = mouseOnLauncher.y
488+ var newMouseX = currentMouseX
489+ var newMouseY = currentMouseY
490+ mousePress(launcher, currentMouseX, currentMouseY)
485491 // DraggedItem needs to hide and fakeDragItem become visible
486492 tryCompare(draggedItem, "itemOpacity", 0)
487493 tryCompare(fakeDragItem, "visible", true)
488494
489495 // Dragging a bit (> 1.5 gu)
490− currentMouseX -= units.gu(2)
491− mouseMove(draggedItem, currentMouseX, currentMouseY)
496+ newMouseX -= units.gu(2)
497+ mouseFlick(launcher, currentMouseX, currentMouseY, newMouseX, newMouseY, false, false, 100)
498+ currentMouseX = newMouseX
499+
492500 // Other items need to expand and become 0.6 opaque
493501 tryCompare(item0, "angle", 0)
494502 tryCompare(item0, "itemOpacity", 0.6)
@@ -496,18 +504,21 @@ Item {
496504 if (data.fullDrag) {
497505 // Dragging a bit more
498506 if (data.orientation == ListView.Horizontal) {
499− currentMouseX -= units.gu(15)
500− mouseMove(draggedItem, currentMouseX, currentMouseY, 100)
507+ newMouseX += units.gu(15)
508+ mouseFlick(launcher, currentMouseX, currentMouseY, newMouseX, newMouseY, false, false, 100)
509+ currentMouseX = newMouseX
501510
502511 tryCompare(findChild(draggedItem, "dropIndicator"), "opacity", 1)
503512 tryCompare(draggedItem, "height", units.gu(1))
504513
505514 // Dragging downwards. Item needs to move in the model
506− currentMouseY -= initialItemHeight * 1.5
507− mouseMove(draggedItem, currentMouseX, currentMouseY)
515+ newMouseY -= initialItemHeight * 1.5
516+ mouseFlick(launcher, currentMouseX, currentMouseY, newMouseX, newMouseY, false, false, 100)
517+ currentMouseY = newMouseY
508518 } else if (data.orientation == ListView.Vertical) {
509− currentMouseY -= initialItemHeight * 1.5
510− mouseMove(draggedItem, currentMouseX, currentMouseY, 100)
519+ newMouseY -= initialItemHeight * 1.5
520+ mouseFlick(launcher, currentMouseX, currentMouseY, newMouseX, newMouseY, false, false, 100)
521+ currentMouseY = newMouseY
511522
512523 tryCompare(findChild(draggedItem, "dropIndicator"), "opacity", 1)
513524 tryCompare(draggedItem, "height", units.gu(1))
@@ -519,7 +530,7 @@ Item {
519530 }
520531
521532 // Releasing and checking if initial values are restored
522− mouseRelease(draggedItem)
533+ mouseRelease(launcher)
523534 tryCompare(findChild(draggedItem, "dropIndicator"), "opacity", 0)
524535 tryCompare(draggedItem, "itemOpacity", 1)
525536 tryCompare(fakeDragItem, "visible", false)
tests/qmltests/Notifications/tst_Notifications.qml+1−1
@@ -20,7 +20,7 @@ import QtTest 1.0
2020import ".."
2121import "../../../qml/Notifications"
2222import "../../../qml/Components/UnityInputInfo"
23−import Ubuntu.Components 1.2
23+import Ubuntu.Components 1.3
2424import Unity.Test 0.1
2525import Unity.Notifications 1.0
2626import QtMultimedia 5.0
tests/qmltests/Notifications/tst_OptionToggle.qml+1−1
@@ -21,7 +21,7 @@ import QtQuick 2.0
2121import QtTest 1.0
2222import ".."
2323import "../../../qml/Notifications"
24−import Ubuntu.Components 0.1
24+import Ubuntu.Components 1.3
2525import Unity.Test 0.1
2626import Unity.Notifications 1.0
2727import QtMultimedia 5.0
tests/qmltests/Notifications/tst_SwipeToAct.qml+1−1
@@ -20,7 +20,7 @@ import QtTest 1.0
2020import ".."
2121import "../../../qml/Notifications"
2222import "../../../qml/Components/UnityInputInfo"
23−import Ubuntu.Components 0.1
23+import Ubuntu.Components 1.3
2424import Unity.Test 0.1
2525import Unity.Notifications 1.0
2626
tests/qmltests/Notifications/tst_VisualSnapDecisionsQueue.qml+1−1
@@ -18,7 +18,7 @@ import QtQuick 2.0
1818import QtTest 1.0
1919import ".."
2020import "../../../qml/Notifications"
21−import Ubuntu.Components 0.1
21+import Ubuntu.Components 1.3
2222import Unity.Test 0.1
2323import Unity.Notifications 1.0
2424
tests/qmltests/Panel/IndicatorTest.qml+1−1
@@ -18,7 +18,7 @@ import QtQuick 2.1
1818import QtQuick.Layouts 1.1
1919import QtTest 1.0
2020import "../../../qml/Panel"
21−import Ubuntu.Components 0.1
21+import Ubuntu.Components 1.3
2222import Unity.Test 0.1 as UT
2323import Unity.Indicators 0.1 as Indicators
2424
tests/qmltests/Panel/Indicators/tst_IndicatorsLight.qml+1−1
@@ -18,7 +18,7 @@ import QtQuick 2.0
1818import QtQuick.Layouts 1.1
1919import Unity.Test 0.1 as UT
2020import Unity.Indicators 0.1 as Indicators
21−import Ubuntu.Components 1.1
21+import Ubuntu.Components 1.3
2222import Powerd 0.1
2323import Lights 0.1
2424import QMenuModel 0.1
tests/qmltests/Panel/tst_IndicatorItem.qml+1−1
@@ -17,7 +17,7 @@
1717import QtQuick 2.1
1818import QtQuick.Layouts 1.1
1919import QtTest 1.0
20−import Ubuntu.Components 0.1
20+import Ubuntu.Components 1.3
2121import Unity.Test 0.1 as UT
2222import "../../../qml/Panel"
2323
tests/qmltests/Panel/tst_IndicatorItemRow.qml+1−1
@@ -18,7 +18,7 @@ import QtQuick 2.1
1818import QtQuick.Layouts 1.1
1919import QtTest 1.0
2020import "../../../qml/Panel"
21−import Ubuntu.Components 0.1
21+import Ubuntu.Components 1.3
2222import Unity.Test 0.1 as UT
2323import Unity.Indicators 0.1 as Indicators
2424
tests/qmltests/Panel/tst_IndicatorsBar.qml+1−1
@@ -18,7 +18,7 @@ import QtQuick 2.1
1818import QtQuick.Layouts 1.1
1919import QtTest 1.0
2020import "../../../qml/Panel"
21−import Ubuntu.Components 0.1
21+import Ubuntu.Components 1.3
2222import Unity.Test 0.1 as UT
2323import Unity.Indicators 0.1 as Indicators
2424
tests/qmltests/Panel/tst_IndicatorsMenu.qml+1−1
@@ -18,7 +18,7 @@ import QtQuick 2.1
1818import QtQuick.Layouts 1.1
1919import QtTest 1.0
2020import "../../../qml/Panel"
21−import Ubuntu.Components 0.1
21+import Ubuntu.Components 1.3
2222import Unity.Test 0.1 as UT
2323import Unity.Indicators 0.1 as Indicators
2424
tests/qmltests/Panel/tst_Panel.qml+1−1
@@ -18,7 +18,7 @@ import QtQuick 2.1
1818import QtQuick.Layouts 1.1
1919import QtTest 1.0
2020import Unity.Test 0.1
21−import Ubuntu.Components 0.1
21+import Ubuntu.Components 1.3
2222import Unity.Application 0.1
2323import Unity.Indicators 0.1 as Indicators
2424import Ubuntu.Telephony 0.1 as Telephony
tests/qmltests/Stages/ApplicationCheckBox.qml+1−1
@@ -16,7 +16,7 @@
1616
1717import QtQuick 2.0
1818import QtQuick.Layouts 1.1
19−import Ubuntu.Components 1.1
19+import Ubuntu.Components 1.3
2020import Unity.Application 0.1
2121
2222RowLayout {
tests/qmltests/Stages/RecursingChildSessionControl.qml+1−1
@@ -16,7 +16,7 @@
1616
1717import QtQuick 2.1
1818import QtQuick.Layouts 1.1
19−import Ubuntu.Components 0.1
19+import Ubuntu.Components 1.3
2020import Unity.Application 0.1
2121
2222ColumnLayout {
tests/qmltests/Stages/tst_ApplicationWindow.qml+2−2
@@ -20,8 +20,8 @@ import QtTest 1.0
2020import Unity.Test 0.1 as UT
2121import ".."
2222import "../../../qml/Stages"
23−import Ubuntu.Components 0.1
24−import Ubuntu.Components.ListItems 1.0 as ListItem
23+import Ubuntu.Components 1.3
24+import Ubuntu.Components.ListItems 1.3 as ListItem
2525import Unity.Application 0.1
2626
2727Rectangle {
tests/qmltests/Stages/tst_DesktopStage.qml+2−2
@@ -16,8 +16,8 @@
1616
1717import QtQuick 2.0
1818import QtTest 1.0
19−import Ubuntu.Components 1.1
20−import Ubuntu.Components.ListItems 1.0 as ListItem
19+import Ubuntu.Components 1.3
20+import Ubuntu.Components.ListItems 1.3 as ListItem
2121import Unity.Application 0.1
2222import Unity.Test 0.1
2323import Utils 0.1
tests/qmltests/Stages/tst_PhoneStage.qml+1−1
@@ -19,7 +19,7 @@ import QtTest 1.0
1919import Unity.Test 0.1 as UT
2020import ".."
2121import "../../../qml/Stages"
22−import Ubuntu.Components 0.1
22+import Ubuntu.Components 1.3
2323import Unity.Application 0.1
2424
2525Item {
tests/qmltests/Stages/tst_SessionContainer.qml+1−1
@@ -18,7 +18,7 @@ import QtQuick 2.1
1818import QtQuick.Layouts 1.1
1919import QtTest 1.0
2020import Unity.Test 0.1 as UT
21−import Ubuntu.Components 0.1
21+import Ubuntu.Components 1.3
2222import Unity.Application 0.1
2323import "../../../qml/Stages"
2424
tests/qmltests/Stages/tst_Splash.qml+1−1
@@ -19,7 +19,7 @@ import QtTest 1.0
1919import Unity.Test 0.1 as UT
2020import ".."
2121import "../../../qml/Stages"
22−import Ubuntu.Components 0.1
22+import Ubuntu.Components 1.3
2323import Unity.Application 0.1
2424
2525Rectangle {
tests/qmltests/Stages/tst_SpreadDelegate.qml+2−2
@@ -19,8 +19,8 @@ import QtTest 1.0
1919import Unity.Test 0.1 as UT
2020import ".."
2121import "../../../qml/Stages"
22−import Ubuntu.Components 0.1
23−import Ubuntu.Components.ListItems 1.0 as ListItem
22+import Ubuntu.Components 1.3
23+import Ubuntu.Components.ListItems 1.3 as ListItem
2424import Unity.Application 0.1
2525
2626Rectangle {
tests/qmltests/Stages/tst_SurfaceContainer.qml+1−1
@@ -19,7 +19,7 @@ import QtTest 1.0
1919import Unity.Test 0.1
2020import ".."
2121import "../../../qml/Stages"
22−import Ubuntu.Components 0.1
22+import Ubuntu.Components 1.3
2323import Unity.Application 0.1
2424
2525Rectangle {
tests/qmltests/Stages/tst_TabletStage.qml+2−2
@@ -16,8 +16,8 @@
1616
1717import QtQuick 2.0
1818import QtTest 1.0
19−import Ubuntu.Components 1.1
20−import Ubuntu.Components.ListItems 1.0 as ListItem
19+import Ubuntu.Components 1.3
20+import Ubuntu.Components.ListItems 1.3 as ListItem
2121import Unity.Application 0.1
2222import Unity.Test 0.1
2323
tests/qmltests/Stages/tst_WindowMoveResizeArea.qml+2−2
@@ -20,8 +20,8 @@ import QtTest 1.0
2020import Unity.Test 0.1 as UT
2121import ".."
2222import "../../../qml/Stages"
23−import Ubuntu.Components 0.1
24−import Ubuntu.Components.ListItems 1.0 as ListItem
23+import Ubuntu.Components 1.3
24+import Ubuntu.Components.ListItems 1.3 as ListItem
2525import Unity.Application 0.1
2626
2727Item {
tests/qmltests/Tutorial/tst_Tutorial.qml+1−1
@@ -18,7 +18,7 @@ import QtQuick 2.0
1818import QtTest 1.0
1919import AccountsService 0.1
2020import IntegratedLightDM 0.1 as LightDM
21−import Ubuntu.Components 1.1
21+import Ubuntu.Components 1.3
2222import Unity.Application 0.1
2323import Unity.Test 0.1 as UT
2424
tests/qmltests/Wizard/tst_Wizard.qml+15−14
@@ -19,7 +19,7 @@ import QtTest 1.0
1919import AccountsService 0.1
2020import MeeGo.QOfono 0.2
2121import QMenuModel 0.1
22−import Ubuntu.Components 1.1
22+import Ubuntu.Components 1.3
2323import Ubuntu.SystemSettings.SecurityPrivacy 1.0
2424import Unity.Test 0.1 as UT
2525import Wizard 0.1
@@ -96,7 +96,7 @@ Item {
9696 }
9797
9898 Component.onCompleted: {
99− Theme.name = "Ubuntu.Components.Themes.SuruGradient";
99+ theme.name = "Ubuntu.Components.Themes.SuruGradient";
100100 setup();
101101 }
102102
@@ -158,13 +158,16 @@ Item {
158158 return stack.currentPage;
159159 }
160160
161− function goToPage(name, skipSim, skipLocation) {
161+ function goToPage(name, skipSim, skipLocation, skipReporting) {
162162 if (skipSim === undefined) {
163163 skipSim = false;
164164 }
165165 if (skipLocation === undefined) {
166166 skipLocation = false;
167167 }
168+ if (skipReporting === undefined) {
169+ skipReporting = false;
170+ }
168171
169172 var page = waitForPage("languagePage");
170173 if (name === page.objectName) return page;
@@ -191,9 +194,11 @@ Item {
191194 tap(findChild(page, "forwardButton"));
192195 }
193196
194− page = waitForPage("reportingPage");
195− if (name === page.objectName) return page;
196− tap(findChild(page, "forwardButton"));
197+ if (!skipReporting) {
198+ page = waitForPage("reportingPage");
199+ if (name === page.objectName) return page;
200+ tap(findChild(page, "forwardButton"));
201+ }
197202
198203 page = waitForPage("finishedPage");
199204 if (name === page.objectName) return page;
@@ -337,8 +342,6 @@ Item {
337342 tap(findChild(page, "forwardButton"));
338343 page = waitForPage("locationPage");
339344 tap(findChild(page, "forwardButton"));
340− page = waitForPage("reportingPage");
341− tap(findChild(page, "forwardButton"));
342345 page = waitForPage("finishedPage");
343346 tap(findChild(page, "forwardButton"));
344347
@@ -390,8 +393,6 @@ Item {
390393 tap(findChild(page, "forwardButton"));
391394 page = waitForPage("locationPage");
392395 tap(findChild(page, "forwardButton"));
393− page = waitForPage("reportingPage");
394− tap(findChild(page, "forwardButton"));
395396 page = waitForPage("finishedPage");
396397 tap(findChild(page, "forwardButton"));
397398
@@ -402,7 +403,7 @@ Item {
402403 }
403404
404405 function test_passwdSwipe() {
405− goToPage(null);
406+ goToPage(null, false, false, true);
406407
407408 tryCompare(setSecuritySpy, "count", 1);
408409 compare(setSecuritySpy.signalArguments[0][0], "");
@@ -412,12 +413,12 @@ Item {
412413
413414 function test_locationSkipNoPath() {
414415 AccountsService.hereLicensePath = "";
415− goToPage("reportingPage", false, true);
416+ goToPage("finishedPage", false, true, true);
416417 }
417418
418419 function test_locationSkipNoFiles() {
419420 AccountsService.hereLicensePath = Qt.resolvedUrl("nolicenses");
420− goToPage("reportingPage", false, true);
421+ goToPage("finishedPage", false, true, true);
421422 }
422423
423424 function test_locationWaitOnPath() {
@@ -434,7 +435,7 @@ Item {
434435 compare(stack.currentPage.skipValid, false);
435436
436437 AccountsService.hereLicensePath = "";
437− waitForPage("reportingPage");
438+ waitForPage("finishedPage", false, false, true);
438439 }
439440
440441 function test_locationGpsOnly() {
tests/qmltests/tst_OrientedShell.qml+2−2
@@ -17,8 +17,8 @@
1717import QtQuick 2.0
1818import QtQuick.Layouts 1.1
1919import QtTest 1.0
20−import Ubuntu.Components 1.1
21−import Ubuntu.Components.ListItems 1.0 as ListItem
20+import Ubuntu.Components 1.3
21+import Ubuntu.Components.ListItems 1.3 as ListItem
2222import Unity.Application 0.1
2323import Unity.Test 0.1
2424import IntegratedLightDM 0.1 as LightDM
tests/qmltests/tst_Shell.qml+2−2
@@ -19,8 +19,8 @@ import QtTest 1.0
1919import AccountsService 0.1
2020import GSettings 1.0
2121import IntegratedLightDM 0.1 as LightDM
22−import Ubuntu.Components 1.1
23−import Ubuntu.Components.ListItems 1.0 as ListItem
22+import Ubuntu.Components 1.3
23+import Ubuntu.Components.ListItems 1.3 as ListItem
2424import Ubuntu.Telephony 0.1 as Telephony
2525import Unity.Application 0.1
2626import Unity.Connectivity 0.1
tests/qmltests/tst_ShellWithPin.qml+1−1
@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.0
18−import Ubuntu.Components 1.0
18+import Ubuntu.Components 1.3
1919import QtTest 1.0
2020import AccountsService 0.1
2121import GSettings 1.0
tests/sdk/CMakeLists.txtnew file+6
@@ -0,0 +1,6 @@
1+
2+#
3+# Test that all imports for Ubuntu.Components use the wanted version
4+#
5+
6+add_test(SDK ${CMAKE_CURRENT_SOURCE_DIR}/check_sdk.py ${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR})
tests/sdk/check_sdk.pynew file+114
@@ -0,0 +1,114 @@
1+#! /usr/bin/env python3
2+
3+#
4+# Copyright (C) 2015 Canonical Ltd
5+#
6+# This program is free software: you can redistribute it and/or modify
7+# it under the terms of the GNU General Public License version 3 as
8+# published by the Free Software Foundation.
9+#
10+# This program is distributed in the hope that it will be useful,
11+# but WITHOUT ANY WARRANTY; without even the implied warranty of
12+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+# GNU General Public License for more details.
14+#
15+# You should have received a copy of the GNU General Public License
16+# along with this program. If not, see <http://www.gnu.org/licenses/>.
17+#
18+# Authored by: Michi Henning <michi.henning@canonical.com>
19+#
20+
21+#
22+# Little helper program to test that all source files import
23+# the wanted SDK version
24+#
25+# Usage: check_sdk.py directory [ignore_prefix]
26+#
27+# The directory specifies the (recursive) location of the source files. Any
28+# files with a path that starts with ignore_prefix are not checked. This is
29+# useful to exclude files that are generated into the build directory.
30+#
31+# See the file_pat definition below for a list of files that are checked.
32+#
33+
34+from __future__ import print_function
35+
36+import argparse
37+import os
38+import re
39+import sys
40+
41+
42+# Print msg on stderr, preceded by program name and followed by newline
43+def error(msg):
44+ print(os.path.basename(sys.argv[0]) + ": " + msg, file=sys.stderr)
45+
46+
47+# Function to raise errors encountered by os.walk
48+def raise_error(e):
49+ raise e
50+
51+# Scan lines in file_path for bad SDK version. For each file,
52+# print the line numbers that have SDK version issues
53+
54+ubuntu_components_pat = re.compile(r'.*import Ubuntu.Components.*')
55+ubuntu_good_components_pat = re.compile(r'.*import Ubuntu.Components.*1\.3.*')
56+
57+def scan_for_bad_sdk(file_path):
58+ global ubuntu_components_pat
59+ errors = []
60+ with open(file_path, 'rt', encoding='utf-8') as ifile:
61+ for lino, line in enumerate(ifile, start=1):
62+ if ubuntu_components_pat.match(line) and not ubuntu_good_components_pat.match(line):
63+ errors.append(lino)
64+ if 0 < len(errors) <= 10:
65+ if len(errors) > 1:
66+ plural = 's'
67+ else:
68+ plural = ''
69+ print(
70+ "%s: bad SDK Version in line%s %s" % (
71+ file_path, plural, ", ".join((str(i) for i in errors))))
72+ elif errors:
73+ print("%s: bad SDK Version in multiple lines" % file_path)
74+ return bool(errors)
75+
76+# Parse args
77+
78+parser = argparse.ArgumentParser(
79+ description='Test that source files contain the wanted SDK version.')
80+parser.add_argument(
81+ 'dir', nargs=1,
82+ help='The directory to (recursively) search for source files')
83+parser.add_argument(
84+ 'ignore_prefix', nargs='?', default=None,
85+ help='Ignore source files with a path that starts with the given prefix.')
86+args = parser.parse_args()
87+
88+# Files we want to check for SDK version.
89+
90+file_pat = (
91+ r'(.*\.(js|qml)$)')
92+pat = re.compile(file_pat)
93+
94+# Find all the files with matching file extension in the specified
95+# directory and check them
96+
97+directory = os.path.abspath(args.dir[0])
98+ignore = args.ignore_prefix and os.path.abspath(args.ignore_prefix) or None
99+
100+found_bad_sdk = False
101+try:
102+ for root, dirs, files in os.walk(directory, onerror=raise_error):
103+ for file in files:
104+ path = os.path.join(root, file)
105+ if not (ignore and path.startswith(ignore)) and pat.match(file):
106+ if scan_for_bad_sdk(path):
107+ found_bad_sdk = True
108+
109+except OSError as e:
110+ error("cannot create file list for \"" + dir + "\": " + e.strerror)
111+ sys.exit(1)
112+
113+if found_bad_sdk:
114+ sys.exit(1)
tests/utils/modules/Unity/Test/MouseTouchEmulationCheckbox.qml+1−1
@@ -16,7 +16,7 @@
1616
1717import QtQuick 2.0
1818import QtQuick.Layouts 1.1
19−import Ubuntu.Components 1.1
19+import Ubuntu.Components 1.3
2020import Unity.Test 0.1
2121
2222RowLayout {
tests/utils/modules/Unity/Test/UnityTestCase.qml+1−1
@@ -16,7 +16,7 @@
1616
1717import QtQuick 2.0
1818import QtTest 1.0
19−import Ubuntu.Components 0.1
19+import Ubuntu.Components 1.3
2020import Unity.Test 0.1 as UT
2121
2222TestCase {