Merge lp:~aacid/unity8/scope_settings_keyboard_scroll into lp:unity8
- scope_settings_keyboard_scroll
- Merge into trunk
| Status: | Superseded | ||||
|---|---|---|---|---|---|
| Proposed branch: | lp:~aacid/unity8/scope_settings_keyboard_scroll | ||||
| Merge into: | lp:unity8 | ||||
| Diff against target: |
5866 lines (+855/-673) (has conflicts) 262 files modified
debian/control (+4/-0) plugins/Dash/CardAttributes.qml (+2/-2) plugins/Dash/CardCreator.js (+25/-51) plugins/Dash/ScopeStyle.qml (+1/-1) 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 (+4/-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 (+19/-11) qml/Components/ListItems/Header.qml (+1/-1) qml/Components/ListViewOSKScroller.qml (+53/-0) 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/DashPageHeader.qml (+11/-15) qml/Dash/GenericScopeView.qml (+5/-5) qml/Dash/PreviewListView.qml (+2/-2) qml/Dash/Previews/Preview.qml (+12/-19) 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 (+4/-1) qml/Dash/Previews/PreviewWidget.qml (+3/-0) qml/Dash/Previews/PreviewWidgetFactory.qml (+3/-0) qml/Dash/Previews/PreviewZoomableImage.qml (+10/-8) qml/Dash/PullToRefreshScopeStyle.qml (+2/-2) qml/Dash/ScopeSettings/ScopeSetting.qml (+10/-1) qml/Dash/ScopeSettings/ScopeSettingBoolean.qml (+4/-4) qml/Dash/ScopeSettings/ScopeSettingList.qml (+2/-2) qml/Dash/ScopeSettings/ScopeSettingString.qml (+11/-5) qml/Dash/ScopeSettings/ScopeSettingsWidgetFactory.qml (+4/-0) qml/Dash/ScopeSettingsPage.qml (+11/-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 (+11/-11) 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 (+8/-3) 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 (+36/-28) 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 (+4/-0) qml/Stages/WindowResizeArea.qml (+1/-1) 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 (+1/-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/-0) 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 (+5/-5) 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/Previews/tst_PreviewZoomableImage.qml (+1/-1) 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_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 (+1/-1) 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_WindowResizeArea.qml (+2/-2) tests/qmltests/Tutorial/tst_Tutorial.qml (+1/-1) tests/qmltests/Wizard/tst_Wizard.qml (+2/-2) 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/-0) tests/sdk/check_sdk.py (+114/-0) tests/utils/modules/Unity/Test/MouseTouchEmulationCheckbox.qml (+1/-1) tests/utils/modules/Unity/Test/UnityTestCase.qml (+1/-1) Text conflict in debian/control Text conflict in qml/Components/Dialogs.qml Text conflict in qml/Panel/Indicators/MenuItemFactory.qml Text conflict in qml/Stages/WindowDecoration.qml |
||||
| To merge this branch: | bzr merge lp:~aacid/unity8/scope_settings_keyboard_scroll | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Michael Terry | 2015-10-19 | Approve on 2015-10-22 | |
| PS Jenkins bot | continuous-integration | Needs Fixing on 2015-10-19 | |
|
Review via email:
|
|||
This proposal has been superseded by a proposal from 2015-10-26.
Commit Message
Make the scope settings list scroll to text visible area
Description of the Change
* Are there any related MPs required for this MP to build/function as expected?
No
* Did you perform an exploratory manual test run of your code change and any related functionality?
Yes
* Did you make sure that your branch does not contain spurious tags?
Yes
* If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?
N/A
* If you changed the UI, has there been a design review?
N/A
| Michael Terry (mterry) wrote : | # |
We talked a while on IRC about some nitpicks I had with the code you moved. But you disagreed and it's code you are merely moving, so I won't press the issue.
* Did you perform an exploratory manual test run of the code change and any related functionality?
Yup, works great.
* Did CI run pass? If not, please explain why.
No, for unrelated reasons.
* Did you make sure that the branch does not contain spurious tags?
Yes
- 2006. By Albert Astals Cid on 2015-10-26
-
Merge wide-preview-
zoomable- videoplayback - 2007. By Albert Astals Cid on 2015-10-26
-
Move to 2.4
- 2008. By Albert Astals Cid on 2015-10-27
-
Merge wide-preview-
zoomable- videoplayback
Unmerged revisions
Preview Diff
| 1 | === modified file 'debian/control' |
| 2 | --- debian/control 2015-10-21 11:51:11 +0000 |
| 3 | +++ debian/control 2015-10-26 15:26:58 +0000 |
| 4 | @@ -50,7 +50,11 @@ |
| 5 | qtdeclarative5-private-dev (>= 5.2.1), |
| 6 | qtdeclarative5-qtmultimedia-plugin, |
| 7 | qtdeclarative5-ubuntu-settings-components (>= 0.6), |
| 8 | +<<<<<<< TREE |
| 9 | qtdeclarative5-ubuntu-ui-toolkit-plugin (>= 1.3.1627) | qtdeclarative5-ubuntu-ui-toolkit-plugin-gles (>= 1.3.1627), |
| 10 | +======= |
| 11 | + qtdeclarative5-ubuntu-ui-toolkit-plugin (>= 1.3.1676) | qtdeclarative5-ubuntu-ui-toolkit-plugin-gles (>= 1.3.1676), |
| 12 | +>>>>>>> MERGE-SOURCE |
| 13 | qtdeclarative5-ubuntu-web-plugin, |
| 14 | ttf-ubuntu-font-family, |
| 15 | Standards-Version: 3.9.4 |
| 16 | |
| 17 | === modified file 'plugins/Dash/CardAttributes.qml' |
| 18 | --- plugins/Dash/CardAttributes.qml 2015-02-12 16:28:36 +0000 |
| 19 | +++ plugins/Dash/CardAttributes.qml 2015-10-26 15:26:58 +0000 |
| 20 | @@ -16,7 +16,7 @@ |
| 21 | |
| 22 | import QtQuick 2.2 |
| 23 | import QtQuick.Layouts 1.1 |
| 24 | -import Ubuntu.Components 1.1 |
| 25 | +import Ubuntu.Components 1.3 |
| 26 | |
| 27 | GridLayout { |
| 28 | id: grid |
| 29 | @@ -27,7 +27,7 @@ |
| 30 | columns: 2 + repeater.count % 2 |
| 31 | rowSpacing: units.gu(.5) |
| 32 | property alias model: repeater.model |
| 33 | - property color color: Theme.palette.normal.baseText |
| 34 | + property color color: theme.palette.normal.baseText |
| 35 | property real fontScale: 1.0 |
| 36 | |
| 37 | Repeater { |
| 38 | |
| 39 | === modified file 'plugins/Dash/CardCreator.js' |
| 40 | --- plugins/Dash/CardCreator.js 2015-08-31 13:29:42 +0000 |
| 41 | +++ plugins/Dash/CardCreator.js 2015-10-26 15:26:58 +0000 |
| 42 | @@ -28,11 +28,12 @@ |
| 43 | sourceComponent: UbuntuShape { \n\ |
| 44 | objectName: "background"; \n\ |
| 45 | radius: "medium"; \n\ |
| 46 | - color: getColor(0) || "white"; \n\ |
| 47 | - gradientColor: getColor(1) || color; \n\ |
| 48 | + backgroundColor: getColor(0) || "white"; \n\ |
| 49 | + secondaryBackgroundColor: getColor(1) || backgroundColor; \n\ |
| 50 | + backgroundMode: UbuntuShape.VerticalGradient; \n\ |
| 51 | anchors.fill: parent; \n\ |
| 52 | - image: backgroundImage.source ? backgroundImage : null; \n\ |
| 53 | - property real luminance: Style.luminance(color); \n\ |
| 54 | + source: backgroundImage.source ? backgroundImage : null; \n\ |
| 55 | + property real luminance: Style.luminance(backgroundColor); \n\ |
| 56 | property Image backgroundImage: Image { \n\ |
| 57 | objectName: "backgroundImage"; \n\ |
| 58 | source: { \n\ |
| 59 | @@ -52,7 +53,7 @@ |
| 60 | // %1 is used as anchors of artShapeHolder |
| 61 | // %2 is used as image width |
| 62 | // %3 is used as image height |
| 63 | -var kArtShapeHolderCode = 'Item { \n\ |
| 64 | +var kArtShapeHolderCode = 'Item { \n\ |
| 65 | id: artShapeHolder; \n\ |
| 66 | height: root.fixedArtShapeSize.height > 0 ? root.fixedArtShapeSize.height : artShapeLoader.height; \n\ |
| 67 | width: root.fixedArtShapeSize.width > 0 ? root.fixedArtShapeSize.width : artShapeLoader.width; \n\ |
| 68 | @@ -66,10 +67,9 @@ |
| 69 | sourceComponent: Item { \n\ |
| 70 | id: artShape; \n\ |
| 71 | objectName: "artShape"; \n\ |
| 72 | - property bool doShapeItem: components["art"]["conciergeMode"] !== true; \n\ |
| 73 | + readonly property bool doShapeItem: components["art"]["conciergeMode"] !== true; \n\ |
| 74 | visible: image.status == Image.Ready; \n\ |
| 75 | readonly property alias image: artImage; \n\ |
| 76 | - property alias borderSource: artShapeShape.borderSource; \n\ |
| 77 | ShaderEffectSource { \n\ |
| 78 | id: artShapeSource; \n\ |
| 79 | sourceItem: artImage; \n\ |
| 80 | @@ -78,16 +78,17 @@ |
| 81 | height: 1; \n\ |
| 82 | hideSource: doShapeItem; \n\ |
| 83 | } \n\ |
| 84 | - Shape { \n\ |
| 85 | + UbuntuShape { \n\ |
| 86 | id: artShapeShape; \n\ |
| 87 | - image: artShapeSource; \n\ |
| 88 | + source: artShapeSource; \n\ |
| 89 | anchors.fill: parent; \n\ |
| 90 | visible: doShapeItem; \n\ |
| 91 | radius: "medium"; \n\ |
| 92 | + aspect: root.artShapeStyle === "inset" ? UbuntuShape.Inset : UbuntuShape.Flat; \n\ |
| 93 | } \n\ |
| 94 | readonly property real fixedArtShapeSizeAspect: (root.fixedArtShapeSize.height > 0 && root.fixedArtShapeSize.width > 0) ? root.fixedArtShapeSize.width / root.fixedArtShapeSize.height : -1; \n\ |
| 95 | readonly property real aspect: fixedArtShapeSizeAspect > 0 ? fixedArtShapeSizeAspect : components !== undefined ? components["art"]["aspect-ratio"] : 1; \n\ |
| 96 | - Component.onCompleted: { updateWidthHeightBindings(); if (artShapeBorderSource !== undefined) borderSource = artShapeBorderSource; } \n\ |
| 97 | + Component.onCompleted: { updateWidthHeightBindings(); } \n\ |
| 98 | Connections { target: root; onFixedArtShapeSizeChanged: updateWidthHeightBindings(); } \n\ |
| 99 | function updateWidthHeightBindings() { \n\ |
| 100 | if (root.fixedArtShapeSize.height > 0 && root.fixedArtShapeSize.width > 0) { \n\ |
| 101 | @@ -112,44 +113,18 @@ |
| 102 | |
| 103 | var kOverlayLoaderCode = 'Loader { \n\ |
| 104 | id: overlayLoader; \n\ |
| 105 | - anchors { \n\ |
| 106 | - left: artShapeHolder.left; \n\ |
| 107 | - right: artShapeHolder.right; \n\ |
| 108 | - bottom: artShapeHolder.bottom; \n\ |
| 109 | - } \n\ |
| 110 | + readonly property real overlayHeight: (fixedHeaderHeight > 0 ? fixedHeaderHeight : headerHeight) + units.gu(2); \n\ |
| 111 | + anchors.fill: artShapeHolder; \n\ |
| 112 | active: artShapeLoader.active && artShapeLoader.item && artShapeLoader.item.image.status === Image.Ready || false; \n\ |
| 113 | asynchronous: root.asynchronous; \n\ |
| 114 | visible: showHeader && status == Loader.Ready; \n\ |
| 115 | - sourceComponent: ShaderEffect { \n\ |
| 116 | + sourceComponent: UbuntuShapeOverlay { \n\ |
| 117 | id: overlay; \n\ |
| 118 | - height: (fixedHeaderHeight > 0 ? fixedHeaderHeight : headerHeight) + units.gu(2); \n\ |
| 119 | property real luminance: Style.luminance(overlayColor); \n\ |
| 120 | - property color overlayColor: cardData && cardData["overlayColor"] || "#99000000"; \n\ |
| 121 | - property var source: ShaderEffectSource { \n\ |
| 122 | - id: shaderSource; \n\ |
| 123 | - sourceItem: artShapeLoader.item; \n\ |
| 124 | - onVisibleChanged: if (visible) scheduleUpdate(); \n\ |
| 125 | - live: false; \n\ |
| 126 | - sourceRect: Qt.rect(0, artShapeLoader.height - overlay.height, artShapeLoader.width, overlay.height); \n\ |
| 127 | - } \n\ |
| 128 | - vertexShader: " \n\ |
| 129 | - uniform highp mat4 qt_Matrix; \n\ |
| 130 | - attribute highp vec4 qt_Vertex; \n\ |
| 131 | - attribute highp vec2 qt_MultiTexCoord0; \n\ |
| 132 | - varying highp vec2 coord; \n\ |
| 133 | - void main() { \n\ |
| 134 | - coord = qt_MultiTexCoord0; \n\ |
| 135 | - gl_Position = qt_Matrix * qt_Vertex; \n\ |
| 136 | - }"; \n\ |
| 137 | - fragmentShader: " \n\ |
| 138 | - varying highp vec2 coord; \n\ |
| 139 | - uniform sampler2D source; \n\ |
| 140 | - uniform lowp float qt_Opacity; \n\ |
| 141 | - uniform highp vec4 overlayColor; \n\ |
| 142 | - void main() { \n\ |
| 143 | - lowp vec4 tex = texture2D(source, coord); \n\ |
| 144 | - gl_FragColor = vec4(overlayColor.r, overlayColor.g, overlayColor.b, 1) * qt_Opacity * overlayColor.a * tex.a; \n\ |
| 145 | - }"; \n\ |
| 146 | + aspect: UbuntuShape.Flat; \n\ |
| 147 | + radius: "medium"; \n\ |
| 148 | + overlayColor: cardData && cardData["overlayColor"] || "#99000000"; \n\ |
| 149 | + overlayRect: Qt.rect(0, 1 - overlayLoader.overlayHeight / height, 1, 1); \n\ |
| 150 | } \n\ |
| 151 | }\n'; |
| 152 | |
| 153 | @@ -325,7 +300,7 @@ |
| 154 | id: root; \n\ |
| 155 | property var components; \n\ |
| 156 | property var cardData; \n\ |
| 157 | - property var artShapeBorderSource: undefined; \n\ |
| 158 | + property string artShapeStyle: "inset"; \n\ |
| 159 | property real fontScale: 1.0; \n\ |
| 160 | property var scopeStyle: null; \n\ |
| 161 | property int titleAlignment: Text.AlignLeft; \n\ |
| 162 | @@ -368,7 +343,6 @@ |
| 163 | } |
| 164 | |
| 165 | if (hasArt) { |
| 166 | - code += 'onArtShapeBorderSourceChanged: { if (artShapeBorderSource !== undefined && artShapeLoader.item) artShapeLoader.item.borderSource = artShapeBorderSource; } \n'; |
| 167 | code += 'readonly property size artShapeSize: artShapeLoader.item ? Qt.size(artShapeLoader.item.width, artShapeLoader.item.height) : Qt.size(-1, -1);\n'; |
| 168 | |
| 169 | var widthCode, heightCode; |
| 170 | @@ -480,20 +454,20 @@ |
| 171 | } |
| 172 | } |
| 173 | |
| 174 | - 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")'; |
| 175 | + 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")'; |
| 176 | |
| 177 | var hasTitleContainer = hasTitle && (hasEmblem || (hasMascot && (hasSubtitle || hasAttributes))); |
| 178 | var titleSubtitleCode = ''; |
| 179 | if (hasTitle) { |
| 180 | var titleColor; |
| 181 | if (headerAsOverlay) { |
| 182 | - titleColor = 'root.scopeStyle && overlayLoader.item ? root.scopeStyle.getTextColor(overlayLoader.item.luminance) : (overlayLoader.item && overlayLoader.item.luminance > 0.7 ? Theme.palette.normal.baseText : "white")'; |
| 183 | + titleColor = 'root.scopeStyle && overlayLoader.item ? root.scopeStyle.getTextColor(overlayLoader.item.luminance) : (overlayLoader.item && overlayLoader.item.luminance > 0.7 ? theme.palette.normal.baseText : "white")'; |
| 184 | } else if (hasSummary) { |
| 185 | titleColor = 'summary.color'; |
| 186 | } else if (hasBackground) { |
| 187 | titleColor = summaryColorWithBackground; |
| 188 | } else { |
| 189 | - titleColor = 'root.scopeStyle ? root.scopeStyle.foreground : Theme.palette.normal.baseText'; |
| 190 | + titleColor = 'root.scopeStyle ? root.scopeStyle.foreground : theme.palette.normal.baseText'; |
| 191 | } |
| 192 | |
| 193 | var titleAnchors; |
| 194 | @@ -555,7 +529,7 @@ |
| 195 | titleAnchors += 'left: parent.left; \n\ |
| 196 | leftMargin: units.gu(1); \n\ |
| 197 | top: overlayLoader.top; \n\ |
| 198 | - topMargin: units.gu(1);\n'; |
| 199 | + topMargin: units.gu(1) + overlayLoader.height - overlayLoader.overlayHeight; \n'; |
| 200 | } else { |
| 201 | // Using anchors to the mascot/parent |
| 202 | titleAnchors = titleRightAnchor; |
| 203 | @@ -649,7 +623,7 @@ |
| 204 | if (hasBackground) { |
| 205 | summaryColor = summaryColorWithBackground; |
| 206 | } else { |
| 207 | - summaryColor = 'root.scopeStyle ? root.scopeStyle.foreground : Theme.palette.normal.baseText'; |
| 208 | + summaryColor = 'root.scopeStyle ? root.scopeStyle.foreground : theme.palette.normal.baseText'; |
| 209 | } |
| 210 | |
| 211 | var summaryTopMargin = (hasMascot || hasSubtitle || hasAttributes ? 'anchors.margins' : '0'); |
| 212 | @@ -698,7 +672,7 @@ |
| 213 | |
| 214 | function createCardComponent(parent, template, components) { |
| 215 | var imports = 'import QtQuick 2.2; \n\ |
| 216 | - import Ubuntu.Components 1.1; \n\ |
| 217 | + import Ubuntu.Components 1.3; \n\ |
| 218 | import Ubuntu.Settings.Components 0.1; \n\ |
| 219 | import Dash 0.1;\n\ |
| 220 | import Utils 0.1;\n'; |
| 221 | |
| 222 | === modified file 'plugins/Dash/ScopeStyle.qml' |
| 223 | --- plugins/Dash/ScopeStyle.qml 2014-11-20 11:44:44 +0000 |
| 224 | +++ plugins/Dash/ScopeStyle.qml 2015-10-26 15:26:58 +0000 |
| 225 | @@ -16,7 +16,7 @@ |
| 226 | |
| 227 | import QtQuick 2.2 |
| 228 | import Utils 0.1 |
| 229 | -import Ubuntu.Components 1.1 |
| 230 | +import Ubuntu.Components 1.3 |
| 231 | |
| 232 | /*! \brief Helper for processing scope customization options. |
| 233 | |
| 234 | |
| 235 | === modified file 'qml/Components/Background.qml' |
| 236 | --- qml/Components/Background.qml 2014-08-29 08:47:21 +0000 |
| 237 | +++ qml/Components/Background.qml 2015-10-26 15:26:58 +0000 |
| 238 | @@ -15,7 +15,7 @@ |
| 239 | */ |
| 240 | |
| 241 | import QtQuick 2.0 |
| 242 | -import Ubuntu.Components 1.1 |
| 243 | +import Ubuntu.Components 1.3 |
| 244 | import Utils 0.1 as Utils |
| 245 | |
| 246 | Loader { |
| 247 | |
| 248 | === modified file 'qml/Components/BaseCarouselDelegate.qml' |
| 249 | --- qml/Components/BaseCarouselDelegate.qml 2014-07-08 17:49:18 +0000 |
| 250 | +++ qml/Components/BaseCarouselDelegate.qml 2015-10-26 15:26:58 +0000 |
| 251 | @@ -15,7 +15,7 @@ |
| 252 | */ |
| 253 | |
| 254 | import QtQuick 2.0 |
| 255 | -import Ubuntu.Components 0.1 |
| 256 | +import Ubuntu.Components 1.3 |
| 257 | |
| 258 | /*! |
| 259 | \brief Base delegate for use with the Carousel component |
| 260 | |
| 261 | === modified file 'qml/Components/Carousel.qml' |
| 262 | --- qml/Components/Carousel.qml 2015-08-28 12:39:43 +0000 |
| 263 | +++ qml/Components/Carousel.qml 2015-10-26 15:26:58 +0000 |
| 264 | @@ -15,7 +15,7 @@ |
| 265 | */ |
| 266 | |
| 267 | import QtQuick 2.3 |
| 268 | -import Ubuntu.Components 0.1 |
| 269 | +import Ubuntu.Components 1.3 |
| 270 | import "carousel.js" as CarouselJS |
| 271 | |
| 272 | /*! The Carousel component presents the items of a model in a carousel view. It's similar to a |
| 273 | |
| 274 | === modified file 'qml/Components/DelayedLockscreen.qml' |
| 275 | --- qml/Components/DelayedLockscreen.qml 2015-02-12 14:48:06 +0000 |
| 276 | +++ qml/Components/DelayedLockscreen.qml 2015-10-26 15:26:58 +0000 |
| 277 | @@ -15,7 +15,7 @@ |
| 278 | */ |
| 279 | |
| 280 | import QtQuick 2.0 |
| 281 | -import Ubuntu.Components 0.1 |
| 282 | +import Ubuntu.Components 1.3 |
| 283 | import "../Components" |
| 284 | |
| 285 | Item { |
| 286 | |
| 287 | === modified file 'qml/Components/Dialogs.qml' |
| 288 | --- qml/Components/Dialogs.qml 2015-10-09 12:36:14 +0000 |
| 289 | +++ qml/Components/Dialogs.qml 2015-10-26 15:26:58 +0000 |
| 290 | @@ -18,9 +18,12 @@ |
| 291 | |
| 292 | import Unity.Application 0.1 |
| 293 | import Unity.Session 0.1 |
| 294 | -import Ubuntu.Components 1.1 |
| 295 | import GlobalShortcut 1.0 |
| 296 | +<<<<<<< TREE |
| 297 | import Unity.Platform 1.0 |
| 298 | +======= |
| 299 | +import Ubuntu.Components 1.3 |
| 300 | +>>>>>>> MERGE-SOURCE |
| 301 | import "../Greeter" |
| 302 | |
| 303 | Item { |
| 304 | |
| 305 | === modified file 'qml/Components/DragHandle.qml' |
| 306 | --- qml/Components/DragHandle.qml 2015-04-10 21:16:37 +0000 |
| 307 | +++ qml/Components/DragHandle.qml 2015-10-26 15:26:58 +0000 |
| 308 | @@ -15,7 +15,7 @@ |
| 309 | */ |
| 310 | |
| 311 | import QtQuick 2.0 |
| 312 | -import Ubuntu.Components 0.1 |
| 313 | +import Ubuntu.Components 1.3 |
| 314 | import Ubuntu.Gestures 0.1 |
| 315 | |
| 316 | /* |
| 317 | |
| 318 | === modified file 'qml/Components/DraggingArea.qml' |
| 319 | --- qml/Components/DraggingArea.qml 2014-07-11 09:22:59 +0000 |
| 320 | +++ qml/Components/DraggingArea.qml 2015-10-26 15:26:58 +0000 |
| 321 | @@ -15,7 +15,7 @@ |
| 322 | */ |
| 323 | |
| 324 | import QtQuick 2.0 |
| 325 | -import Ubuntu.Components 0.1 |
| 326 | +import Ubuntu.Components 1.3 |
| 327 | |
| 328 | MouseArea { |
| 329 | id: draggingArea |
| 330 | |
| 331 | === modified file 'qml/Components/EdgeDragEvaluator.qml' |
| 332 | --- qml/Components/EdgeDragEvaluator.qml 2015-04-27 15:30:18 +0000 |
| 333 | +++ qml/Components/EdgeDragEvaluator.qml 2015-10-26 15:26:58 +0000 |
| 334 | @@ -15,7 +15,7 @@ |
| 335 | */ |
| 336 | |
| 337 | import QtQuick 2.0 |
| 338 | -import Ubuntu.Components 0.1 |
| 339 | +import Ubuntu.Components 1.3 |
| 340 | import Ubuntu.Gestures 0.1 |
| 341 | |
| 342 | /* |
| 343 | |
| 344 | === modified file 'qml/Components/Header.qml' |
| 345 | --- qml/Components/Header.qml 2014-08-01 16:13:53 +0000 |
| 346 | +++ qml/Components/Header.qml 2015-10-26 15:26:58 +0000 |
| 347 | @@ -14,8 +14,8 @@ |
| 348 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 349 | */ |
| 350 | |
| 351 | -import Ubuntu.Components 1.1 |
| 352 | -import Ubuntu.Components.Themes.Ambiance 1.1 |
| 353 | +import Ubuntu.Components 1.3 |
| 354 | +import Ubuntu.Components.Themes.Ambiance 1.3 |
| 355 | |
| 356 | PageHeadStyle { |
| 357 | id: root |
| 358 | |
| 359 | === modified file 'qml/Components/InputMethod.qml' |
| 360 | --- qml/Components/InputMethod.qml 2015-08-06 12:47:28 +0000 |
| 361 | +++ qml/Components/InputMethod.qml 2015-10-26 15:26:58 +0000 |
| 362 | @@ -16,7 +16,7 @@ |
| 363 | |
| 364 | import QtQuick 2.0 |
| 365 | import Unity.Application 0.1 |
| 366 | -import Ubuntu.Components 0.1 |
| 367 | +import Ubuntu.Components 1.3 |
| 368 | import Ubuntu.Gestures 0.1 |
| 369 | |
| 370 | Item { |
| 371 | |
| 372 | === modified file 'qml/Components/LazyImage.qml' |
| 373 | --- qml/Components/LazyImage.qml 2014-09-29 20:55:54 +0000 |
| 374 | +++ qml/Components/LazyImage.qml 2015-10-26 15:26:58 +0000 |
| 375 | @@ -18,7 +18,7 @@ |
| 376 | */ |
| 377 | |
| 378 | import QtQuick 2.0 |
| 379 | -import Ubuntu.Components 0.1 |
| 380 | +import Ubuntu.Components 1.3 |
| 381 | |
| 382 | Item { |
| 383 | id: root |
| 384 | @@ -31,13 +31,12 @@ |
| 385 | property real initialHeight: scaleTo == "height" || scaleTo == "fit" ? height : units.gu(10) |
| 386 | |
| 387 | property alias sourceSize: image.sourceSize |
| 388 | - property alias fillMode: image.fillMode |
| 389 | property alias asynchronous: image.asynchronous |
| 390 | property alias cache: image.cache |
| 391 | - property alias horizontalAlignment: image.horizontalAlignment |
| 392 | - property alias verticalAlignment: image.verticalAlignment |
| 393 | property alias sourceImage: image |
| 394 | - property alias borderSource: shape.borderSource |
| 395 | + |
| 396 | + property bool useUbuntuShape: true |
| 397 | + property bool pressed: false |
| 398 | |
| 399 | state: "default" |
| 400 | |
| 401 | @@ -53,7 +52,7 @@ |
| 402 | UbuntuShape { |
| 403 | id: placeholder |
| 404 | objectName: "placeholder" |
| 405 | - color: "#22FFFFFF" |
| 406 | + backgroundColor: "#22FFFFFF" |
| 407 | anchors.fill: shape |
| 408 | visible: opacity != 0 |
| 409 | |
| 410 | @@ -78,28 +77,37 @@ |
| 411 | } |
| 412 | } |
| 413 | |
| 414 | - UbuntuShape { |
| 415 | + Loader { |
| 416 | id: shape |
| 417 | objectName: "shape" |
| 418 | height: root.initialHeight |
| 419 | width: root.initialWidth |
| 420 | anchors.centerIn: root.scaleTo == "fit" ? parent : undefined |
| 421 | - |
| 422 | + active: useUbuntuShape |
| 423 | opacity: 0 |
| 424 | visible: opacity != 0 |
| 425 | + sourceComponent: UbuntuShapeOverlay { |
| 426 | + property bool pressed: false |
| 427 | + overlayColor: Qt.rgba(0, 0, 0, pressed ? 0.1 : 0) |
| 428 | + overlayRect: Qt.rect(0.0, 0.0, 1.0, 1.0) |
| 429 | + } |
| 430 | + onLoaded: { |
| 431 | + item.source = image; |
| 432 | + item.pressed = Qt.binding(function() { return root.pressed; }); |
| 433 | + } |
| 434 | |
| 435 | - image: Image { |
| 436 | + Image { |
| 437 | id: image |
| 438 | objectName: "image" |
| 439 | |
| 440 | property url nextSource |
| 441 | property string format: image.implicitWidth > image.implicitHeight ? "landscape" : "portrait" |
| 442 | |
| 443 | + anchors.fill: parent |
| 444 | + visible: !useUbuntuShape |
| 445 | fillMode: Image.PreserveAspectFit |
| 446 | asynchronous: true |
| 447 | cache: false |
| 448 | - horizontalAlignment: Image.AlignHCenter |
| 449 | - verticalAlignment: Image.AlignVCenter |
| 450 | sourceSize.width: root.scaleTo == "width" ? root.width |
| 451 | : root.scaleTo == "fit" && root.width <= root.height ? root.width |
| 452 | : 0 |
| 453 | |
| 454 | === modified file 'qml/Components/ListItems/Header.qml' |
| 455 | --- qml/Components/ListItems/Header.qml 2014-07-16 16:30:15 +0000 |
| 456 | +++ qml/Components/ListItems/Header.qml 2015-10-26 15:26:58 +0000 |
| 457 | @@ -16,7 +16,7 @@ |
| 458 | |
| 459 | import QtQuick 2.0 |
| 460 | import QtQuick.Layouts 1.1 |
| 461 | -import Ubuntu.Components 0.1 |
| 462 | +import Ubuntu.Components 1.3 |
| 463 | |
| 464 | Item { |
| 465 | property alias text: label.text |
| 466 | |
| 467 | === added file 'qml/Components/ListViewOSKScroller.qml' |
| 468 | --- qml/Components/ListViewOSKScroller.qml 1970-01-01 00:00:00 +0000 |
| 469 | +++ qml/Components/ListViewOSKScroller.qml 2015-10-26 15:26:58 +0000 |
| 470 | @@ -0,0 +1,53 @@ |
| 471 | +/* |
| 472 | + * Copyright (C) 2015 Canonical, Ltd. |
| 473 | + * |
| 474 | + * This program is free software; you can redistribute it and/or modify |
| 475 | + * it under the terms of the GNU General Public License as published by |
| 476 | + * the Free Software Foundation; version 3. |
| 477 | + * |
| 478 | + * This program is distributed in the hope that it will be useful, |
| 479 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 480 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 481 | + * GNU General Public License for more details. |
| 482 | + * |
| 483 | + * You should have received a copy of the GNU General Public License |
| 484 | + * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 485 | + */ |
| 486 | + |
| 487 | +import QtQuick 2.2 |
| 488 | +import "../Components" |
| 489 | + |
| 490 | +Item { |
| 491 | + id: root |
| 492 | + |
| 493 | + property ListView list |
| 494 | + |
| 495 | + Binding { |
| 496 | + target: list |
| 497 | + property: "bottomMargin" |
| 498 | + value: d.bottomMargin |
| 499 | + } |
| 500 | + |
| 501 | + function setMakeSureVisibleItem(item) { |
| 502 | + d.previousVisibleHeight = d.visibleHeight; |
| 503 | + d.makeSureVisibleItem = item; |
| 504 | + } |
| 505 | + |
| 506 | + QtObject { |
| 507 | + id: d |
| 508 | + property var makeSureVisibleItem |
| 509 | + property real previousVisibleHeight: 0 |
| 510 | + readonly property real visibleHeight: list.height - list.bottomMargin |
| 511 | + readonly property real bottomMargin: Qt.inputMethod.visible ? Qt.inputMethod.keyboardRectangle.height : 0 |
| 512 | + |
| 513 | + onVisibleHeightChanged: { |
| 514 | + if (makeSureVisibleItem && makeSureVisibleItem.activeFocus && previousVisibleHeight > visibleHeight) { |
| 515 | + var textAreaPos = makeSureVisibleItem.mapToItem(list, 0, 0); |
| 516 | + if (textAreaPos.y + makeSureVisibleItem.height > visibleHeight) { |
| 517 | + list.contentY += textAreaPos.y + makeSureVisibleItem.height - visibleHeight |
| 518 | + } |
| 519 | + } |
| 520 | + previousVisibleHeight = visibleHeight; |
| 521 | + } |
| 522 | + } |
| 523 | +} |
| 524 | |
| 525 | === modified file 'qml/Components/Lockscreen.qml' |
| 526 | --- qml/Components/Lockscreen.qml 2015-03-18 17:27:30 +0000 |
| 527 | +++ qml/Components/Lockscreen.qml 2015-10-26 15:26:58 +0000 |
| 528 | @@ -15,8 +15,8 @@ |
| 529 | */ |
| 530 | |
| 531 | import QtQuick 2.0 |
| 532 | -import Ubuntu.Components 1.0 |
| 533 | -import Ubuntu.Components.Popups 1.0 |
| 534 | +import Ubuntu.Components 1.3 |
| 535 | +import Ubuntu.Components.Popups 1.3 |
| 536 | import Ubuntu.Telephony 0.1 as Telephony |
| 537 | |
| 538 | Showable { |
| 539 | |
| 540 | === modified file 'qml/Components/PassphraseLockscreen.qml' |
| 541 | --- qml/Components/PassphraseLockscreen.qml 2015-03-18 17:27:30 +0000 |
| 542 | +++ qml/Components/PassphraseLockscreen.qml 2015-10-26 15:26:58 +0000 |
| 543 | @@ -15,7 +15,7 @@ |
| 544 | */ |
| 545 | |
| 546 | import QtQuick 2.0 |
| 547 | -import Ubuntu.Components 0.1 |
| 548 | +import Ubuntu.Components 1.3 |
| 549 | import "../Components" |
| 550 | |
| 551 | Item { |
| 552 | |
| 553 | === modified file 'qml/Components/PinLockscreen.qml' |
| 554 | --- qml/Components/PinLockscreen.qml 2015-05-28 07:42:09 +0000 |
| 555 | +++ qml/Components/PinLockscreen.qml 2015-10-26 15:26:58 +0000 |
| 556 | @@ -15,8 +15,8 @@ |
| 557 | */ |
| 558 | |
| 559 | import QtQuick 2.0 |
| 560 | -import Ubuntu.Components 0.1 |
| 561 | -import Ubuntu.Components.ListItems 0.1 |
| 562 | +import Ubuntu.Components 1.3 |
| 563 | +import Ubuntu.Components.ListItems 1.3 |
| 564 | import "../Components" |
| 565 | |
| 566 | Item { |
| 567 | |
| 568 | === modified file 'qml/Components/PinPadButton.qml' |
| 569 | --- qml/Components/PinPadButton.qml 2015-03-18 17:27:30 +0000 |
| 570 | +++ qml/Components/PinPadButton.qml 2015-10-26 15:26:58 +0000 |
| 571 | @@ -15,7 +15,7 @@ |
| 572 | */ |
| 573 | |
| 574 | import QtQuick 2.0 |
| 575 | -import Ubuntu.Components 1.1 |
| 576 | +import Ubuntu.Components 1.3 |
| 577 | |
| 578 | AbstractButton { |
| 579 | id: root |
| 580 | |
| 581 | === modified file 'qml/Components/Rating.qml' |
| 582 | --- qml/Components/Rating.qml 2014-02-13 17:00:06 +0000 |
| 583 | +++ qml/Components/Rating.qml 2015-10-26 15:26:58 +0000 |
| 584 | @@ -15,7 +15,7 @@ |
| 585 | */ |
| 586 | |
| 587 | import QtQuick 2.0 |
| 588 | -import Ubuntu.Components 0.1 |
| 589 | +import Ubuntu.Components 1.3 |
| 590 | |
| 591 | /*! Rating widget bar. */ |
| 592 | |
| 593 | |
| 594 | === modified file 'qml/Components/RatingStyle.qml' |
| 595 | --- qml/Components/RatingStyle.qml 2014-02-13 17:00:06 +0000 |
| 596 | +++ qml/Components/RatingStyle.qml 2015-10-26 15:26:58 +0000 |
| 597 | @@ -15,7 +15,7 @@ |
| 598 | */ |
| 599 | |
| 600 | import QtQuick 2.0 |
| 601 | -import Ubuntu.Components 0.1 |
| 602 | +import Ubuntu.Components 1.3 |
| 603 | |
| 604 | Row { |
| 605 | anchors.fill: parent |
| 606 | |
| 607 | === modified file 'qml/Components/ResponsiveGridView.qml' |
| 608 | --- qml/Components/ResponsiveGridView.qml 2014-10-23 11:59:22 +0000 |
| 609 | +++ qml/Components/ResponsiveGridView.qml 2015-10-26 15:26:58 +0000 |
| 610 | @@ -15,7 +15,7 @@ |
| 611 | */ |
| 612 | |
| 613 | import QtQuick 2.3 |
| 614 | -import Ubuntu.Components 0.1 |
| 615 | +import Ubuntu.Components 1.3 |
| 616 | |
| 617 | /* |
| 618 | Essentially a GridView where you can specify the maximum number of columns it can have. |
| 619 | |
| 620 | === modified file 'qml/Components/ResponsiveVerticalJournal.qml' |
| 621 | --- qml/Components/ResponsiveVerticalJournal.qml 2015-05-12 10:05:52 +0000 |
| 622 | +++ qml/Components/ResponsiveVerticalJournal.qml 2015-10-26 15:26:58 +0000 |
| 623 | @@ -15,7 +15,7 @@ |
| 624 | */ |
| 625 | |
| 626 | import QtQuick 2.0 |
| 627 | -import Ubuntu.Components 0.1 |
| 628 | +import Ubuntu.Components 1.3 |
| 629 | import "../Components" |
| 630 | import Dash 0.1 |
| 631 | |
| 632 | |
| 633 | === modified file 'qml/Components/ScrollCalculator.qml' |
| 634 | --- qml/Components/ScrollCalculator.qml 2014-10-13 15:09:46 +0000 |
| 635 | +++ qml/Components/ScrollCalculator.qml 2015-10-26 15:26:58 +0000 |
| 636 | @@ -15,7 +15,7 @@ |
| 637 | */ |
| 638 | |
| 639 | import QtQuick 2.2 |
| 640 | -import Ubuntu.Components 1.1 |
| 641 | +import Ubuntu.Components 1.3 |
| 642 | |
| 643 | Item { |
| 644 | id: scrollArea |
| 645 | |
| 646 | === modified file 'qml/Components/ShellDialog.qml' |
| 647 | --- qml/Components/ShellDialog.qml 2015-08-24 15:39:53 +0000 |
| 648 | +++ qml/Components/ShellDialog.qml 2015-10-26 15:26:58 +0000 |
| 649 | @@ -16,8 +16,8 @@ |
| 650 | |
| 651 | import QtQuick 2.0 |
| 652 | |
| 653 | -import Ubuntu.Components 1.1 |
| 654 | -import Ubuntu.Components.Popups 0.1 |
| 655 | +import Ubuntu.Components 1.3 |
| 656 | +import Ubuntu.Components.Popups 1.3 |
| 657 | |
| 658 | /* |
| 659 | A Dialog configured for use as a proper in-scene Dialog |
| 660 | |
| 661 | === modified file 'qml/Components/UbuntuShapeForItem.qml' |
| 662 | --- qml/Components/UbuntuShapeForItem.qml 2014-10-06 07:39:42 +0000 |
| 663 | +++ qml/Components/UbuntuShapeForItem.qml 2015-10-26 15:26:58 +0000 |
| 664 | @@ -15,7 +15,7 @@ |
| 665 | */ |
| 666 | |
| 667 | import QtQuick 2.0 |
| 668 | -import Ubuntu.Components 0.1 |
| 669 | +import Ubuntu.Components 1.3 |
| 670 | |
| 671 | /* FIXME: This component is duplicating the UbuntuShape from the SDK, but shapes more |
| 672 | * general (Item-based) components. This ability should be incorporated into the SDK's |
| 673 | |
| 674 | === modified file 'qml/Components/UnityInputInfo/UnityInputInfo.qml' |
| 675 | --- qml/Components/UnityInputInfo/UnityInputInfo.qml 2015-08-11 11:23:32 +0000 |
| 676 | +++ qml/Components/UnityInputInfo/UnityInputInfo.qml 2015-10-26 15:26:58 +0000 |
| 677 | @@ -19,7 +19,7 @@ |
| 678 | import QtQuick 2.3 |
| 679 | import Unity.InputInfo 0.1 |
| 680 | // Workaround https://bugs.launchpad.net/ubuntu/+source/unity8/+bug/1473471 |
| 681 | -import Ubuntu.Components 1.2 |
| 682 | +import Ubuntu.Components 1.3 |
| 683 | |
| 684 | Item { |
| 685 | id: root |
| 686 | |
| 687 | === modified file 'qml/Components/WindowControlButtons.qml' |
| 688 | --- qml/Components/WindowControlButtons.qml 2014-11-24 11:21:38 +0000 |
| 689 | +++ qml/Components/WindowControlButtons.qml 2015-10-26 15:26:58 +0000 |
| 690 | @@ -17,7 +17,7 @@ |
| 691 | */ |
| 692 | |
| 693 | import QtQuick 2.3 |
| 694 | -import Ubuntu.Components 1.1 |
| 695 | +import Ubuntu.Components 1.3 |
| 696 | |
| 697 | Row { |
| 698 | id: root |
| 699 | |
| 700 | === modified file 'qml/Components/ZoomableImage.qml' |
| 701 | --- qml/Components/ZoomableImage.qml 2015-05-06 15:05:06 +0000 |
| 702 | +++ qml/Components/ZoomableImage.qml 2015-10-26 15:26:58 +0000 |
| 703 | @@ -15,7 +15,7 @@ |
| 704 | */ |
| 705 | |
| 706 | import QtQuick 2.0 |
| 707 | -import Ubuntu.Components 0.1 |
| 708 | +import Ubuntu.Components 1.3 |
| 709 | import "../Components" |
| 710 | |
| 711 | /*! \brief Zoomable for image. |
| 712 | |
| 713 | === modified file 'qml/Dash/CardCarousel.qml' |
| 714 | --- qml/Dash/CardCarousel.qml 2015-08-31 07:46:52 +0000 |
| 715 | +++ qml/Dash/CardCarousel.qml 2015-10-26 15:26:58 +0000 |
| 716 | @@ -15,7 +15,7 @@ |
| 717 | */ |
| 718 | |
| 719 | import QtQuick 2.0 |
| 720 | -import Ubuntu.Components 0.1 |
| 721 | +import Ubuntu.Components 1.3 |
| 722 | import "../Components" |
| 723 | |
| 724 | DashRenderer { |
| 725 | @@ -68,7 +68,7 @@ |
| 726 | item.fontScale = Qt.binding(function() { return carousel.fontScale; }); |
| 727 | item.showHeader = Qt.binding(function() { return loader.explicitlyScaled; }); |
| 728 | item.titleAlignment = Qt.binding(function() { return cardTool.titleAlignment; }); |
| 729 | - item.artShapeBorderSource = "none"; |
| 730 | + item.artShapeStyle = "flat"; |
| 731 | item.scopeStyle = cardCarousel.scopeStyle; |
| 732 | } |
| 733 | |
| 734 | |
| 735 | === modified file 'qml/Dash/CardHorizontalList.qml' |
| 736 | --- qml/Dash/CardHorizontalList.qml 2015-05-13 10:21:18 +0000 |
| 737 | +++ qml/Dash/CardHorizontalList.qml 2015-10-26 15:26:58 +0000 |
| 738 | @@ -15,7 +15,7 @@ |
| 739 | */ |
| 740 | |
| 741 | import QtQuick 2.3 |
| 742 | -import Ubuntu.Components 1.1 |
| 743 | +import Ubuntu.Components 1.3 |
| 744 | import "../Components" |
| 745 | |
| 746 | DashRenderer { |
| 747 | |
| 748 | === modified file 'qml/Dash/CardVerticalJournal.qml' |
| 749 | --- qml/Dash/CardVerticalJournal.qml 2015-05-13 10:21:18 +0000 |
| 750 | +++ qml/Dash/CardVerticalJournal.qml 2015-10-26 15:26:58 +0000 |
| 751 | @@ -15,7 +15,7 @@ |
| 752 | */ |
| 753 | |
| 754 | import QtQuick 2.0 |
| 755 | -import Ubuntu.Components 0.1 |
| 756 | +import Ubuntu.Components 1.3 |
| 757 | import "../Components" |
| 758 | |
| 759 | DashRenderer { |
| 760 | |
| 761 | === modified file 'qml/Dash/Dash.qml' |
| 762 | --- qml/Dash/Dash.qml 2015-08-31 10:24:42 +0000 |
| 763 | +++ qml/Dash/Dash.qml 2015-10-26 15:26:58 +0000 |
| 764 | @@ -15,7 +15,7 @@ |
| 765 | */ |
| 766 | |
| 767 | import QtQuick 2.2 |
| 768 | -import Ubuntu.Components 0.1 |
| 769 | +import Ubuntu.Components 1.3 |
| 770 | import Ubuntu.Gestures 0.1 |
| 771 | import Unity 0.2 |
| 772 | import Utils 0.1 |
| 773 | |
| 774 | === modified file 'qml/Dash/DashApplication.qml' |
| 775 | --- qml/Dash/DashApplication.qml 2015-05-12 14:39:11 +0000 |
| 776 | +++ qml/Dash/DashApplication.qml 2015-10-26 15:26:58 +0000 |
| 777 | @@ -15,14 +15,15 @@ |
| 778 | */ |
| 779 | |
| 780 | import QtQuick 2.2 |
| 781 | -import Ubuntu.Components 1.0 |
| 782 | +import Ubuntu.Components 1.3 |
| 783 | import Ubuntu.Thumbnailer 0.1 // Register support for image://thumbnailer/ and image://albumart/ |
| 784 | |
| 785 | MainView { |
| 786 | implicitWidth: units.gu(40) |
| 787 | implicitHeight: units.gu(68) |
| 788 | |
| 789 | - useDeprecatedToolbar: false |
| 790 | + // Workaround bug #1475643 |
| 791 | + headerColor: Qt.rgba(0, 0, 0, 0) |
| 792 | |
| 793 | Dash { |
| 794 | anchors.fill: parent |
| 795 | |
| 796 | === modified file 'qml/Dash/DashCategoryBase.qml' |
| 797 | --- qml/Dash/DashCategoryBase.qml 2014-10-09 17:41:49 +0000 |
| 798 | +++ qml/Dash/DashCategoryBase.qml 2015-10-26 15:26:58 +0000 |
| 799 | @@ -15,7 +15,7 @@ |
| 800 | */ |
| 801 | |
| 802 | import QtQuick 2.0 |
| 803 | -import Ubuntu.Components 0.1 |
| 804 | +import Ubuntu.Components 1.3 |
| 805 | |
| 806 | Item { |
| 807 | width: parent.width |
| 808 | |
| 809 | === modified file 'qml/Dash/DashContent.qml' |
| 810 | --- qml/Dash/DashContent.qml 2015-04-29 07:39:58 +0000 |
| 811 | +++ qml/Dash/DashContent.qml 2015-10-26 15:26:58 +0000 |
| 812 | @@ -15,7 +15,7 @@ |
| 813 | */ |
| 814 | |
| 815 | import QtQuick 2.0 |
| 816 | -import Ubuntu.Components 0.1 |
| 817 | +import Ubuntu.Components 1.3 |
| 818 | import Unity 0.2 |
| 819 | import Utils 0.1 |
| 820 | import "../Components" |
| 821 | |
| 822 | === modified file 'qml/Dash/DashContentTabBarStyle.qml' |
| 823 | --- qml/Dash/DashContentTabBarStyle.qml 2014-02-19 13:30:38 +0000 |
| 824 | +++ qml/Dash/DashContentTabBarStyle.qml 2015-10-26 15:26:58 +0000 |
| 825 | @@ -14,7 +14,7 @@ |
| 826 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 827 | */ |
| 828 | |
| 829 | -import Ubuntu.Components.Themes.Ambiance 0.1 |
| 830 | +import Ubuntu.Components.Themes.Ambiance 1.3 |
| 831 | |
| 832 | TabBarStyle { |
| 833 | indicatorImageSource: "graphics/tabbarchevron.png" |
| 834 | |
| 835 | === modified file 'qml/Dash/DashNavigation.qml' |
| 836 | --- qml/Dash/DashNavigation.qml 2015-01-05 15:08:04 +0000 |
| 837 | +++ qml/Dash/DashNavigation.qml 2015-10-26 15:26:58 +0000 |
| 838 | @@ -1,5 +1,5 @@ |
| 839 | /* |
| 840 | - * Copyright (C) 2014 Canonical, Ltd. |
| 841 | + * Copyright (C) 2014,2015 Canonical, Ltd. |
| 842 | * |
| 843 | * This program is free software; you can redistribute it and/or modify |
| 844 | * it under the terms of the GNU General Public License as published by |
| 845 | @@ -15,7 +15,7 @@ |
| 846 | */ |
| 847 | |
| 848 | import QtQuick 2.2 |
| 849 | -import Ubuntu.Components 1.1 |
| 850 | +import Ubuntu.Components 1.3 |
| 851 | import Dash 0.1 |
| 852 | import "../Components" |
| 853 | |
| 854 | @@ -48,7 +48,7 @@ |
| 855 | id: d |
| 856 | readonly property color foregroundColor: root.scopeStyle |
| 857 | ? root.scopeStyle.getTextColor(backgroundItem.luminance) |
| 858 | - : Theme.palette.normal.baseText |
| 859 | + : theme.palette.normal.baseText |
| 860 | readonly property bool bothVisible: altNavigationButton.visible && navigationButton.visible |
| 861 | readonly property real navigationWidth: root.width >= units.gu(60) ? units.gu(40) : root.width |
| 862 | readonly property real buttonWidth: navigationWidth / (bothVisible ? 2 : 1) |
| 863 | |
| 864 | === modified file 'qml/Dash/DashNavigationButton.qml' |
| 865 | --- qml/Dash/DashNavigationButton.qml 2015-01-05 15:08:04 +0000 |
| 866 | +++ qml/Dash/DashNavigationButton.qml 2015-10-26 15:26:58 +0000 |
| 867 | @@ -1,5 +1,5 @@ |
| 868 | /* |
| 869 | - * Copyright (C) 2014 Canonical, Ltd. |
| 870 | + * Copyright (C) 2014,2015 Canonical, Ltd. |
| 871 | * |
| 872 | * This program is free software; you can redistribute it and/or modify |
| 873 | * it under the terms of the GNU General Public License as published by |
| 874 | @@ -15,7 +15,7 @@ |
| 875 | */ |
| 876 | |
| 877 | import QtQuick 2.2 |
| 878 | -import Ubuntu.Components 1.1 |
| 879 | +import Ubuntu.Components 1.3 |
| 880 | |
| 881 | AbstractButton { |
| 882 | id: root |
| 883 | @@ -24,7 +24,7 @@ |
| 884 | // Set by parent |
| 885 | property var scope: null |
| 886 | property var scopeStyle: null |
| 887 | - property color foregroundColor: Theme.palette.normal.baseText |
| 888 | + property color foregroundColor: theme.palette.normal.baseText |
| 889 | property bool isAltNavigation: false |
| 890 | property bool showDivider: false |
| 891 | |
| 892 | |
| 893 | === modified file 'qml/Dash/DashNavigationList.qml' |
| 894 | --- qml/Dash/DashNavigationList.qml 2015-07-06 04:41:44 +0000 |
| 895 | +++ qml/Dash/DashNavigationList.qml 2015-10-26 15:26:58 +0000 |
| 896 | @@ -1,5 +1,5 @@ |
| 897 | /* |
| 898 | - * Copyright (C) 2014 Canonical, Ltd. |
| 899 | + * Copyright (C) 2014,2015 Canonical, Ltd. |
| 900 | * |
| 901 | * This program is free software; you can redistribute it and/or modify |
| 902 | * it under the terms of the GNU General Public License as published by |
| 903 | @@ -15,8 +15,8 @@ |
| 904 | */ |
| 905 | |
| 906 | import QtQuick 2.2 |
| 907 | -import Ubuntu.Components 1.1 |
| 908 | -import Ubuntu.Components.ListItems 0.1 as ListItem |
| 909 | +import Ubuntu.Components 1.3 |
| 910 | +import Ubuntu.Components.ListItems 1.3 as ListItem |
| 911 | import "../Components" |
| 912 | |
| 913 | Item { |
| 914 | @@ -24,7 +24,7 @@ |
| 915 | property var navigation: null |
| 916 | property var currentNavigation: null |
| 917 | property var scopeStyle: null |
| 918 | - property color foregroundColor: Theme.palette.normal.baseText |
| 919 | + property color foregroundColor: theme.palette.normal.baseText |
| 920 | signal enterNavigation(var newNavigationId, bool hasChildren) |
| 921 | signal goBackToParentClicked() |
| 922 | signal allNavigationClicked() |
| 923 | |
| 924 | === renamed file 'qml/Dash/PageHeader.qml' => 'qml/Dash/DashPageHeader.qml' |
| 925 | --- qml/Dash/PageHeader.qml 2015-03-13 10:07:57 +0000 |
| 926 | +++ qml/Dash/DashPageHeader.qml 2015-10-26 15:26:58 +0000 |
| 927 | @@ -1,5 +1,5 @@ |
| 928 | /* |
| 929 | - * Copyright (C) 2013 Canonical, Ltd. |
| 930 | + * Copyright (C) 2013,2015 Canonical, Ltd. |
| 931 | * |
| 932 | * This program is free software; you can redistribute it and/or modify |
| 933 | * it under the terms of the GNU General Public License as published by |
| 934 | @@ -15,10 +15,10 @@ |
| 935 | */ |
| 936 | |
| 937 | import QtQuick 2.2 |
| 938 | -import Ubuntu.Components 1.1 |
| 939 | -import Ubuntu.Components.Themes.Ambiance 1.1 |
| 940 | -import Ubuntu.Components.Popups 1.0 |
| 941 | -import Ubuntu.Components.ListItems 1.0 |
| 942 | +import Ubuntu.Components 1.3 |
| 943 | +import Ubuntu.Components.Themes.Ambiance 1.3 |
| 944 | +import Ubuntu.Components.Popups 1.3 |
| 945 | +import Ubuntu.Components.ListItems 1.3 |
| 946 | import "../Components" |
| 947 | import "../Components/SearchHistoryModel" |
| 948 | |
| 949 | @@ -136,7 +136,7 @@ |
| 950 | objectName: "headerContainer" |
| 951 | clip: contentY < height |
| 952 | anchors { left: parent.left; top: parent.top; right: parent.right } |
| 953 | - height: units.gu(7) |
| 954 | + height: header.contentHeight |
| 955 | contentHeight: headersColumn.height |
| 956 | interactive: false |
| 957 | contentY: showSearch ? 0 : height |
| 958 | @@ -171,18 +171,15 @@ |
| 959 | PageHeadStyle { |
| 960 | id: searchHeader |
| 961 | anchors { left: parent.left; right: parent.right } |
| 962 | - height: headerContainer.height |
| 963 | - contentHeight: height |
| 964 | opacity: headerContainer.clip || headerContainer.showSearch ? 1 : 0 // setting visible false cause column to relayout |
| 965 | __separator_visible: false |
| 966 | // Required to keep PageHeadStyle noise down as it expects the Page's properties around. |
| 967 | property var styledItem: searchHeader |
| 968 | - property string title |
| 969 | property color dividerColor: "transparent" // Doesn't matter as we don't have PageHeadSections |
| 970 | property color panelColor: background.topColor |
| 971 | panelForegroundColor: config.foregroundColor |
| 972 | - property var config: PageHeadConfiguration { |
| 973 | - foregroundColor: root.scopeStyle ? root.scopeStyle.headerForeground : Theme.palette.normal.baseText |
| 974 | + config: PageHeadConfiguration { |
| 975 | + foregroundColor: root.scopeStyle ? root.scopeStyle.headerForeground : theme.palette.normal.baseText |
| 976 | backAction: Action { |
| 977 | iconName: "back" |
| 978 | onTriggered: { |
| 979 | @@ -247,16 +244,15 @@ |
| 980 | objectName: "innerPageHeader" |
| 981 | anchors { left: parent.left; right: parent.right } |
| 982 | height: headerContainer.height |
| 983 | - contentHeight: height |
| 984 | opacity: headerContainer.clip || !headerContainer.showSearch ? 1 : 0 // setting visible false cause column to relayout |
| 985 | __separator_visible: false |
| 986 | property var styledItem: header |
| 987 | - property string title: root.title |
| 988 | property color dividerColor: "transparent" // Doesn't matter as we don't have PageHeadSections |
| 989 | property color panelColor: background.topColor |
| 990 | panelForegroundColor: config.foregroundColor |
| 991 | - property var config: PageHeadConfiguration { |
| 992 | - foregroundColor: root.scopeStyle ? root.scopeStyle.headerForeground : Theme.palette.normal.baseText |
| 993 | + config: PageHeadConfiguration { |
| 994 | + title: root.title |
| 995 | + foregroundColor: root.scopeStyle ? root.scopeStyle.headerForeground : theme.palette.normal.baseText |
| 996 | backAction: Action { |
| 997 | iconName: backIsClose ? "close" : "back" |
| 998 | visible: root.showBackButton |
| 999 | |
| 1000 | === modified file 'qml/Dash/GenericScopeView.qml' |
| 1001 | --- qml/Dash/GenericScopeView.qml 2015-08-17 11:57:13 +0000 |
| 1002 | +++ qml/Dash/GenericScopeView.qml 2015-10-26 15:26:58 +0000 |
| 1003 | @@ -15,7 +15,7 @@ |
| 1004 | */ |
| 1005 | |
| 1006 | import QtQuick 2.0 |
| 1007 | -import Ubuntu.Components 1.1 |
| 1008 | +import Ubuntu.Components 1.3 |
| 1009 | import Utils 0.1 |
| 1010 | import Unity 0.2 |
| 1011 | import Dash 0.1 |
| 1012 | @@ -573,7 +573,7 @@ |
| 1013 | } |
| 1014 | fontSize: "small" |
| 1015 | font.weight: Font.Bold |
| 1016 | - color: scopeStyle ? scopeStyle.foreground : Theme.palette.normal.baseText |
| 1017 | + color: scopeStyle ? scopeStyle.foreground : theme.palette.normal.baseText |
| 1018 | } |
| 1019 | } |
| 1020 | |
| 1021 | @@ -610,7 +610,7 @@ |
| 1022 | width: categoryView.width |
| 1023 | height: section != "" ? units.gu(5) : 0 |
| 1024 | text: section |
| 1025 | - color: scopeStyle ? scopeStyle.foreground : Theme.palette.normal.baseText |
| 1026 | + color: scopeStyle ? scopeStyle.foreground : theme.palette.normal.baseText |
| 1027 | iconName: delegate && delegate.headerLink ? "go-next" : "" |
| 1028 | onClicked: { |
| 1029 | if (delegate.headerLink) scopeView.scope.performQuery(delegate.headerLink); |
| 1030 | @@ -624,7 +624,7 @@ |
| 1031 | sourceComponent: scopeView.showPageHeader ? pageHeaderComponent : undefined |
| 1032 | Component { |
| 1033 | id: pageHeaderComponent |
| 1034 | - PageHeader { |
| 1035 | + DashPageHeader { |
| 1036 | objectName: "scopePageHeader" |
| 1037 | width: parent.width |
| 1038 | title: scopeView.scope ? scopeView.scope.name : "" |
| 1039 | @@ -731,7 +731,7 @@ |
| 1040 | } |
| 1041 | fontSize: "small" |
| 1042 | font.weight: Font.Bold |
| 1043 | - color: scopeStyle ? scopeStyle.foreground : Theme.palette.normal.baseText |
| 1044 | + color: scopeStyle ? scopeStyle.foreground : theme.palette.normal.baseText |
| 1045 | } |
| 1046 | |
| 1047 | Connections { |
| 1048 | |
| 1049 | === modified file 'qml/Dash/PreviewListView.qml' |
| 1050 | --- qml/Dash/PreviewListView.qml 2015-09-14 11:07:25 +0000 |
| 1051 | +++ qml/Dash/PreviewListView.qml 2015-10-26 15:26:58 +0000 |
| 1052 | @@ -15,7 +15,7 @@ |
| 1053 | */ |
| 1054 | |
| 1055 | import QtQuick 2.0 |
| 1056 | -import Ubuntu.Components 0.1 |
| 1057 | +import Ubuntu.Components 1.3 |
| 1058 | import Unity 0.2 |
| 1059 | import "../Components" |
| 1060 | import "Previews" as Previews |
| 1061 | @@ -43,7 +43,7 @@ |
| 1062 | |
| 1063 | signal backClicked() |
| 1064 | |
| 1065 | - PageHeader { |
| 1066 | + DashPageHeader { |
| 1067 | id: header |
| 1068 | objectName: "pageHeader" |
| 1069 | width: parent.width |
| 1070 | |
| 1071 | === modified file 'qml/Dash/Previews/Preview.qml' |
| 1072 | --- qml/Dash/Previews/Preview.qml 2015-08-24 11:20:41 +0000 |
| 1073 | +++ qml/Dash/Previews/Preview.qml 2015-10-26 15:26:58 +0000 |
| 1074 | @@ -15,7 +15,8 @@ |
| 1075 | */ |
| 1076 | |
| 1077 | import QtQuick 2.0 |
| 1078 | -import Ubuntu.Components 0.1 |
| 1079 | +import Ubuntu.Components 1.3 |
| 1080 | +import "../../Components" |
| 1081 | |
| 1082 | /*! \brief This component constructs the Preview UI. |
| 1083 | * |
| 1084 | @@ -72,18 +73,10 @@ |
| 1085 | } |
| 1086 | width: row.columnWidth |
| 1087 | spacing: row.spacing |
| 1088 | - bottomMargin: Qt.inputMethod.visible ? Qt.inputMethod.keyboardRectangle.height : 0 |
| 1089 | - property var makeSureVisibleItem |
| 1090 | - property real previousVisibleHeight: 0 |
| 1091 | - property real visibleHeight: height - bottomMargin |
| 1092 | - onVisibleHeightChanged: { |
| 1093 | - if (makeSureVisibleItem && makeSureVisibleItem.activeFocus && previousVisibleHeight > visibleHeight) { |
| 1094 | - var textAreaPos = makeSureVisibleItem.mapToItem(column, 0, 0); |
| 1095 | - if (textAreaPos.y + makeSureVisibleItem.height > column.visibleHeight) { |
| 1096 | - column.contentY += textAreaPos.y + makeSureVisibleItem.height - column.visibleHeight |
| 1097 | - } |
| 1098 | - } |
| 1099 | - previousVisibleHeight = visibleHeight; |
| 1100 | + |
| 1101 | + ListViewOSKScroller { |
| 1102 | + id: oskScroller |
| 1103 | + list: column |
| 1104 | } |
| 1105 | |
| 1106 | model: columnModel |
| 1107 | @@ -100,17 +93,17 @@ |
| 1108 | anchors { |
| 1109 | left: parent.left |
| 1110 | right: parent.right |
| 1111 | - leftMargin: units.gu(1) |
| 1112 | - rightMargin: units.gu(1) |
| 1113 | + leftMargin: widgetMargins |
| 1114 | + rightMargin: widgetMargins |
| 1115 | } |
| 1116 | |
| 1117 | onTriggered: { |
| 1118 | previewModel.triggered(widgetId, actionId, data); |
| 1119 | } |
| 1120 | - onMakeSureVisible: { |
| 1121 | - column.previousVisibleHeight=column.visibleHeight |
| 1122 | - column.makeSureVisibleItem=item |
| 1123 | - } |
| 1124 | + |
| 1125 | + onMakeSureVisible: { |
| 1126 | + oskScroller.setMakeSureVisibleItem(item); |
| 1127 | + } |
| 1128 | |
| 1129 | onFocusChanged: if (focus) column.positionViewAtIndex(index, ListView.Contain) |
| 1130 | |
| 1131 | |
| 1132 | === modified file 'qml/Dash/Previews/PreviewActionButton.qml' |
| 1133 | --- qml/Dash/Previews/PreviewActionButton.qml 2014-08-14 12:01:03 +0000 |
| 1134 | +++ qml/Dash/Previews/PreviewActionButton.qml 2015-10-26 15:26:58 +0000 |
| 1135 | @@ -15,7 +15,7 @@ |
| 1136 | */ |
| 1137 | |
| 1138 | import QtQuick 2.0 |
| 1139 | -import Ubuntu.Components 1.1 |
| 1140 | +import Ubuntu.Components 1.3 |
| 1141 | |
| 1142 | Button { |
| 1143 | signal triggeredAction(var actionData) |
| 1144 | |
| 1145 | === modified file 'qml/Dash/Previews/PreviewActionCombo.qml' |
| 1146 | --- qml/Dash/Previews/PreviewActionCombo.qml 2014-08-15 08:40:36 +0000 |
| 1147 | +++ qml/Dash/Previews/PreviewActionCombo.qml 2015-10-26 15:26:58 +0000 |
| 1148 | @@ -1,5 +1,5 @@ |
| 1149 | /* |
| 1150 | - * Copyright (C) 2014 Canonical, Ltd. |
| 1151 | + * Copyright (C) 2014,2015 Canonical, Ltd. |
| 1152 | * |
| 1153 | * This program is free software; you can redistribute it and/or modify |
| 1154 | * it under the terms of the GNU General Public License as published by |
| 1155 | @@ -15,7 +15,7 @@ |
| 1156 | */ |
| 1157 | |
| 1158 | import QtQuick 2.0 |
| 1159 | -import Ubuntu.Components 1.1 |
| 1160 | +import Ubuntu.Components 1.3 |
| 1161 | |
| 1162 | Item { |
| 1163 | id: root |
| 1164 | @@ -33,7 +33,7 @@ |
| 1165 | |
| 1166 | objectName: "moreLessButton" |
| 1167 | text: !expanded ? i18n.tr("More...") : i18n.tr("Less...") |
| 1168 | - strokeColor: Theme.palette.normal.baseText |
| 1169 | + strokeColor: theme.palette.normal.baseText |
| 1170 | onClicked: expanded = !expanded |
| 1171 | width: parent.width |
| 1172 | } |
| 1173 | |
| 1174 | === modified file 'qml/Dash/Previews/PreviewActions.qml' |
| 1175 | --- qml/Dash/Previews/PreviewActions.qml 2015-08-04 13:53:55 +0000 |
| 1176 | +++ qml/Dash/Previews/PreviewActions.qml 2015-10-26 15:26:58 +0000 |
| 1177 | @@ -1,5 +1,5 @@ |
| 1178 | /* |
| 1179 | - * Copyright (C) 2014 Canonical, Ltd. |
| 1180 | + * Copyright (C) 2014,2015 Canonical, Ltd. |
| 1181 | * |
| 1182 | * This program is free software; you can redistribute it and/or modify |
| 1183 | * it under the terms of the GNU General Public License as published by |
| 1184 | @@ -15,7 +15,7 @@ |
| 1185 | */ |
| 1186 | |
| 1187 | import QtQuick 2.1 |
| 1188 | -import Ubuntu.Components 1.1 |
| 1189 | +import Ubuntu.Components 1.3 |
| 1190 | |
| 1191 | /*! This preview widget shows either one button, two buttons or one button |
| 1192 | * and a combo button depending on the number of items in widgetData["actions"]. |
| 1193 | @@ -50,7 +50,7 @@ |
| 1194 | Binding { |
| 1195 | target: loader.item |
| 1196 | property: "strokeColor" |
| 1197 | - value: root.scopeStyle ? root.scopeStyle.foreground : Theme.palette.normal.baseText |
| 1198 | + value: root.scopeStyle ? root.scopeStyle.foreground : theme.palette.normal.baseText |
| 1199 | } |
| 1200 | Connections { |
| 1201 | target: loader.item |
| 1202 | |
| 1203 | === modified file 'qml/Dash/Previews/PreviewAudioPlayback.qml' |
| 1204 | --- qml/Dash/Previews/PreviewAudioPlayback.qml 2015-08-03 14:27:48 +0000 |
| 1205 | +++ qml/Dash/Previews/PreviewAudioPlayback.qml 2015-10-26 15:26:58 +0000 |
| 1206 | @@ -1,5 +1,5 @@ |
| 1207 | /* |
| 1208 | - * Copyright (C) 2014 Canonical, Ltd. |
| 1209 | + * Copyright (C) 2014,2015 Canonical, Ltd. |
| 1210 | * |
| 1211 | * This program is free software; you can redistribute it and/or modify |
| 1212 | * it under the terms of the GNU General Public License as published by |
| 1213 | @@ -16,7 +16,7 @@ |
| 1214 | |
| 1215 | import QtQuick 2.0 |
| 1216 | import QtMultimedia 5.0 |
| 1217 | -import Ubuntu.Components 0.1 |
| 1218 | +import Ubuntu.Components 1.3 |
| 1219 | |
| 1220 | /*! \brief Preview widget for audio tracks. |
| 1221 | |
| 1222 | @@ -139,7 +139,7 @@ |
| 1223 | objectName: "trackTitleLabel" |
| 1224 | anchors { top: parent.top; left: parent.left; right: parent.right } |
| 1225 | opacity: 0.9 |
| 1226 | - color: scopeStyle ? scopeStyle.foreground : Theme.palette.normal.baseText |
| 1227 | + color: scopeStyle ? scopeStyle.foreground : theme.palette.normal.baseText |
| 1228 | fontSize: "small" |
| 1229 | horizontalAlignment: Text.AlignLeft |
| 1230 | text: modelData["title"] |
| 1231 | @@ -152,7 +152,7 @@ |
| 1232 | anchors { top: trackTitleLabel.bottom; left: parent.left; right: parent.right } |
| 1233 | visible: text !== "" |
| 1234 | opacity: 0.9 |
| 1235 | - color: scopeStyle ? scopeStyle.foreground : Theme.palette.normal.baseText |
| 1236 | + color: scopeStyle ? scopeStyle.foreground : theme.palette.normal.baseText |
| 1237 | font.weight: Font.Light |
| 1238 | fontSize: "small" |
| 1239 | horizontalAlignment: Text.AlignLeft |
| 1240 | @@ -175,7 +175,7 @@ |
| 1241 | } |
| 1242 | height: units.dp(2) |
| 1243 | visible: progressBarImage.visible |
| 1244 | - color: UbuntuColors.orange |
| 1245 | + backgroundColor: UbuntuColors.orange |
| 1246 | } |
| 1247 | |
| 1248 | Image { |
| 1249 | @@ -193,7 +193,7 @@ |
| 1250 | anchors.verticalCenter: parent.verticalCenter |
| 1251 | width: parent.column3Width |
| 1252 | opacity: 0.9 |
| 1253 | - color: scopeStyle ? scopeStyle.foreground : Theme.palette.normal.baseText |
| 1254 | + color: scopeStyle ? scopeStyle.foreground : theme.palette.normal.baseText |
| 1255 | fontSize: "small" |
| 1256 | horizontalAlignment: Text.AlignRight |
| 1257 | text: audio.lengthToString(modelData["length"]) |
| 1258 | |
| 1259 | === modified file 'qml/Dash/Previews/PreviewComment.qml' |
| 1260 | --- qml/Dash/Previews/PreviewComment.qml 2015-07-06 15:33:11 +0000 |
| 1261 | +++ qml/Dash/Previews/PreviewComment.qml 2015-10-26 15:26:58 +0000 |
| 1262 | @@ -15,7 +15,7 @@ |
| 1263 | */ |
| 1264 | |
| 1265 | import QtQuick 2.0 |
| 1266 | -import Ubuntu.Components 1.2 |
| 1267 | +import Ubuntu.Components 1.3 |
| 1268 | |
| 1269 | /*! \brief Preview widget for comments. |
| 1270 | |
| 1271 | |
| 1272 | === modified file 'qml/Dash/Previews/PreviewCommentInput.qml' |
| 1273 | --- qml/Dash/Previews/PreviewCommentInput.qml 2015-08-24 03:46:15 +0000 |
| 1274 | +++ qml/Dash/Previews/PreviewCommentInput.qml 2015-10-26 15:26:58 +0000 |
| 1275 | @@ -15,7 +15,7 @@ |
| 1276 | */ |
| 1277 | |
| 1278 | import QtQuick 2.0 |
| 1279 | -import Ubuntu.Components 1.1 |
| 1280 | +import Ubuntu.Components 1.3 |
| 1281 | import "../../Components" |
| 1282 | |
| 1283 | /*! \brief Preview widget for commenting. |
| 1284 | |
| 1285 | === modified file 'qml/Dash/Previews/PreviewExpandable.qml' |
| 1286 | --- qml/Dash/Previews/PreviewExpandable.qml 2015-09-15 12:05:09 +0000 |
| 1287 | +++ qml/Dash/Previews/PreviewExpandable.qml 2015-10-26 15:26:58 +0000 |
| 1288 | @@ -1,5 +1,5 @@ |
| 1289 | /* |
| 1290 | - * Copyright (C) 2014 Canonical, Ltd. |
| 1291 | + * Copyright (C) 2014,2015 Canonical, Ltd. |
| 1292 | * |
| 1293 | * This program is free software; you can redistribute it and/or modify |
| 1294 | * it under the terms of the GNU General Public License as published by |
| 1295 | @@ -15,7 +15,7 @@ |
| 1296 | */ |
| 1297 | |
| 1298 | import QtQuick 2.3 |
| 1299 | -import Ubuntu.Components 1.1 |
| 1300 | +import Ubuntu.Components 1.3 |
| 1301 | import "../../Components" |
| 1302 | |
| 1303 | /*! \brief Preview widget for expandable widgets. |
| 1304 | @@ -41,7 +41,7 @@ |
| 1305 | right: expandButton.left |
| 1306 | } |
| 1307 | fontSize: "large" |
| 1308 | - color: root.scopeStyle ? root.scopeStyle.foreground : Theme.palette.normal.baseText |
| 1309 | + color: root.scopeStyle ? root.scopeStyle.foreground : theme.palette.normal.baseText |
| 1310 | visible: text !== "" |
| 1311 | opacity: .8 |
| 1312 | text: widgetData["title"] || "" |
| 1313 | @@ -62,7 +62,7 @@ |
| 1314 | width: units.gu(3) |
| 1315 | height: units.gu(3) |
| 1316 | name: root.expanded ? "view-collapse" : "view-expand" |
| 1317 | - color: root.scopeStyle ? root.scopeStyle.foreground : Theme.palette.normal.baseText |
| 1318 | + color: root.scopeStyle ? root.scopeStyle.foreground : theme.palette.normal.baseText |
| 1319 | } |
| 1320 | } |
| 1321 | |
| 1322 | |
| 1323 | === modified file 'qml/Dash/Previews/PreviewHeader.qml' |
| 1324 | --- qml/Dash/Previews/PreviewHeader.qml 2015-08-04 13:53:55 +0000 |
| 1325 | +++ qml/Dash/Previews/PreviewHeader.qml 2015-10-26 15:26:58 +0000 |
| 1326 | @@ -1,5 +1,5 @@ |
| 1327 | /* |
| 1328 | - * Copyright (C) 2014 Canonical, Ltd. |
| 1329 | + * Copyright (C) 2014,2015 Canonical, Ltd. |
| 1330 | * |
| 1331 | * This program is free software; you can redistribute it and/or modify |
| 1332 | * it under the terms of the GNU General Public License as published by |
| 1333 | @@ -15,7 +15,7 @@ |
| 1334 | */ |
| 1335 | |
| 1336 | import QtQuick 2.0 |
| 1337 | -import Ubuntu.Components 0.1 |
| 1338 | +import Ubuntu.Components 1.3 |
| 1339 | import Dash 0.1 |
| 1340 | import "../" |
| 1341 | |
| 1342 | @@ -40,10 +40,10 @@ |
| 1343 | readonly property string title: root.widgetData["title"] || "" |
| 1344 | readonly property string subtitle: root.widgetData["subtitle"] || "" |
| 1345 | readonly property var attributes: root.widgetData["attributes"] || null |
| 1346 | - readonly property color fontColor: root.scopeStyle ? root.scopeStyle.foreground : Theme.palette.normal.baseText |
| 1347 | + readonly property color fontColor: root.scopeStyle ? root.scopeStyle.foreground : theme.palette.normal.baseText |
| 1348 | |
| 1349 | // Rewire the source since we may have unwired it on onStatusChanged |
| 1350 | - onMascotChanged: if (mascotShapeLoader.item) mascotShapeLoader.item.image.source = mascot; |
| 1351 | + onMascotChanged: if (mascotShapeLoader.item) mascotShapeLoader.item.source.source = mascot; |
| 1352 | |
| 1353 | implicitHeight: row.height + row.margins * 2 |
| 1354 | width: parent.width |
| 1355 | @@ -77,16 +77,16 @@ |
| 1356 | |
| 1357 | sourceComponent: UbuntuShape { |
| 1358 | objectName: "mascotShape" |
| 1359 | - visible: image.status === Image.Ready |
| 1360 | - image: Image { |
| 1361 | + visible: source.status === Image.Ready |
| 1362 | + sourceFillMode: UbuntuShape.PreserveAspectCrop |
| 1363 | + sourceHorizontalAlignment: UbuntuShape.AlignHCenter |
| 1364 | + sourceVerticalAlignment: UbuntuShape.AlignVCenter |
| 1365 | + source: Image { |
| 1366 | source: headerRoot.mascot |
| 1367 | width: source ? mascotShapeLoader.width : 0 |
| 1368 | height: mascotShapeLoader.height |
| 1369 | |
| 1370 | sourceSize { width: mascotShapeLoader.maxSize; height: mascotShapeLoader.maxSize } |
| 1371 | - fillMode: Image.PreserveAspectCrop |
| 1372 | - horizontalAlignment: Image.AlignHCenter |
| 1373 | - verticalAlignment: Image.AlignVCenter |
| 1374 | onStatusChanged: if (status === Image.Error) source = headerRoot.fallback; |
| 1375 | } |
| 1376 | } |
| 1377 | |
| 1378 | === modified file 'qml/Dash/Previews/PreviewIconActions.qml' |
| 1379 | --- qml/Dash/Previews/PreviewIconActions.qml 2015-07-08 10:55:38 +0000 |
| 1380 | +++ qml/Dash/Previews/PreviewIconActions.qml 2015-10-26 15:26:58 +0000 |
| 1381 | @@ -15,7 +15,7 @@ |
| 1382 | */ |
| 1383 | |
| 1384 | import QtQuick 2.1 |
| 1385 | -import Ubuntu.Components 1.1 |
| 1386 | +import Ubuntu.Components 1.3 |
| 1387 | |
| 1388 | /*! This preview widget icons+label for number of items in widgetData["actions"]. |
| 1389 | * For each of the items we recognize the fields "label", "icon", "temporaryIcon" and "id". |
| 1390 | |
| 1391 | === modified file 'qml/Dash/Previews/PreviewImageGallery.qml' |
| 1392 | --- qml/Dash/Previews/PreviewImageGallery.qml 2015-05-06 15:05:06 +0000 |
| 1393 | +++ qml/Dash/Previews/PreviewImageGallery.qml 2015-10-26 15:26:58 +0000 |
| 1394 | @@ -15,7 +15,7 @@ |
| 1395 | */ |
| 1396 | |
| 1397 | import QtQuick 2.0 |
| 1398 | -import Ubuntu.Components 1.1 |
| 1399 | +import Ubuntu.Components 1.3 |
| 1400 | import "../../Components" |
| 1401 | |
| 1402 | /*! This preview widget shows a horizontal list of images. |
| 1403 | @@ -62,7 +62,7 @@ |
| 1404 | source: modelData ? modelData : "" |
| 1405 | scaleTo: "height" |
| 1406 | initialWidth: units.gu(13) |
| 1407 | - borderSource: mouseArea.pressed ? "radius_pressed.sci" : "radius_idle.sci" |
| 1408 | + pressed: mouseArea.pressed |
| 1409 | |
| 1410 | MouseArea { |
| 1411 | id: mouseArea |
| 1412 | |
| 1413 | === modified file 'qml/Dash/Previews/PreviewOverlay.qml' |
| 1414 | --- qml/Dash/Previews/PreviewOverlay.qml 2015-03-10 12:23:46 +0000 |
| 1415 | +++ qml/Dash/Previews/PreviewOverlay.qml 2015-10-26 15:26:58 +0000 |
| 1416 | @@ -1,5 +1,5 @@ |
| 1417 | /* |
| 1418 | - * Copyright (C) 2014 Canonical, Ltd. |
| 1419 | + * Copyright (C) 2014,2015 Canonical, Ltd. |
| 1420 | * |
| 1421 | * This program is free software; you can redistribute it and/or modify |
| 1422 | * it under the terms of the GNU General Public License as published by |
| 1423 | @@ -15,7 +15,7 @@ |
| 1424 | */ |
| 1425 | |
| 1426 | import QtQuick 2.0 |
| 1427 | -import Ubuntu.Components 1.1 |
| 1428 | +import Ubuntu.Components 1.3 |
| 1429 | import "../../Components" |
| 1430 | |
| 1431 | Rectangle { |
| 1432 | @@ -158,7 +158,7 @@ |
| 1433 | anchors.centerIn: parent |
| 1434 | width: units.gu(2.5) |
| 1435 | height: width |
| 1436 | - color: Theme.palette.normal.foregroundText |
| 1437 | + color: theme.palette.normal.foregroundText |
| 1438 | name: "close" |
| 1439 | } |
| 1440 | } |
| 1441 | |
| 1442 | === modified file 'qml/Dash/Previews/PreviewPayments.qml' |
| 1443 | --- qml/Dash/Previews/PreviewPayments.qml 2014-11-20 11:44:44 +0000 |
| 1444 | +++ qml/Dash/Previews/PreviewPayments.qml 2015-10-26 15:26:58 +0000 |
| 1445 | @@ -15,7 +15,7 @@ |
| 1446 | */ |
| 1447 | |
| 1448 | import QtQuick 2.1 |
| 1449 | -import Ubuntu.Components 0.1 |
| 1450 | +import Ubuntu.Components 1.3 |
| 1451 | import Ubuntu.Payments 0.1 |
| 1452 | |
| 1453 | /*! \brief Preview widget for a purchase button. |
| 1454 | |
| 1455 | === modified file 'qml/Dash/Previews/PreviewProgress.qml' |
| 1456 | --- qml/Dash/Previews/PreviewProgress.qml 2014-04-30 10:51:30 +0000 |
| 1457 | +++ qml/Dash/Previews/PreviewProgress.qml 2015-10-26 15:26:58 +0000 |
| 1458 | @@ -15,7 +15,7 @@ |
| 1459 | */ |
| 1460 | |
| 1461 | import QtQuick 2.1 |
| 1462 | -import Ubuntu.Components 0.1 |
| 1463 | +import Ubuntu.Components 1.3 |
| 1464 | import Ubuntu.DownloadDaemonListener 0.1 |
| 1465 | |
| 1466 | /*! \brief Preview widget for a progress bar. |
| 1467 | |
| 1468 | === modified file 'qml/Dash/Previews/PreviewRatingDisplay.qml' |
| 1469 | --- qml/Dash/Previews/PreviewRatingDisplay.qml 2015-08-04 13:53:55 +0000 |
| 1470 | +++ qml/Dash/Previews/PreviewRatingDisplay.qml 2015-10-26 15:26:58 +0000 |
| 1471 | @@ -1,5 +1,5 @@ |
| 1472 | /* |
| 1473 | - * Copyright (C) 2014 Canonical, Ltd. |
| 1474 | + * Copyright (C) 2014,2015 Canonical, Ltd. |
| 1475 | * |
| 1476 | * This program is free software; you can redistribute it and/or modify |
| 1477 | * it under the terms of the GNU General Public License as published by |
| 1478 | @@ -15,7 +15,7 @@ |
| 1479 | */ |
| 1480 | |
| 1481 | import QtQuick 2.0 |
| 1482 | -import Ubuntu.Components 0.1 |
| 1483 | +import Ubuntu.Components 1.3 |
| 1484 | import "../../Components" |
| 1485 | |
| 1486 | /*! \brief Preview widget for rating display. |
| 1487 | @@ -60,7 +60,7 @@ |
| 1488 | urlIconEmpty: widgetData["rating-icon-empty"] |
| 1489 | urlIconFull: widgetData["rating-icon-full"] |
| 1490 | urlIconHalf: widgetData["rating-icon-half"] |
| 1491 | - labelColor: scopeStyle ? scopeStyle.foreground : Theme.palette.normal.baseText |
| 1492 | + labelColor: scopeStyle ? scopeStyle.foreground : theme.palette.normal.baseText |
| 1493 | } |
| 1494 | } |
| 1495 | } |
| 1496 | |
| 1497 | === modified file 'qml/Dash/Previews/PreviewRatingEdit.qml' |
| 1498 | --- qml/Dash/Previews/PreviewRatingEdit.qml 2015-05-08 13:12:02 +0000 |
| 1499 | +++ qml/Dash/Previews/PreviewRatingEdit.qml 2015-10-26 15:26:58 +0000 |
| 1500 | @@ -15,7 +15,7 @@ |
| 1501 | */ |
| 1502 | |
| 1503 | import QtQuick 2.4 |
| 1504 | -import Ubuntu.Components 0.1 |
| 1505 | +import Ubuntu.Components 1.3 |
| 1506 | import "../../Components" |
| 1507 | |
| 1508 | /*! \brief Preview widget for editable rating. |
| 1509 | @@ -56,7 +56,7 @@ |
| 1510 | urlIconEmpty: widgetData["rating-icon-empty"] |
| 1511 | urlIconFull: widgetData["rating-icon-full"] |
| 1512 | urlIconHalf: widgetData["rating-icon-half"] |
| 1513 | - labelColor: scopeStyle ? scopeStyle.foreground : Theme.palette.normal.baseText |
| 1514 | + labelColor: scopeStyle ? scopeStyle.foreground : theme.palette.normal.baseText |
| 1515 | } |
| 1516 | |
| 1517 | PreviewRatingInput { |
| 1518 | |
| 1519 | === modified file 'qml/Dash/Previews/PreviewRatingInput.qml' |
| 1520 | --- qml/Dash/Previews/PreviewRatingInput.qml 2015-08-31 10:40:59 +0000 |
| 1521 | +++ qml/Dash/Previews/PreviewRatingInput.qml 2015-10-26 15:26:58 +0000 |
| 1522 | @@ -1,5 +1,5 @@ |
| 1523 | /* |
| 1524 | - * Copyright (C) 2014 Canonical, Ltd. |
| 1525 | + * Copyright (C) 2014,2015 Canonical, Ltd. |
| 1526 | * |
| 1527 | * This program is free software; you can redistribute it and/or modify |
| 1528 | * it under the terms of the GNU General Public License as published by |
| 1529 | @@ -15,7 +15,7 @@ |
| 1530 | */ |
| 1531 | |
| 1532 | import QtQuick 2.0 |
| 1533 | -import Ubuntu.Components 0.1 |
| 1534 | +import Ubuntu.Components 1.3 |
| 1535 | import "../../Components" |
| 1536 | |
| 1537 | /*! \brief Preview widget for rating. |
| 1538 | @@ -79,7 +79,7 @@ |
| 1539 | verticalCenter: parent.verticalCenter |
| 1540 | left: parent.left |
| 1541 | } |
| 1542 | - color: root.scopeStyle ? root.scopeStyle.foreground : Theme.palette.normal.baseText |
| 1543 | + color: root.scopeStyle ? root.scopeStyle.foreground : theme.palette.normal.baseText |
| 1544 | opacity: .8 |
| 1545 | text: widgetData["rating-label"] || i18n.tr("Rate this") |
| 1546 | } |
| 1547 | @@ -124,7 +124,7 @@ |
| 1548 | left: parent.left |
| 1549 | right: parent.right |
| 1550 | } |
| 1551 | - color: root.scopeStyle ? root.scopeStyle.foreground : Theme.palette.normal.baseText |
| 1552 | + color: root.scopeStyle ? root.scopeStyle.foreground : theme.palette.normal.baseText |
| 1553 | opacity: .8 |
| 1554 | text: widgetData["review-label"] || i18n.tr("Add a review") |
| 1555 | } |
| 1556 | @@ -170,7 +170,7 @@ |
| 1557 | top: parent.top |
| 1558 | right: parent.right |
| 1559 | } |
| 1560 | - color: readyToSubmit ? Theme.palette.selected.base : Theme.palette.normal.base |
| 1561 | + color: readyToSubmit ? theme.palette.selected.base : theme.palette.normal.base |
| 1562 | text: widgetData["submit-label"] || i18n.tr("Send") |
| 1563 | onClicked: { |
| 1564 | if (readyToSubmit) root.submit() |
| 1565 | |
| 1566 | === modified file 'qml/Dash/Previews/PreviewRatingSingleDisplay.qml' |
| 1567 | --- qml/Dash/Previews/PreviewRatingSingleDisplay.qml 2015-05-08 13:12:02 +0000 |
| 1568 | +++ qml/Dash/Previews/PreviewRatingSingleDisplay.qml 2015-10-26 15:26:58 +0000 |
| 1569 | @@ -15,7 +15,7 @@ |
| 1570 | */ |
| 1571 | |
| 1572 | import QtQuick 2.4 |
| 1573 | -import Ubuntu.Components 0.1 |
| 1574 | +import Ubuntu.Components 1.3 |
| 1575 | import "../../Components" |
| 1576 | |
| 1577 | Column { |
| 1578 | |
| 1579 | === modified file 'qml/Dash/Previews/PreviewTable.qml' |
| 1580 | --- qml/Dash/Previews/PreviewTable.qml 2015-04-13 10:37:41 +0000 |
| 1581 | +++ qml/Dash/Previews/PreviewTable.qml 2015-10-26 15:26:58 +0000 |
| 1582 | @@ -1,5 +1,5 @@ |
| 1583 | /* |
| 1584 | - * Copyright (C) 2014 Canonical, Ltd. |
| 1585 | + * Copyright (C) 2014,2015 Canonical, Ltd. |
| 1586 | * |
| 1587 | * This program is free software; you can redistribute it and/or modify |
| 1588 | * it under the terms of the GNU General Public License as published by |
| 1589 | @@ -16,7 +16,7 @@ |
| 1590 | |
| 1591 | import QtQuick 2.0 |
| 1592 | import QtQuick.Layouts 1.1 |
| 1593 | -import Ubuntu.Components 0.1 |
| 1594 | +import Ubuntu.Components 1.3 |
| 1595 | import "../../Components" |
| 1596 | |
| 1597 | /*! \brief Preview widget for table. |
| 1598 | @@ -48,7 +48,7 @@ |
| 1599 | } |
| 1600 | height: visible ? implicitHeight : 0 |
| 1601 | fontSize: "large" |
| 1602 | - color: root.scopeStyle ? root.scopeStyle.foreground : Theme.palette.normal.baseText |
| 1603 | + color: root.scopeStyle ? root.scopeStyle.foreground : theme.palette.normal.baseText |
| 1604 | visible: text !== "" |
| 1605 | opacity: .8 |
| 1606 | text: widgetData["title"] || "" |
| 1607 | @@ -72,7 +72,7 @@ |
| 1608 | fontSize: "small" |
| 1609 | text: perRowRepeater.model[index] |
| 1610 | visible: root.expanded || rowIndex < maximumCollapsedRowCount |
| 1611 | - color: root.scopeStyle ? root.scopeStyle.foreground : Theme.palette.normal.baseText |
| 1612 | + color: root.scopeStyle ? root.scopeStyle.foreground : theme.palette.normal.baseText |
| 1613 | font.bold: index == 0 |
| 1614 | wrapMode: Text.Wrap |
| 1615 | Layout.alignment: Qt.AlignTop |
| 1616 | |
| 1617 | === modified file 'qml/Dash/Previews/PreviewTextSummary.qml' |
| 1618 | --- qml/Dash/Previews/PreviewTextSummary.qml 2014-10-10 10:37:03 +0000 |
| 1619 | +++ qml/Dash/Previews/PreviewTextSummary.qml 2015-10-26 15:26:58 +0000 |
| 1620 | @@ -1,5 +1,5 @@ |
| 1621 | /* |
| 1622 | - * Copyright (C) 2014 Canonical, Ltd. |
| 1623 | + * Copyright (C) 2014,2015 Canonical, Ltd. |
| 1624 | * |
| 1625 | * This program is free software; you can redistribute it and/or modify |
| 1626 | * it under the terms of the GNU General Public License as published by |
| 1627 | @@ -15,7 +15,7 @@ |
| 1628 | */ |
| 1629 | |
| 1630 | import QtQuick 2.0 |
| 1631 | -import Ubuntu.Components 0.1 |
| 1632 | +import Ubuntu.Components 1.3 |
| 1633 | import "../../Components" |
| 1634 | |
| 1635 | /*! \brief Preview widget for text. |
| 1636 | @@ -39,7 +39,7 @@ |
| 1637 | } |
| 1638 | height: visible ? implicitHeight : 0 |
| 1639 | fontSize: "large" |
| 1640 | - color: root.scopeStyle ? root.scopeStyle.foreground : Theme.palette.normal.baseText |
| 1641 | + color: root.scopeStyle ? root.scopeStyle.foreground : theme.palette.normal.baseText |
| 1642 | visible: text !== "" |
| 1643 | opacity: .8 |
| 1644 | text: widgetData["title"] || "" |
| 1645 | @@ -61,7 +61,7 @@ |
| 1646 | clip: true |
| 1647 | fontSize: "small" |
| 1648 | lineHeight: 1.2 |
| 1649 | - color: root.scopeStyle ? root.scopeStyle.foreground : Theme.palette.normal.baseText |
| 1650 | + color: root.scopeStyle ? root.scopeStyle.foreground : theme.palette.normal.baseText |
| 1651 | opacity: .8 |
| 1652 | text: widgetData["text"] || "" |
| 1653 | wrapMode: Text.Wrap |
| 1654 | |
| 1655 | === modified file 'qml/Dash/Previews/PreviewVideoPlayback.qml' |
| 1656 | --- qml/Dash/Previews/PreviewVideoPlayback.qml 2014-03-31 13:06:36 +0000 |
| 1657 | +++ qml/Dash/Previews/PreviewVideoPlayback.qml 2015-10-26 15:26:58 +0000 |
| 1658 | @@ -15,7 +15,7 @@ |
| 1659 | */ |
| 1660 | |
| 1661 | import QtQuick 2.0 |
| 1662 | -import Ubuntu.Components 0.1 |
| 1663 | +import Ubuntu.Components 1.3 |
| 1664 | import Ubuntu.Thumbnailer 0.1 |
| 1665 | import "../../Components" |
| 1666 | |
| 1667 | @@ -30,6 +30,8 @@ |
| 1668 | implicitWidth: units.gu(35) |
| 1669 | implicitHeight: childrenRect.height |
| 1670 | |
| 1671 | + widgetMargins: -units.gu(1) |
| 1672 | + |
| 1673 | LazyImage { |
| 1674 | objectName: "screenshot" |
| 1675 | anchors { |
| 1676 | @@ -51,6 +53,7 @@ |
| 1677 | return ""; |
| 1678 | } |
| 1679 | initialHeight: width * 10 / 16 |
| 1680 | + useUbuntuShape: false |
| 1681 | |
| 1682 | Image { |
| 1683 | objectName: "playButton" |
| 1684 | |
| 1685 | === modified file 'qml/Dash/Previews/PreviewWidget.qml' |
| 1686 | --- qml/Dash/Previews/PreviewWidget.qml 2015-08-31 10:40:59 +0000 |
| 1687 | +++ qml/Dash/Previews/PreviewWidget.qml 2015-10-26 15:26:58 +0000 |
| 1688 | @@ -34,6 +34,9 @@ |
| 1689 | //! Should the widget show in expanded mode (For those that support it) |
| 1690 | property bool expanded: true |
| 1691 | |
| 1692 | + //! Set margins width. |
| 1693 | + property real widgetMargins: units.gu(1) |
| 1694 | + |
| 1695 | /*! \brief This signal should be emitted when a preview action was triggered. |
| 1696 | * |
| 1697 | * \param widgetId, actionId Respective identifiers from widgetData. |
| 1698 | |
| 1699 | === modified file 'qml/Dash/Previews/PreviewWidgetFactory.qml' |
| 1700 | --- qml/Dash/Previews/PreviewWidgetFactory.qml 2015-09-15 12:05:09 +0000 |
| 1701 | +++ qml/Dash/Previews/PreviewWidgetFactory.qml 2015-10-26 15:26:58 +0000 |
| 1702 | @@ -40,6 +40,9 @@ |
| 1703 | //! Set to true if the parent preview is displayed. |
| 1704 | property bool isCurrentPreview: false |
| 1705 | |
| 1706 | + //! Set margins width. |
| 1707 | + property real widgetMargins: status === Loader.Ready ? item.widgetMargins : units.gu(1) |
| 1708 | + |
| 1709 | //! Triggered signal forwarded from the widgets. |
| 1710 | signal triggered(string widgetId, string actionId, var data) |
| 1711 | |
| 1712 | |
| 1713 | === modified file 'qml/Dash/Previews/PreviewZoomableImage.qml' |
| 1714 | --- qml/Dash/Previews/PreviewZoomableImage.qml 2015-05-06 15:05:06 +0000 |
| 1715 | +++ qml/Dash/Previews/PreviewZoomableImage.qml 2015-10-26 15:26:58 +0000 |
| 1716 | @@ -15,7 +15,7 @@ |
| 1717 | */ |
| 1718 | |
| 1719 | import QtQuick 2.0 |
| 1720 | -import Ubuntu.Components 0.1 |
| 1721 | +import Ubuntu.Components 1.3 |
| 1722 | import "../../Components" |
| 1723 | |
| 1724 | /*! \brief Preview widget for image. |
| 1725 | @@ -27,7 +27,10 @@ |
| 1726 | |
| 1727 | PreviewWidget { |
| 1728 | id: root |
| 1729 | - implicitHeight: units.gu(22) |
| 1730 | + implicitWidth: units.gu(35) |
| 1731 | + implicitHeight: lazyImage.height |
| 1732 | + |
| 1733 | + widgetMargins: -units.gu(1) |
| 1734 | |
| 1735 | property Item rootItem: QuickUtils.rootItem(root) |
| 1736 | |
| 1737 | @@ -35,15 +38,14 @@ |
| 1738 | id: lazyImage |
| 1739 | objectName: "lazyImage" |
| 1740 | anchors { |
| 1741 | - top: parent.top |
| 1742 | - bottom: parent.bottom |
| 1743 | - horizontalCenter: parent.horizontalCenter |
| 1744 | + left: parent.left |
| 1745 | + right: parent.right |
| 1746 | } |
| 1747 | - scaleTo: "height" |
| 1748 | + scaleTo: "width" |
| 1749 | source: widgetData["source"] |
| 1750 | asynchronous: true |
| 1751 | - |
| 1752 | - borderSource: mouseArea.pressed ? "radius_pressed.sci" : "radius_idle.sci" |
| 1753 | + useUbuntuShape: false |
| 1754 | + pressed: mouseArea.pressed |
| 1755 | |
| 1756 | MouseArea { |
| 1757 | id: mouseArea |
| 1758 | |
| 1759 | === modified file 'qml/Dash/PullToRefreshScopeStyle.qml' |
| 1760 | --- qml/Dash/PullToRefreshScopeStyle.qml 2014-09-30 14:22:22 +0000 |
| 1761 | +++ qml/Dash/PullToRefreshScopeStyle.qml 2015-10-26 15:26:58 +0000 |
| 1762 | @@ -15,8 +15,8 @@ |
| 1763 | */ |
| 1764 | |
| 1765 | import QtQuick 2.3 |
| 1766 | -import Ubuntu.Components 1.1 |
| 1767 | -import Ubuntu.Components.Styles 1.1 |
| 1768 | +import Ubuntu.Components 1.3 |
| 1769 | +import Ubuntu.Components.Styles 1.3 |
| 1770 | |
| 1771 | /** |
| 1772 | * TODO: Once the SDK version of PullToRefreshStyle doesn't have bug 1375799 |
| 1773 | |
| 1774 | === modified file 'qml/Dash/ScopeSettings/ScopeSetting.qml' |
| 1775 | --- qml/Dash/ScopeSettings/ScopeSetting.qml 2014-08-26 12:27:36 +0000 |
| 1776 | +++ qml/Dash/ScopeSettings/ScopeSetting.qml 2015-10-26 15:26:58 +0000 |
| 1777 | @@ -15,7 +15,7 @@ |
| 1778 | */ |
| 1779 | |
| 1780 | import QtQuick 2.2 |
| 1781 | -import Ubuntu.Components 1.1 |
| 1782 | +import Ubuntu.Components 1.3 |
| 1783 | |
| 1784 | /*! Interface for settings widgets. */ |
| 1785 | |
| 1786 | @@ -32,6 +32,15 @@ |
| 1787 | */ |
| 1788 | signal updated(var value) |
| 1789 | |
| 1790 | + /*! \brief This signal should be emitted when widget gains the focus |
| 1791 | + * and input method popups. |
| 1792 | + * And preview widget should reposition in visible area to avoid |
| 1793 | + * keyboard appears over the widget. |
| 1794 | + * |
| 1795 | + * \param item, id of specified item which is needed to reposition. |
| 1796 | + */ |
| 1797 | + signal makeSureVisible(var item) |
| 1798 | + |
| 1799 | //! \internal |
| 1800 | readonly property real settingMargins: units.gu(2) |
| 1801 | } |
| 1802 | |
| 1803 | === modified file 'qml/Dash/ScopeSettings/ScopeSettingBoolean.qml' |
| 1804 | --- qml/Dash/ScopeSettings/ScopeSettingBoolean.qml 2015-02-10 11:35:11 +0000 |
| 1805 | +++ qml/Dash/ScopeSettings/ScopeSettingBoolean.qml 2015-10-26 15:26:58 +0000 |
| 1806 | @@ -1,5 +1,5 @@ |
| 1807 | /* |
| 1808 | - * Copyright (C) 2014 Canonical, Ltd. |
| 1809 | + * Copyright (C) 2015 Canonical, Ltd. |
| 1810 | * |
| 1811 | * This program is free software; you can redistribute it and/or modify |
| 1812 | * it under the terms of the GNU General Public License as published by |
| 1813 | @@ -15,8 +15,8 @@ |
| 1814 | */ |
| 1815 | |
| 1816 | import QtQuick 2.2 |
| 1817 | -import Ubuntu.Components 1.1 |
| 1818 | -import Ubuntu.Components.ListItems 1.0 as ListItem |
| 1819 | +import Ubuntu.Components 1.3 |
| 1820 | +import Ubuntu.Components.ListItems 1.3 as ListItem |
| 1821 | |
| 1822 | ScopeSetting { |
| 1823 | id: root |
| 1824 | @@ -44,7 +44,7 @@ |
| 1825 | elide: Text.ElideMiddle |
| 1826 | maximumLineCount: 2 |
| 1827 | wrapMode: Text.Wrap |
| 1828 | - color: scopeStyle ? scopeStyle.foreground : Theme.palette.normal.baseText |
| 1829 | + color: scopeStyle ? scopeStyle.foreground : theme.palette.normal.baseText |
| 1830 | } |
| 1831 | |
| 1832 | CheckBox { |
| 1833 | |
| 1834 | === modified file 'qml/Dash/ScopeSettings/ScopeSettingList.qml' |
| 1835 | --- qml/Dash/ScopeSettings/ScopeSettingList.qml 2014-08-26 12:33:32 +0000 |
| 1836 | +++ qml/Dash/ScopeSettings/ScopeSettingList.qml 2015-10-26 15:26:58 +0000 |
| 1837 | @@ -15,8 +15,8 @@ |
| 1838 | */ |
| 1839 | |
| 1840 | import QtQuick 2.2 |
| 1841 | -import Ubuntu.Components 1.1 |
| 1842 | -import Ubuntu.Components.ListItems 1.0 as ListItem |
| 1843 | +import Ubuntu.Components 1.3 |
| 1844 | +import Ubuntu.Components.ListItems 1.3 as ListItem |
| 1845 | |
| 1846 | ScopeSetting { |
| 1847 | id: root |
| 1848 | |
| 1849 | === modified file 'qml/Dash/ScopeSettings/ScopeSettingString.qml' |
| 1850 | --- qml/Dash/ScopeSettings/ScopeSettingString.qml 2014-08-26 12:27:36 +0000 |
| 1851 | +++ qml/Dash/ScopeSettings/ScopeSettingString.qml 2015-10-26 15:26:58 +0000 |
| 1852 | @@ -1,5 +1,5 @@ |
| 1853 | /* |
| 1854 | - * Copyright (C) 2014 Canonical, Ltd. |
| 1855 | + * Copyright (C) 2015 Canonical, Ltd. |
| 1856 | * |
| 1857 | * This program is free software; you can redistribute it and/or modify |
| 1858 | * it under the terms of the GNU General Public License as published by |
| 1859 | @@ -15,8 +15,8 @@ |
| 1860 | */ |
| 1861 | |
| 1862 | import QtQuick 2.2 |
| 1863 | -import Ubuntu.Components 1.1 |
| 1864 | -import Ubuntu.Components.ListItems 1.0 as ListItem |
| 1865 | +import Ubuntu.Components 1.3 |
| 1866 | +import Ubuntu.Components.ListItems 1.3 as ListItem |
| 1867 | |
| 1868 | ScopeSetting { |
| 1869 | id: root |
| 1870 | @@ -44,7 +44,7 @@ |
| 1871 | elide: Text.ElideMiddle |
| 1872 | maximumLineCount: 2 |
| 1873 | wrapMode: Text.Wrap |
| 1874 | - color: scopeStyle ? scopeStyle.foreground : Theme.palette.normal.baseText |
| 1875 | + color: scopeStyle ? scopeStyle.foreground : theme.palette.normal.baseText |
| 1876 | } |
| 1877 | |
| 1878 | TextField { |
| 1879 | @@ -57,7 +57,7 @@ |
| 1880 | } |
| 1881 | width: root.mode == "number" ? units.gu(8) : units.gu(12) |
| 1882 | text: widgetData.value |
| 1883 | - color: scopeStyle ? scopeStyle.foreground : Theme.palette.normal.fieldText |
| 1884 | + color: scopeStyle ? scopeStyle.foreground : theme.palette.normal.fieldText |
| 1885 | validator: root.mode == "number" ? doubleValidator : null |
| 1886 | hasClearButton: root.mode == "number" ? false : true |
| 1887 | |
| 1888 | @@ -78,6 +78,12 @@ |
| 1889 | updateText(); |
| 1890 | } |
| 1891 | } |
| 1892 | + |
| 1893 | + readonly property bool inputMethodVisible: Qt.inputMethod.visible |
| 1894 | + onInputMethodVisibleChanged: { |
| 1895 | + if(inputMethodVisible && activeFocus) |
| 1896 | + root.makeSureVisible(control); |
| 1897 | + } |
| 1898 | } |
| 1899 | } |
| 1900 | } |
| 1901 | |
| 1902 | === modified file 'qml/Dash/ScopeSettings/ScopeSettingsWidgetFactory.qml' |
| 1903 | --- qml/Dash/ScopeSettings/ScopeSettingsWidgetFactory.qml 2014-08-26 12:33:32 +0000 |
| 1904 | +++ qml/Dash/ScopeSettings/ScopeSettingsWidgetFactory.qml 2015-10-26 15:26:58 +0000 |
| 1905 | @@ -30,6 +30,9 @@ |
| 1906 | //! Triggered signal forwarded from the widgets. |
| 1907 | signal updated(var value) |
| 1908 | |
| 1909 | + //! makeSureVisible signal forwarded from the widgets. |
| 1910 | + signal makeSureVisible(var item) |
| 1911 | + |
| 1912 | source: widgetSource |
| 1913 | |
| 1914 | //! \cond private |
| 1915 | @@ -53,5 +56,6 @@ |
| 1916 | Connections { |
| 1917 | target: root.item |
| 1918 | onUpdated: if (value !== widgetData.value) root.updated(value) |
| 1919 | + onMakeSureVisible: root.makeSureVisible(item) |
| 1920 | } |
| 1921 | } |
| 1922 | |
| 1923 | === modified file 'qml/Dash/ScopeSettingsPage.qml' |
| 1924 | --- qml/Dash/ScopeSettingsPage.qml 2014-10-23 11:59:22 +0000 |
| 1925 | +++ qml/Dash/ScopeSettingsPage.qml 2015-10-26 15:26:58 +0000 |
| 1926 | @@ -15,7 +15,7 @@ |
| 1927 | */ |
| 1928 | |
| 1929 | import QtQuick 2.2 |
| 1930 | -import Ubuntu.Components 1.1 |
| 1931 | +import Ubuntu.Components 1.3 |
| 1932 | import Unity 0.2 |
| 1933 | import "../Components" |
| 1934 | import "ScopeSettings" |
| 1935 | @@ -28,7 +28,7 @@ |
| 1936 | |
| 1937 | signal backClicked() |
| 1938 | |
| 1939 | - PageHeader { |
| 1940 | + DashPageHeader { |
| 1941 | id: header |
| 1942 | objectName: "pageHeader" |
| 1943 | width: parent.width |
| 1944 | @@ -51,6 +51,11 @@ |
| 1945 | model: root.scope ? root.scope.settings : null |
| 1946 | clip: true |
| 1947 | |
| 1948 | + ListViewOSKScroller { |
| 1949 | + id: oskScroller |
| 1950 | + list: scopeSettings |
| 1951 | + } |
| 1952 | + |
| 1953 | delegate: ScopeSettingsWidgetFactory { |
| 1954 | objectName: "scopeSettingItem" + index |
| 1955 | width: root.width |
| 1956 | @@ -58,6 +63,10 @@ |
| 1957 | scopeStyle: root.scopeStyle |
| 1958 | |
| 1959 | onUpdated: model.value = value; |
| 1960 | + |
| 1961 | + onMakeSureVisible: { // var item |
| 1962 | + oskScroller.setMakeSureVisibleItem(item); |
| 1963 | + } |
| 1964 | } |
| 1965 | } |
| 1966 | } |
| 1967 | |
| 1968 | === modified file 'qml/Dash/ScopesList.qml' |
| 1969 | --- qml/Dash/ScopesList.qml 2015-07-08 09:55:58 +0000 |
| 1970 | +++ qml/Dash/ScopesList.qml 2015-10-26 15:26:58 +0000 |
| 1971 | @@ -61,7 +61,7 @@ |
| 1972 | value: root.scope ? root.scope.searchQuery : "" |
| 1973 | } |
| 1974 | |
| 1975 | - PageHeader { |
| 1976 | + DashPageHeader { |
| 1977 | id: header |
| 1978 | objectName: "pageHeader" |
| 1979 | title: i18n.tr("Manage") |
| 1980 | |
| 1981 | === modified file 'qml/Dash/ScopesListCategory.qml' |
| 1982 | --- qml/Dash/ScopesListCategory.qml 2015-04-24 07:33:59 +0000 |
| 1983 | +++ qml/Dash/ScopesListCategory.qml 2015-10-26 15:26:58 +0000 |
| 1984 | @@ -1,5 +1,5 @@ |
| 1985 | /* |
| 1986 | - * Copyright (C) 2014 Canonical, Ltd. |
| 1987 | + * Copyright (C) 2014,2015 Canonical, Ltd. |
| 1988 | * |
| 1989 | * This program is free software; you can redistribute it and/or modify |
| 1990 | * it under the terms of the GNU General Public License as published by |
| 1991 | @@ -15,7 +15,7 @@ |
| 1992 | */ |
| 1993 | |
| 1994 | import QtQuick 2.3 |
| 1995 | -import Ubuntu.Components 1.1 |
| 1996 | +import Ubuntu.Components 1.3 |
| 1997 | import Dash 0.1 |
| 1998 | import "../Components/ListItems" as ListItems |
| 1999 | |
| 2000 | @@ -43,7 +43,7 @@ |
| 2001 | id: header |
| 2002 | width: root.width |
| 2003 | height: units.gu(5) |
| 2004 | - color: scopeStyle ? scopeStyle.foreground : Theme.palette.normal.baseText |
| 2005 | + color: scopeStyle ? scopeStyle.foreground : theme.palette.normal.baseText |
| 2006 | } |
| 2007 | |
| 2008 | readonly property double listItemHeight: units.gu(6) |
| 2009 | |
| 2010 | === modified file 'qml/Dash/ScopesListCategoryItem.qml' |
| 2011 | --- qml/Dash/ScopesListCategoryItem.qml 2015-02-13 12:03:32 +0000 |
| 2012 | +++ qml/Dash/ScopesListCategoryItem.qml 2015-10-26 15:26:58 +0000 |
| 2013 | @@ -16,7 +16,7 @@ |
| 2014 | |
| 2015 | import QtQuick 2.3 |
| 2016 | import QtQuick.Layouts 1.1 |
| 2017 | -import Ubuntu.Components 1.1 |
| 2018 | +import Ubuntu.Components 1.3 |
| 2019 | |
| 2020 | MouseArea { |
| 2021 | id: root |
| 2022 | @@ -49,10 +49,10 @@ |
| 2023 | width: units.gu(5) |
| 2024 | height: units.gu(5) |
| 2025 | visible: !hideChildren |
| 2026 | - image: Image { |
| 2027 | + sourceFillMode: UbuntuShape.PreserveAspectCrop |
| 2028 | + source: Image { |
| 2029 | id: shapeImage |
| 2030 | cache: true |
| 2031 | - fillMode: Image.PreserveAspectCrop |
| 2032 | sourceSize { width: shape.width; height: shape.height } |
| 2033 | } |
| 2034 | } |
| 2035 | |
| 2036 | === modified file 'qml/Greeter/Clock.qml' |
| 2037 | --- qml/Greeter/Clock.qml 2014-12-11 14:10:18 +0000 |
| 2038 | +++ qml/Greeter/Clock.qml 2015-10-26 15:26:58 +0000 |
| 2039 | @@ -15,7 +15,7 @@ |
| 2040 | */ |
| 2041 | |
| 2042 | import QtQuick 2.0 |
| 2043 | -import Ubuntu.Components 0.1 |
| 2044 | +import Ubuntu.Components 1.3 |
| 2045 | import "../Panel/Indicators" |
| 2046 | import Unity.Indicators 0.1 as Indicators |
| 2047 | |
| 2048 | |
| 2049 | === modified file 'qml/Greeter/CoverPage.qml' |
| 2050 | --- qml/Greeter/CoverPage.qml 2015-05-11 14:36:03 +0000 |
| 2051 | +++ qml/Greeter/CoverPage.qml 2015-10-26 15:26:58 +0000 |
| 2052 | @@ -15,7 +15,7 @@ |
| 2053 | */ |
| 2054 | |
| 2055 | import QtQuick 2.3 |
| 2056 | -import Ubuntu.Components 1.1 |
| 2057 | +import Ubuntu.Components 1.3 |
| 2058 | import Ubuntu.Gestures 0.1 |
| 2059 | import "../Components" |
| 2060 | |
| 2061 | |
| 2062 | === modified file 'qml/Greeter/Greeter.qml' |
| 2063 | --- qml/Greeter/Greeter.qml 2015-09-29 12:48:46 +0000 |
| 2064 | +++ qml/Greeter/Greeter.qml 2015-10-26 15:26:58 +0000 |
| 2065 | @@ -17,7 +17,7 @@ |
| 2066 | import QtQuick 2.3 |
| 2067 | import AccountsService 0.1 |
| 2068 | import GSettings 1.0 |
| 2069 | -import Ubuntu.Components 1.1 |
| 2070 | +import Ubuntu.Components 1.3 |
| 2071 | import Ubuntu.SystemImage 0.1 |
| 2072 | import Unity.Launcher 0.1 |
| 2073 | import "../Components" |
| 2074 | |
| 2075 | === modified file 'qml/Greeter/Infographics.qml' |
| 2076 | --- qml/Greeter/Infographics.qml 2015-09-16 14:34:56 +0000 |
| 2077 | +++ qml/Greeter/Infographics.qml 2015-10-26 15:26:58 +0000 |
| 2078 | @@ -17,7 +17,7 @@ |
| 2079 | import "../Components" |
| 2080 | import "Gradient.js" as Gradient |
| 2081 | import QtQuick 2.0 |
| 2082 | -import Ubuntu.Components 0.1 |
| 2083 | +import Ubuntu.Components 1.3 |
| 2084 | |
| 2085 | Item { |
| 2086 | id: infographic |
| 2087 | |
| 2088 | === modified file 'qml/Greeter/LoginList.qml' |
| 2089 | --- qml/Greeter/LoginList.qml 2015-02-01 19:53:29 +0000 |
| 2090 | +++ qml/Greeter/LoginList.qml 2015-10-26 15:26:58 +0000 |
| 2091 | @@ -15,7 +15,7 @@ |
| 2092 | */ |
| 2093 | |
| 2094 | import QtQuick 2.3 |
| 2095 | -import Ubuntu.Components 1.1 |
| 2096 | +import Ubuntu.Components 1.3 |
| 2097 | import "../Components" |
| 2098 | |
| 2099 | Item { |
| 2100 | |
| 2101 | === modified file 'qml/Greeter/NarrowView.qml' |
| 2102 | --- qml/Greeter/NarrowView.qml 2015-07-17 08:11:51 +0000 |
| 2103 | +++ qml/Greeter/NarrowView.qml 2015-10-26 15:26:58 +0000 |
| 2104 | @@ -15,7 +15,7 @@ |
| 2105 | */ |
| 2106 | |
| 2107 | import QtQuick 2.3 |
| 2108 | -import Ubuntu.Components 1.1 |
| 2109 | +import Ubuntu.Components 1.3 |
| 2110 | import "../Components" |
| 2111 | |
| 2112 | FocusScope { |
| 2113 | |
| 2114 | === modified file 'qml/Greeter/ObjectPositioner.qml' |
| 2115 | --- qml/Greeter/ObjectPositioner.qml 2013-06-05 22:03:08 +0000 |
| 2116 | +++ qml/Greeter/ObjectPositioner.qml 2015-10-26 15:26:58 +0000 |
| 2117 | @@ -15,7 +15,7 @@ |
| 2118 | */ |
| 2119 | |
| 2120 | import QtQuick 2.0 |
| 2121 | -import Ubuntu.Components 0.1 |
| 2122 | +import Ubuntu.Components 1.3 |
| 2123 | |
| 2124 | Item { |
| 2125 | property int count |
| 2126 | |
| 2127 | === modified file 'qml/Greeter/WideView.qml' |
| 2128 | --- qml/Greeter/WideView.qml 2015-03-04 13:23:34 +0000 |
| 2129 | +++ qml/Greeter/WideView.qml 2015-10-26 15:26:58 +0000 |
| 2130 | @@ -15,7 +15,7 @@ |
| 2131 | */ |
| 2132 | |
| 2133 | import QtQuick 2.3 |
| 2134 | -import Ubuntu.Components 1.1 |
| 2135 | +import Ubuntu.Components 1.3 |
| 2136 | |
| 2137 | FocusScope { |
| 2138 | id: root |
| 2139 | |
| 2140 | === modified file 'qml/Launcher/FoldingLauncherDelegate.qml' |
| 2141 | --- qml/Launcher/FoldingLauncherDelegate.qml 2013-08-27 18:30:55 +0000 |
| 2142 | +++ qml/Launcher/FoldingLauncherDelegate.qml 2015-10-26 15:26:58 +0000 |
| 2143 | @@ -15,7 +15,7 @@ |
| 2144 | */ |
| 2145 | |
| 2146 | import QtQuick 2.0 |
| 2147 | -import Ubuntu.Components 0.1 |
| 2148 | +import Ubuntu.Components 1.3 |
| 2149 | |
| 2150 | LauncherDelegate { |
| 2151 | id: root |
| 2152 | |
| 2153 | === modified file 'qml/Launcher/Launcher.qml' |
| 2154 | --- qml/Launcher/Launcher.qml 2015-09-29 12:48:46 +0000 |
| 2155 | +++ qml/Launcher/Launcher.qml 2015-10-26 15:26:58 +0000 |
| 2156 | @@ -16,7 +16,7 @@ |
| 2157 | |
| 2158 | import QtQuick 2.0 |
| 2159 | import "../Components" |
| 2160 | -import Ubuntu.Components 0.1 |
| 2161 | +import Ubuntu.Components 1.3 |
| 2162 | import Ubuntu.Gestures 0.1 |
| 2163 | import Unity.Launcher 0.1 |
| 2164 | |
| 2165 | |
| 2166 | === modified file 'qml/Launcher/LauncherDelegate.qml' |
| 2167 | --- qml/Launcher/LauncherDelegate.qml 2015-07-29 03:31:09 +0000 |
| 2168 | +++ qml/Launcher/LauncherDelegate.qml 2015-10-26 15:26:58 +0000 |
| 2169 | @@ -15,7 +15,7 @@ |
| 2170 | */ |
| 2171 | |
| 2172 | import QtQuick 2.0 |
| 2173 | -import Ubuntu.Components 1.1 |
| 2174 | +import Ubuntu.Components 1.3 |
| 2175 | |
| 2176 | Item { |
| 2177 | id: root |
| 2178 | @@ -130,13 +130,12 @@ |
| 2179 | anchors.fill: parent |
| 2180 | anchors.margins: units.gu(1) |
| 2181 | radius: "medium" |
| 2182 | - borderSource: "none" |
| 2183 | - |
| 2184 | - image: Image { |
| 2185 | + aspect: UbuntuShape.Flat |
| 2186 | + sourceFillMode: UbuntuShape.PreserveAspectCrop |
| 2187 | + source: Image { |
| 2188 | id: iconImage |
| 2189 | sourceSize.width: iconShape.width |
| 2190 | sourceSize.height: iconShape.height |
| 2191 | - fillMode: Image.PreserveAspectCrop |
| 2192 | source: root.iconName |
| 2193 | } |
| 2194 | } |
| 2195 | @@ -159,9 +158,9 @@ |
| 2196 | } |
| 2197 | width: Math.min(root.itemWidth, Math.max(units.gu(2), countLabel.implicitWidth + units.gu(1))) |
| 2198 | height: units.gu(2) |
| 2199 | - color: UbuntuColors.orange |
| 2200 | + backgroundColor: UbuntuColors.orange |
| 2201 | visible: root.countVisible |
| 2202 | - borderSource: "none" |
| 2203 | + aspect: UbuntuShape.Flat |
| 2204 | |
| 2205 | Label { |
| 2206 | id: countLabel |
| 2207 | |
| 2208 | === modified file 'qml/Launcher/LauncherPanel.qml' |
| 2209 | --- qml/Launcher/LauncherPanel.qml 2015-08-24 10:18:58 +0000 |
| 2210 | +++ qml/Launcher/LauncherPanel.qml 2015-10-26 15:26:58 +0000 |
| 2211 | @@ -15,10 +15,10 @@ |
| 2212 | */ |
| 2213 | |
| 2214 | import QtQuick 2.3 |
| 2215 | -import Ubuntu.Components 1.2 |
| 2216 | -import Ubuntu.Components.ListItems 1.0 as ListItems |
| 2217 | +import Ubuntu.Components 1.3 |
| 2218 | +import Ubuntu.Components.ListItems 1.3 as ListItems |
| 2219 | import Unity.Launcher 0.1 |
| 2220 | -import Ubuntu.Components.Popups 0.1 |
| 2221 | +import Ubuntu.Components.Popups 1.3 |
| 2222 | import "../Components/ListItems" |
| 2223 | import "../Components/" |
| 2224 | |
| 2225 | @@ -61,8 +61,8 @@ |
| 2226 | fill: parent |
| 2227 | topMargin: -units.gu(2) |
| 2228 | } |
| 2229 | - borderSource: "none" |
| 2230 | - color: UbuntuColors.orange |
| 2231 | + aspect: UbuntuShape.Flat |
| 2232 | + backgroundColor: UbuntuColors.orange |
| 2233 | } |
| 2234 | |
| 2235 | Image { |
| 2236 | |
| 2237 | === modified file 'qml/Notifications/Notification.qml' |
| 2238 | --- qml/Notifications/Notification.qml 2015-10-21 11:51:02 +0000 |
| 2239 | +++ qml/Notifications/Notification.qml 2015-10-26 15:26:58 +0000 |
| 2240 | @@ -17,11 +17,11 @@ |
| 2241 | import QtQuick 2.0 |
| 2242 | import QtMultimedia 5.0 |
| 2243 | import Powerd 0.1 |
| 2244 | -import Ubuntu.Components 1.2 |
| 2245 | +import Ubuntu.Components 1.3 |
| 2246 | +import Ubuntu.Components.ListItems 1.3 as ListItem |
| 2247 | import Unity.Notifications 1.0 |
| 2248 | import QMenuModel 0.1 |
| 2249 | import Utils 0.1 |
| 2250 | -import Ubuntu.Components.ListItems 0.1 as ListItem |
| 2251 | |
| 2252 | Item { |
| 2253 | id: notification |
| 2254 | @@ -153,10 +153,10 @@ |
| 2255 | rightMargin: notification.margins |
| 2256 | topMargin: type === Notification.Confirmation ? units.gu(.5) : 0 |
| 2257 | } |
| 2258 | - color: parent.color |
| 2259 | + backgroundColor: parent.color |
| 2260 | opacity: parent.opacity |
| 2261 | radius: "medium" |
| 2262 | - borderSource: "none" |
| 2263 | + aspect: UbuntuShape.Flat |
| 2264 | } |
| 2265 | |
| 2266 | Rectangle { |
| 2267 | @@ -282,7 +282,7 @@ |
| 2268 | } |
| 2269 | visible: type !== Notification.Confirmation |
| 2270 | fontSize: "medium" |
| 2271 | - color: darkOnBright ? sdFontColor : Theme.palette.selected.backgroundText |
| 2272 | + color: darkOnBright ? sdFontColor : theme.palette.selected.backgroundText |
| 2273 | elide: Text.ElideRight |
| 2274 | textFormat: Text.PlainText |
| 2275 | } |
| 2276 | @@ -297,7 +297,7 @@ |
| 2277 | } |
| 2278 | visible: body != "" && type !== Notification.Confirmation |
| 2279 | fontSize: "small" |
| 2280 | - color: darkOnBright ? sdFontColor : Theme.palette.selected.backgroundText |
| 2281 | + color: darkOnBright ? sdFontColor : theme.palette.selected.backgroundText |
| 2282 | wrapMode: Text.WordWrap |
| 2283 | maximumLineCount: type == Notification.SnapDecision ? 12 : 2 |
| 2284 | elide: Text.ElideRight |
| 2285 | @@ -338,7 +338,7 @@ |
| 2286 | anchors.horizontalCenter: parent.horizontalCenter |
| 2287 | visible: type === Notification.Confirmation && body !== "" |
| 2288 | fontSize: "medium" |
| 2289 | - color: darkOnBright ? sdFontColor : Theme.palette.selected.backgroundText |
| 2290 | + color: darkOnBright ? sdFontColor : theme.palette.selected.backgroundText |
| 2291 | wrapMode: Text.WordWrap |
| 2292 | maximumLineCount: 1 |
| 2293 | elide: Text.ElideRight |
| 2294 | @@ -358,8 +358,8 @@ |
| 2295 | } |
| 2296 | |
| 2297 | height: units.gu(1) |
| 2298 | - color: darkOnBright ? UbuntuColors.darkGrey : UbuntuColors.lightGrey |
| 2299 | - borderSource: "none" |
| 2300 | + backgroundColor: darkOnBright ? UbuntuColors.darkGrey : UbuntuColors.lightGrey |
| 2301 | + aspect: UbuntuShape.Flat |
| 2302 | radius: "small" |
| 2303 | |
| 2304 | UbuntuShape { |
| 2305 | @@ -367,8 +367,8 @@ |
| 2306 | objectName: "innerBar" |
| 2307 | width: valueIndicator.width * valueIndicator.value / 100 |
| 2308 | height: units.gu(1) |
| 2309 | - color: notification.hints["x-canonical-value-bar-tint"] === "true" ? UbuntuColors.orange : darkOnBright ? UbuntuColors.lightGrey : "white" |
| 2310 | - borderSource: "none" |
| 2311 | + backgroundColor: notification.hints["x-canonical-value-bar-tint"] === "true" ? UbuntuColors.orange : darkOnBright ? UbuntuColors.lightGrey : "white" |
| 2312 | + aspect: UbuntuShape.Flat |
| 2313 | radius: "small" |
| 2314 | } |
| 2315 | } |
| 2316 | |
| 2317 | === modified file 'qml/Notifications/NotificationMenuItemFactory.qml' |
| 2318 | --- qml/Notifications/NotificationMenuItemFactory.qml 2015-10-15 14:33:48 +0000 |
| 2319 | +++ qml/Notifications/NotificationMenuItemFactory.qml 2015-10-26 15:26:58 +0000 |
| 2320 | @@ -18,7 +18,7 @@ |
| 2321 | */ |
| 2322 | |
| 2323 | import QtQuick 2.0 |
| 2324 | -import Ubuntu.Components 0.1 |
| 2325 | +import Ubuntu.Components 1.3 |
| 2326 | import QMenuModel 0.1 |
| 2327 | import "../Components" |
| 2328 | |
| 2329 | |
| 2330 | === modified file 'qml/Notifications/Notifications.qml' |
| 2331 | --- qml/Notifications/Notifications.qml 2015-10-15 14:33:48 +0000 |
| 2332 | +++ qml/Notifications/Notifications.qml 2015-10-26 15:26:58 +0000 |
| 2333 | @@ -15,7 +15,7 @@ |
| 2334 | */ |
| 2335 | |
| 2336 | import QtQuick 2.0 |
| 2337 | -import Ubuntu.Components 0.1 |
| 2338 | +import Ubuntu.Components 1.3 |
| 2339 | import Unity.Notifications 1.0 as UnityNotifications |
| 2340 | import Utils 0.1 |
| 2341 | import "../Components" |
| 2342 | |
| 2343 | === modified file 'qml/Notifications/OptionToggle.qml' |
| 2344 | --- qml/Notifications/OptionToggle.qml 2014-11-07 10:55:22 +0000 |
| 2345 | +++ qml/Notifications/OptionToggle.qml 2015-10-26 15:26:58 +0000 |
| 2346 | @@ -1,5 +1,5 @@ |
| 2347 | /* |
| 2348 | - * Copyright (C) 2014 Canonical, Ltd. |
| 2349 | + * Copyright (C) 2014,2015 Canonical, Ltd. |
| 2350 | * |
| 2351 | * This program is free software; you can redistribute it and/or modify |
| 2352 | * it under the terms of the GNU General Public License as published by |
| 2353 | @@ -15,9 +15,9 @@ |
| 2354 | */ |
| 2355 | |
| 2356 | import QtQuick 2.0 |
| 2357 | -import Ubuntu.Components 0.1 |
| 2358 | -import Ubuntu.Components.ListItems 0.1 as ListItem |
| 2359 | -import Ubuntu.Components.Popups 0.1 |
| 2360 | +import Ubuntu.Components 1.3 |
| 2361 | +import Ubuntu.Components.ListItems 1.3 as ListItem |
| 2362 | +import Ubuntu.Components.Popups 1.3 |
| 2363 | |
| 2364 | UbuntuShape { |
| 2365 | id: optionToggle |
| 2366 | @@ -29,8 +29,8 @@ |
| 2367 | |
| 2368 | signal triggered(string id) |
| 2369 | |
| 2370 | - color: Theme.palette.normal.base |
| 2371 | - borderSource: "none" |
| 2372 | + backgroundColor: theme.palette.normal.base |
| 2373 | + aspect: UbuntuShape.Flat |
| 2374 | height: expanded ? (optionToggleRepeater.count - startIndex) * itemHeight : itemHeight |
| 2375 | width: parent.width |
| 2376 | radius: "medium" |
| 2377 | |
| 2378 | === modified file 'qml/Notifications/ShapedIcon.qml' |
| 2379 | --- qml/Notifications/ShapedIcon.qml 2015-05-08 14:09:26 +0000 |
| 2380 | +++ qml/Notifications/ShapedIcon.qml 2015-10-26 15:26:58 +0000 |
| 2381 | @@ -1,5 +1,5 @@ |
| 2382 | /* |
| 2383 | - * Copyright (C) 2013 Canonical, Ltd. |
| 2384 | + * Copyright (C) 2013,2015 Canonical, Ltd. |
| 2385 | * |
| 2386 | * This program is free software; you can redistribute it and/or modify |
| 2387 | * it under the terms of the GNU General Public License as published by |
| 2388 | @@ -15,7 +15,7 @@ |
| 2389 | */ |
| 2390 | |
| 2391 | import QtQuick 2.3 |
| 2392 | -import Ubuntu.Components 1.2 |
| 2393 | +import Ubuntu.Components 1.3 |
| 2394 | |
| 2395 | Item { |
| 2396 | property string fileSource |
| 2397 | |
| 2398 | === modified file 'qml/Notifications/SwipeToAct.qml' |
| 2399 | --- qml/Notifications/SwipeToAct.qml 2015-09-22 14:39:02 +0000 |
| 2400 | +++ qml/Notifications/SwipeToAct.qml 2015-10-26 15:26:58 +0000 |
| 2401 | @@ -15,7 +15,7 @@ |
| 2402 | */ |
| 2403 | |
| 2404 | import QtQuick 2.3 |
| 2405 | -import Ubuntu.Components 1.2 |
| 2406 | +import Ubuntu.Components 1.3 |
| 2407 | |
| 2408 | Item { |
| 2409 | id: swipeToAct |
| 2410 | @@ -98,8 +98,8 @@ |
| 2411 | id: row |
| 2412 | width: parent.width |
| 2413 | height: priv.sliderHeight |
| 2414 | - color: priv.sliderBGColor |
| 2415 | - borderSource: "none" |
| 2416 | + backgroundColor: priv.sliderBGColor |
| 2417 | + aspect: UbuntuShape.Flat |
| 2418 | visible: !clickToAct |
| 2419 | |
| 2420 | UbuntuShape { |
| 2421 | @@ -108,8 +108,8 @@ |
| 2422 | anchors.top: parent.top |
| 2423 | anchors.left: parent.left |
| 2424 | anchors.margins: priv.gap |
| 2425 | - color: UbuntuColors.red |
| 2426 | - borderSource: "none" |
| 2427 | + backgroundColor: UbuntuColors.red |
| 2428 | + aspect: UbuntuShape.Flat |
| 2429 | |
| 2430 | state: "normal" |
| 2431 | height: units.gu(6) |
| 2432 | @@ -187,10 +187,10 @@ |
| 2433 | } |
| 2434 | |
| 2435 | z: 1 |
| 2436 | - color: priv.sliderMainColor |
| 2437 | + backgroundColor: priv.sliderMainColor |
| 2438 | height: units.gu(6) |
| 2439 | width: units.gu(6) |
| 2440 | - borderSource: "none" |
| 2441 | + aspect: UbuntuShape.Flat |
| 2442 | radius: "medium" |
| 2443 | Icon { |
| 2444 | anchors.fill: parent |
| 2445 | @@ -226,8 +226,8 @@ |
| 2446 | anchors.top: parent.top |
| 2447 | anchors.right: parent.right |
| 2448 | anchors.margins: priv.gap |
| 2449 | - color: UbuntuColors.green |
| 2450 | - borderSource: "none" |
| 2451 | + backgroundColor: UbuntuColors.green |
| 2452 | + aspect: UbuntuShape.Flat |
| 2453 | |
| 2454 | state: "normal" |
| 2455 | height: units.gu(6) |
| 2456 | |
| 2457 | === modified file 'qml/OrientedShell.qml' |
| 2458 | --- qml/OrientedShell.qml 2015-10-05 19:15:03 +0000 |
| 2459 | +++ qml/OrientedShell.qml 2015-10-26 15:26:58 +0000 |
| 2460 | @@ -23,7 +23,7 @@ |
| 2461 | import "Rotation" |
| 2462 | // Backup Workaround https://bugs.launchpad.net/ubuntu/+source/unity8/+bug/1473471 |
| 2463 | // in case we remove the UnityInputInfo import |
| 2464 | -import Ubuntu.Components 1.2 |
| 2465 | +import Ubuntu.Components 1.3 |
| 2466 | |
| 2467 | Rectangle { |
| 2468 | id: root |
| 2469 | |
| 2470 | === modified file 'qml/Panel/ActiveCallHint.qml' |
| 2471 | --- qml/Panel/ActiveCallHint.qml 2014-10-08 21:05:50 +0000 |
| 2472 | +++ qml/Panel/ActiveCallHint.qml 2015-10-26 15:26:58 +0000 |
| 2473 | @@ -16,7 +16,7 @@ |
| 2474 | |
| 2475 | import QtQuick 2.0 |
| 2476 | import Ubuntu.Telephony 0.1 as Telephony |
| 2477 | -import Ubuntu.Components 0.1 |
| 2478 | +import Ubuntu.Components 1.3 |
| 2479 | import Unity.Application 0.1 |
| 2480 | import "../Components" |
| 2481 | |
| 2482 | |
| 2483 | === modified file 'qml/Panel/Handle.qml' |
| 2484 | --- qml/Panel/Handle.qml 2014-10-09 12:01:57 +0000 |
| 2485 | +++ qml/Panel/Handle.qml 2015-10-26 15:26:58 +0000 |
| 2486 | @@ -15,7 +15,7 @@ |
| 2487 | */ |
| 2488 | |
| 2489 | import QtQuick 2.2 |
| 2490 | -import Ubuntu.Components 1.1 |
| 2491 | +import Ubuntu.Components 1.3 |
| 2492 | |
| 2493 | Rectangle { |
| 2494 | id: handle |
| 2495 | |
| 2496 | === modified file 'qml/Panel/IndicatorItem.qml' |
| 2497 | --- qml/Panel/IndicatorItem.qml 2015-09-15 22:50:16 +0000 |
| 2498 | +++ qml/Panel/IndicatorItem.qml 2015-10-26 15:26:58 +0000 |
| 2499 | @@ -15,7 +15,7 @@ |
| 2500 | */ |
| 2501 | |
| 2502 | import QtQuick 2.2 |
| 2503 | -import Ubuntu.Components 1.1 |
| 2504 | +import Ubuntu.Components 1.3 |
| 2505 | import Ubuntu.Settings.Components 0.1 |
| 2506 | import "Indicators" |
| 2507 | |
| 2508 | |
| 2509 | === modified file 'qml/Panel/IndicatorItemRow.qml' |
| 2510 | --- qml/Panel/IndicatorItemRow.qml 2015-08-04 07:02:08 +0000 |
| 2511 | +++ qml/Panel/IndicatorItemRow.qml 2015-10-26 15:26:58 +0000 |
| 2512 | @@ -15,7 +15,7 @@ |
| 2513 | */ |
| 2514 | |
| 2515 | import QtQuick 2.2 |
| 2516 | -import Ubuntu.Components 1.1 |
| 2517 | +import Ubuntu.Components 1.3 |
| 2518 | |
| 2519 | Item { |
| 2520 | id: root |
| 2521 | |
| 2522 | === modified file 'qml/Panel/IndicatorPage.qml' |
| 2523 | --- qml/Panel/IndicatorPage.qml 2015-09-15 22:50:16 +0000 |
| 2524 | +++ qml/Panel/IndicatorPage.qml 2015-10-26 15:26:58 +0000 |
| 2525 | @@ -15,7 +15,7 @@ |
| 2526 | */ |
| 2527 | |
| 2528 | import QtQuick 2.0 |
| 2529 | -import Ubuntu.Components 0.1 as Components |
| 2530 | +import Ubuntu.Components 1.3 as Components |
| 2531 | import Unity.Indicators 0.1 as Indicators |
| 2532 | import "Indicators" |
| 2533 | |
| 2534 | |
| 2535 | === modified file 'qml/Panel/Indicators/MenuItemFactory.qml' |
| 2536 | --- qml/Panel/Indicators/MenuItemFactory.qml 2015-09-29 14:46:24 +0000 |
| 2537 | +++ qml/Panel/Indicators/MenuItemFactory.qml 2015-10-26 15:26:58 +0000 |
| 2538 | @@ -19,8 +19,13 @@ |
| 2539 | import Ubuntu.Settings.Components 0.1 |
| 2540 | import QMenuModel 0.1 |
| 2541 | import Utils 0.1 as Utils |
| 2542 | +<<<<<<< TREE |
| 2543 | import Ubuntu.Components.ListItems 0.1 as ListItems |
| 2544 | import Ubuntu.Components 1.3 |
| 2545 | +======= |
| 2546 | +import Ubuntu.Components.ListItems 1.3 as ListItems |
| 2547 | +import Ubuntu.Components 1.3 |
| 2548 | +>>>>>>> MERGE-SOURCE |
| 2549 | import Unity.Session 0.1 |
| 2550 | |
| 2551 | Item { |
| 2552 | @@ -249,7 +254,7 @@ |
| 2553 | name: "settings" |
| 2554 | height: units.gu(3) |
| 2555 | width: height |
| 2556 | - color: Theme.palette.selected.backgroundText |
| 2557 | + color: theme.palette.selected.backgroundText |
| 2558 | } |
| 2559 | } |
| 2560 | } |
| 2561 | @@ -281,7 +286,7 @@ |
| 2562 | source: menuData.icon |
| 2563 | height: units.gu(3) |
| 2564 | width: height |
| 2565 | - color: Theme.palette.selected.backgroundText |
| 2566 | + color: theme.palette.selected.backgroundText |
| 2567 | } |
| 2568 | } |
| 2569 | } |
| 2570 | @@ -928,7 +933,7 @@ |
| 2571 | enabled: menuData && menuData.sensitive || false |
| 2572 | highlightWhenPressed: false |
| 2573 | text: menuData && menuData.label || "" |
| 2574 | - foregroundColor: Theme.palette.normal.backgroundText |
| 2575 | + foregroundColor: theme.palette.normal.backgroundText |
| 2576 | |
| 2577 | onMenuModelChanged: { |
| 2578 | loadAttributes(); |
| 2579 | |
| 2580 | === modified file 'qml/Panel/Indicators/MessageMenuItemFactory.qml' |
| 2581 | === modified file 'qml/Panel/Indicators/ModemInfoItem.qml' |
| 2582 | --- qml/Panel/Indicators/ModemInfoItem.qml 2014-07-31 13:31:32 +0000 |
| 2583 | +++ qml/Panel/Indicators/ModemInfoItem.qml 2015-10-26 15:26:58 +0000 |
| 2584 | @@ -1,5 +1,5 @@ |
| 2585 | /* |
| 2586 | - * Copyright 2014 Canonical Ltd. |
| 2587 | + * Copyright 2014,2015 Canonical Ltd. |
| 2588 | * |
| 2589 | * This program is free software; you can redistribute it and/or modify |
| 2590 | * it under the terms of the GNU Lesser General Public License as published by |
| 2591 | @@ -16,8 +16,8 @@ |
| 2592 | |
| 2593 | import QtQuick 2.0 |
| 2594 | import QtQuick.Layouts 1.1 |
| 2595 | -import Ubuntu.Components 0.1 |
| 2596 | -import Ubuntu.Components.ListItems 0.1 as ListItem |
| 2597 | +import Ubuntu.Components 1.3 |
| 2598 | +import Ubuntu.Components.ListItems 1.3 as ListItem |
| 2599 | |
| 2600 | ListItem.Empty { |
| 2601 | id: menu |
| 2602 | @@ -65,7 +65,7 @@ |
| 2603 | height: parent.height |
| 2604 | Icon { |
| 2605 | id: statusIcon |
| 2606 | - color: Theme.palette.selected.backgroundText |
| 2607 | + color: theme.palette.selected.backgroundText |
| 2608 | |
| 2609 | Layout.preferredHeight: parent.height |
| 2610 | Layout.preferredWidth: Layout.preferredHeight |
| 2611 | @@ -75,7 +75,7 @@ |
| 2612 | |
| 2613 | Icon { |
| 2614 | id: iconConnectivity |
| 2615 | - color: Theme.palette.selected.backgroundText |
| 2616 | + color: theme.palette.selected.backgroundText |
| 2617 | |
| 2618 | Layout.preferredHeight: parent.height |
| 2619 | Layout.preferredWidth: Layout.preferredHeight |
| 2620 | |
| 2621 | === modified file 'qml/Panel/Indicators/RoamingIndication.qml' |
| 2622 | --- qml/Panel/Indicators/RoamingIndication.qml 2014-07-31 13:31:32 +0000 |
| 2623 | +++ qml/Panel/Indicators/RoamingIndication.qml 2015-10-26 15:26:58 +0000 |
| 2624 | @@ -1,5 +1,5 @@ |
| 2625 | /* |
| 2626 | - * Copyright 2014 Canonical Ltd. |
| 2627 | + * Copyright 2014,2015 Canonical Ltd. |
| 2628 | * |
| 2629 | * This program is free software; you can redistribute it and/or modify |
| 2630 | * it under the terms of the GNU Lesser General Public License as published by |
| 2631 | @@ -16,7 +16,7 @@ |
| 2632 | |
| 2633 | import QtQuick 2.0 |
| 2634 | import QtQuick.Layouts 1.1 |
| 2635 | -import Ubuntu.Components 0.1 |
| 2636 | +import Ubuntu.Components 1.3 |
| 2637 | |
| 2638 | RowLayout { |
| 2639 | spacing: units.gu(0.5) |
| 2640 | @@ -30,7 +30,7 @@ |
| 2641 | |
| 2642 | Icon { |
| 2643 | id: iconRoaming |
| 2644 | - color: Theme.palette.selected.backgroundText |
| 2645 | + color: theme.palette.selected.backgroundText |
| 2646 | |
| 2647 | Layout.preferredHeight: parent.height |
| 2648 | Layout.preferredWidth: Layout.preferredHeight |
| 2649 | |
| 2650 | === modified file 'qml/Panel/Indicators/client/IndicatorRepresentation.qml' |
| 2651 | --- qml/Panel/Indicators/client/IndicatorRepresentation.qml 2015-09-22 10:57:15 +0000 |
| 2652 | +++ qml/Panel/Indicators/client/IndicatorRepresentation.qml 2015-10-26 15:26:58 +0000 |
| 2653 | @@ -19,8 +19,8 @@ |
| 2654 | */ |
| 2655 | |
| 2656 | import QtQuick 2.0 |
| 2657 | -import Ubuntu.Components 0.1 |
| 2658 | -import Ubuntu.Components.ListItems 0.1 as ListItem |
| 2659 | +import Ubuntu.Components 1.3 |
| 2660 | +import Ubuntu.Components.ListItems 1.3 as ListItem |
| 2661 | import "../.." |
| 2662 | |
| 2663 | Page { |
| 2664 | |
| 2665 | === modified file 'qml/Panel/Indicators/client/IndicatorsClient.qml' |
| 2666 | --- qml/Panel/Indicators/client/IndicatorsClient.qml 2014-07-25 17:52:39 +0000 |
| 2667 | +++ qml/Panel/Indicators/client/IndicatorsClient.qml 2015-10-26 15:26:58 +0000 |
| 2668 | @@ -18,15 +18,15 @@ |
| 2669 | */ |
| 2670 | |
| 2671 | import QtQuick 2.0 |
| 2672 | -import Ubuntu.Components 0.1 |
| 2673 | -import Ubuntu.Components.ListItems 0.1 as ListItem |
| 2674 | +import Ubuntu.Components 1.3 |
| 2675 | +import Ubuntu.Components.ListItems 1.3 as ListItem |
| 2676 | |
| 2677 | Rectangle { |
| 2678 | color: "black" |
| 2679 | id: root |
| 2680 | |
| 2681 | Component.onCompleted: { |
| 2682 | - Theme.name = "Ubuntu.Components.Themes.SuruGradient" |
| 2683 | + theme.name = "Ubuntu.Components.Themes.SuruGradient" |
| 2684 | } |
| 2685 | |
| 2686 | PageStack { |
| 2687 | |
| 2688 | === modified file 'qml/Panel/Indicators/client/IndicatorsList.qml' |
| 2689 | --- qml/Panel/Indicators/client/IndicatorsList.qml 2015-03-11 08:07:31 +0000 |
| 2690 | +++ qml/Panel/Indicators/client/IndicatorsList.qml 2015-10-26 15:26:58 +0000 |
| 2691 | @@ -18,8 +18,8 @@ |
| 2692 | */ |
| 2693 | |
| 2694 | import QtQuick 2.0 |
| 2695 | -import Ubuntu.Components 0.1 |
| 2696 | -import Ubuntu.Components.ListItems 0.1 as ListItem |
| 2697 | +import Ubuntu.Components 1.3 |
| 2698 | +import Ubuntu.Components.ListItems 1.3 as ListItem |
| 2699 | import Unity.Indicators 0.1 as Indicators |
| 2700 | import "../.." |
| 2701 | |
| 2702 | |
| 2703 | === modified file 'qml/Panel/Indicators/client/IndicatorsTree.qml' |
| 2704 | --- qml/Panel/Indicators/client/IndicatorsTree.qml 2014-11-11 15:28:13 +0000 |
| 2705 | +++ qml/Panel/Indicators/client/IndicatorsTree.qml 2015-10-26 15:26:58 +0000 |
| 2706 | @@ -18,7 +18,7 @@ |
| 2707 | */ |
| 2708 | |
| 2709 | import QtQuick 2.0 |
| 2710 | -import Ubuntu.Components 0.1 |
| 2711 | +import Ubuntu.Components 1.3 |
| 2712 | import Unity.Indicators 0.1 as Indicators |
| 2713 | import ".." |
| 2714 | |
| 2715 | |
| 2716 | === modified file 'qml/Panel/IndicatorsBar.qml' |
| 2717 | --- qml/Panel/IndicatorsBar.qml 2015-08-20 14:07:45 +0000 |
| 2718 | +++ qml/Panel/IndicatorsBar.qml 2015-10-26 15:26:58 +0000 |
| 2719 | @@ -15,7 +15,7 @@ |
| 2720 | */ |
| 2721 | |
| 2722 | import QtQuick 2.2 |
| 2723 | -import Ubuntu.Components 1.1 |
| 2724 | +import Ubuntu.Components 1.3 |
| 2725 | import "../Components" |
| 2726 | |
| 2727 | Item { |
| 2728 | |
| 2729 | === modified file 'qml/Panel/IndicatorsMenu.qml' |
| 2730 | --- qml/Panel/IndicatorsMenu.qml 2015-08-20 14:07:45 +0000 |
| 2731 | +++ qml/Panel/IndicatorsMenu.qml 2015-10-26 15:26:58 +0000 |
| 2732 | @@ -15,7 +15,7 @@ |
| 2733 | */ |
| 2734 | |
| 2735 | import QtQuick 2.2 |
| 2736 | -import Ubuntu.Components 1.1 |
| 2737 | +import Ubuntu.Components 1.3 |
| 2738 | import Ubuntu.Gestures 0.1 |
| 2739 | import "../Components" |
| 2740 | import "Indicators" |
| 2741 | |
| 2742 | === modified file 'qml/Panel/MenuContent.qml' |
| 2743 | --- qml/Panel/MenuContent.qml 2014-11-17 23:04:48 +0000 |
| 2744 | +++ qml/Panel/MenuContent.qml 2015-10-26 15:26:58 +0000 |
| 2745 | @@ -16,7 +16,7 @@ |
| 2746 | |
| 2747 | import QtQuick 2.2 |
| 2748 | import QtQuick.Layouts 1.1 |
| 2749 | -import Ubuntu.Components 1.1 |
| 2750 | +import Ubuntu.Components 1.3 |
| 2751 | import Unity.Indicators 0.1 as Indicators |
| 2752 | import Utils 0.1 |
| 2753 | import "../Components" |
| 2754 | |
| 2755 | === modified file 'qml/Panel/Panel.qml' |
| 2756 | --- qml/Panel/Panel.qml 2015-09-29 12:48:46 +0000 |
| 2757 | +++ qml/Panel/Panel.qml 2015-10-26 15:26:58 +0000 |
| 2758 | @@ -15,7 +15,7 @@ |
| 2759 | */ |
| 2760 | |
| 2761 | import QtQuick 2.2 |
| 2762 | -import Ubuntu.Components 1.1 |
| 2763 | +import Ubuntu.Components 1.3 |
| 2764 | import Unity.Application 0.1 |
| 2765 | import "../Components" |
| 2766 | import "../Components/PanelState" |
| 2767 | |
| 2768 | === modified file 'qml/Rotation/RotationStates.qml' |
| 2769 | --- qml/Rotation/RotationStates.qml 2015-10-05 19:15:03 +0000 |
| 2770 | +++ qml/Rotation/RotationStates.qml 2015-10-26 15:26:58 +0000 |
| 2771 | @@ -15,7 +15,7 @@ |
| 2772 | */ |
| 2773 | |
| 2774 | import QtQuick 2.0 |
| 2775 | -import Ubuntu.Components 1.1 |
| 2776 | +import Ubuntu.Components 1.3 |
| 2777 | import Powerd 0.1 |
| 2778 | |
| 2779 | // Why the state machine is done that way: |
| 2780 | |
| 2781 | === modified file 'qml/ScopeTool.qml' |
| 2782 | --- qml/ScopeTool.qml 2014-08-07 15:29:12 +0000 |
| 2783 | +++ qml/ScopeTool.qml 2015-10-26 15:26:58 +0000 |
| 2784 | @@ -15,8 +15,8 @@ |
| 2785 | */ |
| 2786 | |
| 2787 | import QtQuick 2.0 |
| 2788 | -import Ubuntu.Components 0.1 |
| 2789 | -import Ubuntu.Components.Popups 0.1 |
| 2790 | +import Ubuntu.Components 1.3 |
| 2791 | +import Ubuntu.Components.Popups 1.3 |
| 2792 | import Ubuntu.Thumbnailer 0.1 // Register support for image://thumbnailer/ and image://albumart/ |
| 2793 | import Utils 0.1 |
| 2794 | import Unity 0.2 |
| 2795 | |
| 2796 | === modified file 'qml/Shell.qml' |
| 2797 | --- qml/Shell.qml 2015-10-16 17:11:54 +0000 |
| 2798 | +++ qml/Shell.qml 2015-10-26 15:26:58 +0000 |
| 2799 | @@ -18,8 +18,8 @@ |
| 2800 | import QtQuick.Window 2.0 |
| 2801 | import AccountsService 0.1 |
| 2802 | import Unity.Application 0.1 |
| 2803 | -import Ubuntu.Components 0.1 |
| 2804 | -import Ubuntu.Components.Popups 1.0 |
| 2805 | +import Ubuntu.Components 1.3 |
| 2806 | +import Ubuntu.Components.Popups 1.3 |
| 2807 | import Ubuntu.Gestures 0.1 |
| 2808 | import Ubuntu.Telephony 0.1 as Telephony |
| 2809 | import Unity.Connectivity 0.1 |
| 2810 | @@ -139,7 +139,7 @@ |
| 2811 | } |
| 2812 | |
| 2813 | Component.onCompleted: { |
| 2814 | - Theme.name = "Ubuntu.Components.Themes.SuruGradient" |
| 2815 | + theme.name = "Ubuntu.Components.Themes.SuruGradient" |
| 2816 | if (ApplicationManager.count > 0) { |
| 2817 | ApplicationManager.focusApplication(ApplicationManager.get(0).appId); |
| 2818 | } |
| 2819 | |
| 2820 | === modified file 'qml/Stages/Animations/SwipeFromBottomAnimation.qml' |
| 2821 | --- qml/Stages/Animations/SwipeFromBottomAnimation.qml 2014-09-01 12:46:31 +0000 |
| 2822 | +++ qml/Stages/Animations/SwipeFromBottomAnimation.qml 2015-10-26 15:26:58 +0000 |
| 2823 | @@ -15,7 +15,7 @@ |
| 2824 | */ |
| 2825 | |
| 2826 | import QtQuick 2.0 |
| 2827 | -import Ubuntu.Components 1.1 |
| 2828 | +import Ubuntu.Components 1.3 |
| 2829 | |
| 2830 | BaseSessionAnimation { |
| 2831 | id: animation |
| 2832 | |
| 2833 | === modified file 'qml/Stages/ApplicationWindow.qml' |
| 2834 | --- qml/Stages/ApplicationWindow.qml 2015-09-29 22:54:19 +0000 |
| 2835 | +++ qml/Stages/ApplicationWindow.qml 2015-10-26 15:26:58 +0000 |
| 2836 | @@ -15,7 +15,7 @@ |
| 2837 | */ |
| 2838 | |
| 2839 | import QtQuick 2.0 |
| 2840 | -import Ubuntu.Components 1.1 |
| 2841 | +import Ubuntu.Components 1.3 |
| 2842 | import Unity.Application 0.1 |
| 2843 | |
| 2844 | FocusScope { |
| 2845 | |
| 2846 | === modified file 'qml/Stages/DecoratedWindow.qml' |
| 2847 | --- qml/Stages/DecoratedWindow.qml 2015-09-29 23:09:06 +0000 |
| 2848 | +++ qml/Stages/DecoratedWindow.qml 2015-10-26 15:26:58 +0000 |
| 2849 | @@ -17,7 +17,7 @@ |
| 2850 | */ |
| 2851 | |
| 2852 | import QtQuick 2.3 |
| 2853 | -import Ubuntu.Components 1.1 |
| 2854 | +import Ubuntu.Components 1.3 |
| 2855 | import Unity.Application 0.1 |
| 2856 | |
| 2857 | FocusScope { |
| 2858 | |
| 2859 | === modified file 'qml/Stages/DesktopSpread.qml' |
| 2860 | --- qml/Stages/DesktopSpread.qml 2015-09-21 12:22:29 +0000 |
| 2861 | +++ qml/Stages/DesktopSpread.qml 2015-10-26 15:26:58 +0000 |
| 2862 | @@ -16,7 +16,7 @@ |
| 2863 | |
| 2864 | import QtQuick 2.4 |
| 2865 | import QtQuick.Layouts 1.1 |
| 2866 | -import Ubuntu.Components 1.2 |
| 2867 | +import Ubuntu.Components 1.3 |
| 2868 | import Ubuntu.Gestures 0.1 |
| 2869 | import Unity.Application 0.1 |
| 2870 | |
| 2871 | |
| 2872 | === modified file 'qml/Stages/DesktopSpreadDelegate.qml' |
| 2873 | --- qml/Stages/DesktopSpreadDelegate.qml 2015-09-18 11:03:48 +0000 |
| 2874 | +++ qml/Stages/DesktopSpreadDelegate.qml 2015-10-26 15:26:58 +0000 |
| 2875 | @@ -17,7 +17,7 @@ |
| 2876 | */ |
| 2877 | |
| 2878 | import QtQuick 2.3 |
| 2879 | -import Ubuntu.Components 1.1 |
| 2880 | +import Ubuntu.Components 1.3 |
| 2881 | import Unity.Application 0.1 |
| 2882 | |
| 2883 | Item { |
| 2884 | |
| 2885 | === modified file 'qml/Stages/DesktopStage.qml' |
| 2886 | --- qml/Stages/DesktopStage.qml 2015-10-19 14:27:57 +0000 |
| 2887 | +++ qml/Stages/DesktopStage.qml 2015-10-26 15:26:58 +0000 |
| 2888 | @@ -18,7 +18,7 @@ |
| 2889 | |
| 2890 | import QtQuick 2.4 |
| 2891 | import QtQuick.Layouts 1.1 |
| 2892 | -import Ubuntu.Components 1.1 |
| 2893 | +import Ubuntu.Components 1.3 |
| 2894 | import Unity.Application 0.1 |
| 2895 | import "../Components" |
| 2896 | import "../Components/PanelState" |
| 2897 | |
| 2898 | === modified file 'qml/Stages/MainViewStyle.qml' |
| 2899 | --- qml/Stages/MainViewStyle.qml 2014-09-12 20:16:54 +0000 |
| 2900 | +++ qml/Stages/MainViewStyle.qml 2015-10-26 15:26:58 +0000 |
| 2901 | @@ -1,5 +1,5 @@ |
| 2902 | /* |
| 2903 | - * Copyright 2014 Canonical Ltd. |
| 2904 | + * Copyright 2012 Canonical Ltd. |
| 2905 | * |
| 2906 | * This program is free software; you can redistribute it and/or modify |
| 2907 | * it under the terms of the GNU Lesser General Public License as published by |
| 2908 | @@ -13,51 +13,60 @@ |
| 2909 | * You should have received a copy of the GNU Lesser General Public License |
| 2910 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 2911 | */ |
| 2912 | -import QtQuick 2.0 |
| 2913 | -import Ubuntu.Components 1.1 |
| 2914 | +import QtQuick 2.4 |
| 2915 | +import Ubuntu.Components 1.3 |
| 2916 | |
| 2917 | // FIXME: copied with slight modifications from Ubuntu UI Toolkit's Ambiance's theme |
| 2918 | Item { |
| 2919 | - // styling properties |
| 2920 | anchors.fill: parent |
| 2921 | z: -1 |
| 2922 | id: mainViewStyle |
| 2923 | |
| 2924 | - /*! |
| 2925 | - The background texture of the main view. The image will be drawn over the background color, |
| 2926 | - so if it has (semi-)transparent pixels, in those pixels the background color will be visible. |
| 2927 | - */ |
| 2928 | - property url backgroundSource: "graphics/background_paper.png" |
| 2929 | - property var theme |
| 2930 | + property var theme |
| 2931 | + |
| 2932 | + /*! |
| 2933 | + Color of the header's background. |
| 2934 | + |
| 2935 | + \sa backgroundColor, footerColor |
| 2936 | + */ |
| 2937 | + property color headerColor: styledItem.headerColor |
| 2938 | + |
| 2939 | + /*! |
| 2940 | + Color of the background. |
| 2941 | + |
| 2942 | + The background is usually a single color. However if \l headerColor |
| 2943 | + or \l footerColor are set then a gradient of colors will be drawn. |
| 2944 | + |
| 2945 | + \sa footerColor, headerColor |
| 2946 | + */ |
| 2947 | + property color backgroundColor: styledItem.backgroundColor |
| 2948 | + |
| 2949 | + /*! |
| 2950 | + Color of the footer's background. |
| 2951 | + |
| 2952 | + \sa backgroundColor, headerColor |
| 2953 | + */ |
| 2954 | + property color footerColor: styledItem.footerColor |
| 2955 | |
| 2956 | Gradient { |
| 2957 | id: backgroundGradient |
| 2958 | - GradientStop { position: 0.0; color: styledItem.headerColor } |
| 2959 | - GradientStop { position: 0.83; color: styledItem.backgroundColor } |
| 2960 | - GradientStop { position: 1.0; color: styledItem.footerColor } |
| 2961 | + GradientStop { position: 0.0; color: mainViewStyle.headerColor } |
| 2962 | + GradientStop { position: 0.83; color: mainViewStyle.backgroundColor } |
| 2963 | + GradientStop { position: 1.0; color: mainViewStyle.footerColor } |
| 2964 | } |
| 2965 | |
| 2966 | Rectangle { |
| 2967 | id: backgroundColor |
| 2968 | anchors.fill: parent |
| 2969 | - color: styledItem.backgroundColor |
| 2970 | + color: mainViewStyle.backgroundColor |
| 2971 | gradient: internals.isGradient ? backgroundGradient : null |
| 2972 | } |
| 2973 | |
| 2974 | - Image { |
| 2975 | - id: backgroundTexture |
| 2976 | - anchors.fill: parent |
| 2977 | - source: mainViewStyle.theme.name === "Ambiance" ? mainViewStyle.backgroundSource : "" |
| 2978 | - fillMode: Image.Tile |
| 2979 | - asynchronous: true |
| 2980 | - cache: false |
| 2981 | - visible: status === Image.Ready |
| 2982 | - } |
| 2983 | - |
| 2984 | QtObject { |
| 2985 | id: internals |
| 2986 | - property bool isGradient: styledItem.backgroundColor != styledItem.headerColor || |
| 2987 | - styledItem.backgroundColor != styledItem.footerColor |
| 2988 | + property bool isGradient: mainViewStyle.backgroundColor != mainViewStyle.headerColor || |
| 2989 | + mainViewStyle.backgroundColor != mainViewStyle.footerColor |
| 2990 | + |
| 2991 | /* |
| 2992 | As we don't know the order the property bindings and onXXXChanged signals are evaluated |
| 2993 | we should rely only on one property when changing the theme to avoid intermediate |
| 2994 | @@ -65,8 +74,7 @@ |
| 2995 | |
| 2996 | Qt bug: https://bugreports.qt-project.org/browse/QTBUG-11712 |
| 2997 | */ |
| 2998 | - property string theme: (ColorUtils.luminance(styledItem.backgroundColor) >= 0.85) ? "Ambiance" : |
| 2999 | - (isGradient ? "SuruGradient" : "SuruDark") |
| 3000 | + property string theme: (ColorUtils.luminance(styledItem.backgroundColor) >= 0.85) ? "Ambiance" : "SuruDark" |
| 3001 | } |
| 3002 | |
| 3003 | // automatically select the appropriate theme depending on the background colors |
| 3004 | |
| 3005 | === modified file 'qml/Stages/PageHeadStyle.qml' |
| 3006 | --- qml/Stages/PageHeadStyle.qml 2014-08-27 18:50:43 +0000 |
| 3007 | +++ qml/Stages/PageHeadStyle.qml 2015-10-26 15:26:58 +0000 |
| 3008 | @@ -14,8 +14,8 @@ |
| 3009 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 3010 | */ |
| 3011 | import QtQuick 2.2 |
| 3012 | -import Ubuntu.Components 1.1 |
| 3013 | -import Ubuntu.Components.Styles 1.1 as Style |
| 3014 | +import Ubuntu.Components 1.3 |
| 3015 | +import Ubuntu.Components.Styles 1.3 as Style |
| 3016 | |
| 3017 | // FIXME: copied with large modifications from Ubuntu UI Toolkit's Ambiance's theme |
| 3018 | Style.PageHeadStyle { |
| 3019 | |
| 3020 | === modified file 'qml/Stages/PhoneStage.qml' |
| 3021 | --- qml/Stages/PhoneStage.qml 2015-09-21 13:37:47 +0000 |
| 3022 | +++ qml/Stages/PhoneStage.qml 2015-10-26 15:26:58 +0000 |
| 3023 | @@ -15,7 +15,7 @@ |
| 3024 | */ |
| 3025 | |
| 3026 | import QtQuick 2.2 |
| 3027 | -import Ubuntu.Components 0.1 |
| 3028 | +import Ubuntu.Components 1.3 |
| 3029 | import Ubuntu.Gestures 0.1 |
| 3030 | import Unity.Application 0.1 |
| 3031 | import Unity.Session 0.1 |
| 3032 | |
| 3033 | === modified file 'qml/Stages/ShimStage.qml' |
| 3034 | --- qml/Stages/ShimStage.qml 2015-04-21 19:43:25 +0000 |
| 3035 | +++ qml/Stages/ShimStage.qml 2015-10-26 15:26:58 +0000 |
| 3036 | @@ -15,7 +15,7 @@ |
| 3037 | */ |
| 3038 | |
| 3039 | import QtQuick 2.3 |
| 3040 | -import Ubuntu.Components 0.1 |
| 3041 | +import Ubuntu.Components 1.3 |
| 3042 | |
| 3043 | Rectangle { |
| 3044 | id: shimStage |
| 3045 | |
| 3046 | === modified file 'qml/Stages/Splash.qml' |
| 3047 | --- qml/Stages/Splash.qml 2015-07-10 15:55:50 +0000 |
| 3048 | +++ qml/Stages/Splash.qml 2015-10-26 15:26:58 +0000 |
| 3049 | @@ -15,11 +15,11 @@ |
| 3050 | */ |
| 3051 | |
| 3052 | import QtQuick 2.2 |
| 3053 | -import Ubuntu.Components 1.1 |
| 3054 | -import Ubuntu.Components.Themes 0.1 |
| 3055 | +import Ubuntu.Components 1.3 |
| 3056 | +import Ubuntu.Components.Themes 1.3 |
| 3057 | import "../Components" |
| 3058 | |
| 3059 | -import Ubuntu.Components.Themes.Ambiance 1.1 as Ambiance |
| 3060 | +import Ubuntu.Components.Themes.Ambiance 1.3 as Ambiance |
| 3061 | |
| 3062 | Item { |
| 3063 | id: root |
| 3064 | @@ -62,17 +62,17 @@ |
| 3065 | : root.footerColor |
| 3066 | |
| 3067 | // FIXME: fake a Theme object as to expose the Palette corresponding to the backgroundColor (see MainViewStyle.qml) |
| 3068 | - property var theme: QtObject { |
| 3069 | + readonly property var fakeTheme: QtObject { |
| 3070 | property string name |
| 3071 | property Palette palette: Qt.createQmlObject("import QtQuick 2.2;\ |
| 3072 | - import Ubuntu.Components.Themes.%1 1.1;\ |
| 3073 | - Palette {}".arg(styledItem.theme.name), |
| 3074 | + import Ubuntu.Components.Themes.%1 1.3;\ |
| 3075 | + Palette {}".arg(styledItem.fakeTheme.name), |
| 3076 | styledItem, "dynamicPalette"); |
| 3077 | } |
| 3078 | |
| 3079 | // FIXME: should instead use future toolkit API: |
| 3080 | // style: theme.createStyleComponent("MainViewStyle.qml", styledItem) |
| 3081 | - style: Component { MainViewStyle {theme: styledItem.theme} } |
| 3082 | + style: Component { MainViewStyle {theme: styledItem.fakeTheme} } |
| 3083 | } |
| 3084 | |
| 3085 | StyledItem { |
| 3086 | @@ -89,13 +89,13 @@ |
| 3087 | property string title |
| 3088 | property var tabsModel |
| 3089 | property var config: QtObject { |
| 3090 | - property color foregroundColor: styledItem.theme.palette.selected.backgroundText |
| 3091 | + property color foregroundColor: styledItem.fakeTheme.palette.selected.backgroundText |
| 3092 | property var sections: QtObject {} |
| 3093 | } |
| 3094 | |
| 3095 | // FIXME: should instead use future toolkit API: |
| 3096 | // style: theme.createStyleComponent("PageHeadStyle.qml", header) |
| 3097 | - style: Component { PageHeadStyle {theme: styledItem.theme} } |
| 3098 | + style: Component { PageHeadStyle {theme: styledItem.fakeTheme} } |
| 3099 | } |
| 3100 | |
| 3101 | Image { |
| 3102 | @@ -121,14 +121,13 @@ |
| 3103 | visible: d.showIcon |
| 3104 | |
| 3105 | radius: "medium" |
| 3106 | - borderSource: "none" |
| 3107 | - |
| 3108 | - image: Image { |
| 3109 | + aspect: UbuntuShape.Flat |
| 3110 | + sourceFillMode: Image.PreserveAspectCrop |
| 3111 | + source: Image { |
| 3112 | id: iconImage |
| 3113 | sourceSize.width: iconShape.width |
| 3114 | sourceSize.height: iconShape.height |
| 3115 | source: d.showIcon ? root.icon : "" |
| 3116 | - fillMode: Image.PreserveAspectCrop |
| 3117 | } |
| 3118 | } |
| 3119 | |
| 3120 | @@ -139,7 +138,7 @@ |
| 3121 | anchors.topMargin: units.gu(2) |
| 3122 | fontSize: "large" |
| 3123 | |
| 3124 | - color: styledItem.theme.palette.selected.backgroundText |
| 3125 | + color: styledItem.fakeTheme.palette.selected.backgroundText |
| 3126 | visible: d.showIcon |
| 3127 | } |
| 3128 | |
| 3129 | |
| 3130 | === modified file 'qml/Stages/SpreadDelegate.qml' |
| 3131 | --- qml/Stages/SpreadDelegate.qml 2015-09-21 13:10:02 +0000 |
| 3132 | +++ qml/Stages/SpreadDelegate.qml 2015-10-26 15:26:58 +0000 |
| 3133 | @@ -19,7 +19,7 @@ |
| 3134 | |
| 3135 | import QtQuick 2.0 |
| 3136 | import QtQuick.Window 2.0 |
| 3137 | -import Ubuntu.Components 1.1 |
| 3138 | +import Ubuntu.Components 1.3 |
| 3139 | import "../Components" |
| 3140 | |
| 3141 | FocusScope { |
| 3142 | |
| 3143 | === modified file 'qml/Stages/SpreadMaths.qml' |
| 3144 | --- qml/Stages/SpreadMaths.qml 2015-07-14 16:16:42 +0000 |
| 3145 | +++ qml/Stages/SpreadMaths.qml 2015-10-26 15:26:58 +0000 |
| 3146 | @@ -15,7 +15,7 @@ |
| 3147 | */ |
| 3148 | |
| 3149 | import QtQuick 2.2 |
| 3150 | -import Ubuntu.Components 1.1 |
| 3151 | +import Ubuntu.Components 1.3 |
| 3152 | import Utils 0.1 |
| 3153 | |
| 3154 | Item { |
| 3155 | |
| 3156 | === modified file 'qml/Stages/SurfaceContainer.qml' |
| 3157 | --- qml/Stages/SurfaceContainer.qml 2015-09-30 14:25:00 +0000 |
| 3158 | +++ qml/Stages/SurfaceContainer.qml 2015-10-26 15:26:58 +0000 |
| 3159 | @@ -15,7 +15,7 @@ |
| 3160 | */ |
| 3161 | |
| 3162 | import QtQuick 2.0 |
| 3163 | -import Ubuntu.Components 1.1 |
| 3164 | +import Ubuntu.Components 1.3 |
| 3165 | import Ubuntu.Gestures 0.1 // For TouchGate |
| 3166 | import Utils 0.1 // for InputWatcher |
| 3167 | import Unity.Application 0.1 // for MirSurfaceItem |
| 3168 | |
| 3169 | === modified file 'qml/Stages/TabletStage.qml' |
| 3170 | --- qml/Stages/TabletStage.qml 2015-08-03 13:47:44 +0000 |
| 3171 | +++ qml/Stages/TabletStage.qml 2015-10-26 15:26:58 +0000 |
| 3172 | @@ -15,7 +15,7 @@ |
| 3173 | */ |
| 3174 | |
| 3175 | import QtQuick 2.0 |
| 3176 | -import Ubuntu.Components 0.1 |
| 3177 | +import Ubuntu.Components 1.3 |
| 3178 | import Ubuntu.Gestures 0.1 |
| 3179 | import Unity.Application 0.1 |
| 3180 | import Utils 0.1 |
| 3181 | |
| 3182 | === modified file 'qml/Stages/TransformedSpreadDelegate.qml' |
| 3183 | --- qml/Stages/TransformedSpreadDelegate.qml 2015-04-28 20:20:23 +0000 |
| 3184 | +++ qml/Stages/TransformedSpreadDelegate.qml 2015-10-26 15:26:58 +0000 |
| 3185 | @@ -18,7 +18,7 @@ |
| 3186 | |
| 3187 | import QtQuick 2.0 |
| 3188 | import Utils 0.1 |
| 3189 | -import Ubuntu.Components 0.1 |
| 3190 | +import Ubuntu.Components 1.3 |
| 3191 | |
| 3192 | SpreadDelegate { |
| 3193 | id: root |
| 3194 | |
| 3195 | === modified file 'qml/Stages/TransformedTabletSpreadDelegate.qml' |
| 3196 | --- qml/Stages/TransformedTabletSpreadDelegate.qml 2015-03-06 04:44:11 +0000 |
| 3197 | +++ qml/Stages/TransformedTabletSpreadDelegate.qml 2015-10-26 15:26:58 +0000 |
| 3198 | @@ -18,7 +18,7 @@ |
| 3199 | |
| 3200 | import QtQuick 2.0 |
| 3201 | import Utils 0.1 |
| 3202 | -import Ubuntu.Components 0.1 |
| 3203 | +import Ubuntu.Components 1.3 |
| 3204 | import Unity.Application 0.1 |
| 3205 | |
| 3206 | SpreadDelegate { |
| 3207 | |
| 3208 | === modified file 'qml/Stages/WindowDecoration.qml' |
| 3209 | --- qml/Stages/WindowDecoration.qml 2015-10-19 19:05:23 +0000 |
| 3210 | +++ qml/Stages/WindowDecoration.qml 2015-10-26 15:26:58 +0000 |
| 3211 | @@ -15,8 +15,12 @@ |
| 3212 | */ |
| 3213 | |
| 3214 | import QtQuick 2.3 |
| 3215 | +<<<<<<< TREE |
| 3216 | import Unity.Application 0.1 // For Mir singleton |
| 3217 | import Ubuntu.Components 1.1 |
| 3218 | +======= |
| 3219 | +import Ubuntu.Components 1.3 |
| 3220 | +>>>>>>> MERGE-SOURCE |
| 3221 | import "../Components" |
| 3222 | |
| 3223 | MouseArea { |
| 3224 | |
| 3225 | === modified file 'qml/Stages/WindowResizeArea.qml' |
| 3226 | --- qml/Stages/WindowResizeArea.qml 2015-09-29 12:48:46 +0000 |
| 3227 | +++ qml/Stages/WindowResizeArea.qml 2015-10-26 15:26:58 +0000 |
| 3228 | @@ -15,7 +15,7 @@ |
| 3229 | */ |
| 3230 | |
| 3231 | import QtQuick 2.3 |
| 3232 | -import Ubuntu.Components 1.1 |
| 3233 | +import Ubuntu.Components 1.3 |
| 3234 | import Utils 0.1 |
| 3235 | import Unity.Application 0.1 // for Mir.cursorName |
| 3236 | |
| 3237 | |
| 3238 | === removed file 'qml/Stages/graphics/background_paper@27.png' |
| 3239 | Binary files qml/Stages/graphics/background_paper@27.png 2014-08-06 20:38:48 +0000 and qml/Stages/graphics/background_paper@27.png 1970-01-01 00:00:00 +0000 differ |
| 3240 | === modified file 'qml/Tutorial/Arrow.qml' |
| 3241 | --- qml/Tutorial/Arrow.qml 2014-12-18 23:32:42 +0000 |
| 3242 | +++ qml/Tutorial/Arrow.qml 2015-10-26 15:26:58 +0000 |
| 3243 | @@ -15,7 +15,7 @@ |
| 3244 | */ |
| 3245 | |
| 3246 | import QtQuick 2.3 |
| 3247 | -import Ubuntu.Components 1.1 |
| 3248 | +import Ubuntu.Components 1.3 |
| 3249 | |
| 3250 | Item { |
| 3251 | id: root |
| 3252 | |
| 3253 | === modified file 'qml/Tutorial/Slider.qml' |
| 3254 | --- qml/Tutorial/Slider.qml 2015-01-09 21:51:24 +0000 |
| 3255 | +++ qml/Tutorial/Slider.qml 2015-10-26 15:26:58 +0000 |
| 3256 | @@ -15,7 +15,7 @@ |
| 3257 | */ |
| 3258 | |
| 3259 | import QtQuick 2.3 |
| 3260 | -import Ubuntu.Components 1.1 |
| 3261 | +import Ubuntu.Components 1.3 |
| 3262 | |
| 3263 | Item { |
| 3264 | id: root |
| 3265 | |
| 3266 | === modified file 'qml/Tutorial/Tick.qml' |
| 3267 | --- qml/Tutorial/Tick.qml 2015-01-06 14:46:52 +0000 |
| 3268 | +++ qml/Tutorial/Tick.qml 2015-10-26 15:26:58 +0000 |
| 3269 | @@ -15,7 +15,7 @@ |
| 3270 | */ |
| 3271 | |
| 3272 | import QtQuick 2.3 |
| 3273 | -import Ubuntu.Components 1.1 |
| 3274 | +import Ubuntu.Components 1.3 |
| 3275 | |
| 3276 | MouseArea { |
| 3277 | implicitHeight: tick.height |
| 3278 | |
| 3279 | === modified file 'qml/Tutorial/Tutorial.qml' |
| 3280 | --- qml/Tutorial/Tutorial.qml 2015-08-20 15:05:39 +0000 |
| 3281 | +++ qml/Tutorial/Tutorial.qml 2015-10-26 15:26:58 +0000 |
| 3282 | @@ -15,7 +15,7 @@ |
| 3283 | */ |
| 3284 | |
| 3285 | import QtQuick 2.3 |
| 3286 | -import Ubuntu.Components 1.1 |
| 3287 | +import Ubuntu.Components 1.3 |
| 3288 | |
| 3289 | Item { |
| 3290 | id: root |
| 3291 | |
| 3292 | === modified file 'qml/Tutorial/TutorialBottom.qml' |
| 3293 | --- qml/Tutorial/TutorialBottom.qml 2015-04-10 21:16:37 +0000 |
| 3294 | +++ qml/Tutorial/TutorialBottom.qml 2015-10-26 15:26:58 +0000 |
| 3295 | @@ -15,7 +15,7 @@ |
| 3296 | */ |
| 3297 | |
| 3298 | import QtQuick 2.3 |
| 3299 | -import Ubuntu.Components 1.1 |
| 3300 | +import Ubuntu.Components 1.3 |
| 3301 | import Ubuntu.Gestures 0.1 |
| 3302 | import "../Components" |
| 3303 | import "." as LocalComponents |
| 3304 | |
| 3305 | === modified file 'qml/Tutorial/TutorialBottomFinish.qml' |
| 3306 | --- qml/Tutorial/TutorialBottomFinish.qml 2015-01-06 14:46:52 +0000 |
| 3307 | +++ qml/Tutorial/TutorialBottomFinish.qml 2015-10-26 15:26:58 +0000 |
| 3308 | @@ -15,7 +15,7 @@ |
| 3309 | */ |
| 3310 | |
| 3311 | import QtQuick 2.3 |
| 3312 | -import Ubuntu.Components 1.1 |
| 3313 | +import Ubuntu.Components 1.3 |
| 3314 | import "." as LocalComponents |
| 3315 | |
| 3316 | TutorialPage { |
| 3317 | |
| 3318 | === modified file 'qml/Tutorial/TutorialContent.qml' |
| 3319 | --- qml/Tutorial/TutorialContent.qml 2015-08-20 15:05:39 +0000 |
| 3320 | +++ qml/Tutorial/TutorialContent.qml 2015-10-26 15:26:58 +0000 |
| 3321 | @@ -15,7 +15,7 @@ |
| 3322 | */ |
| 3323 | |
| 3324 | import QtQuick 2.3 |
| 3325 | -import Ubuntu.Components 1.1 |
| 3326 | +import Ubuntu.Components 1.3 |
| 3327 | |
| 3328 | Item { |
| 3329 | id: root |
| 3330 | |
| 3331 | === modified file 'qml/Tutorial/TutorialLeft.qml' |
| 3332 | --- qml/Tutorial/TutorialLeft.qml 2015-06-16 22:25:29 +0000 |
| 3333 | +++ qml/Tutorial/TutorialLeft.qml 2015-10-26 15:26:58 +0000 |
| 3334 | @@ -15,7 +15,7 @@ |
| 3335 | */ |
| 3336 | |
| 3337 | import QtQuick 2.3 |
| 3338 | -import Ubuntu.Components 1.1 |
| 3339 | +import Ubuntu.Components 1.3 |
| 3340 | import "." as LocalComponents |
| 3341 | |
| 3342 | TutorialPage { |
| 3343 | |
| 3344 | === modified file 'qml/Tutorial/TutorialLeftFinish.qml' |
| 3345 | --- qml/Tutorial/TutorialLeftFinish.qml 2015-01-06 14:46:52 +0000 |
| 3346 | +++ qml/Tutorial/TutorialLeftFinish.qml 2015-10-26 15:26:58 +0000 |
| 3347 | @@ -15,7 +15,7 @@ |
| 3348 | */ |
| 3349 | |
| 3350 | import QtQuick 2.3 |
| 3351 | -import Ubuntu.Components 1.1 |
| 3352 | +import Ubuntu.Components 1.3 |
| 3353 | import "." as LocalComponents |
| 3354 | |
| 3355 | TutorialPage { |
| 3356 | |
| 3357 | === modified file 'qml/Tutorial/TutorialPage.qml' |
| 3358 | --- qml/Tutorial/TutorialPage.qml 2015-01-09 21:51:24 +0000 |
| 3359 | +++ qml/Tutorial/TutorialPage.qml 2015-10-26 15:26:58 +0000 |
| 3360 | @@ -15,7 +15,7 @@ |
| 3361 | */ |
| 3362 | |
| 3363 | import QtQuick 2.3 |
| 3364 | -import Ubuntu.Components 1.1 |
| 3365 | +import Ubuntu.Components 1.3 |
| 3366 | import "../Components" |
| 3367 | |
| 3368 | Showable { |
| 3369 | |
| 3370 | === modified file 'qml/Tutorial/TutorialRight.qml' |
| 3371 | --- qml/Tutorial/TutorialRight.qml 2015-02-18 21:31:54 +0000 |
| 3372 | +++ qml/Tutorial/TutorialRight.qml 2015-10-26 15:26:58 +0000 |
| 3373 | @@ -15,7 +15,7 @@ |
| 3374 | */ |
| 3375 | |
| 3376 | import QtQuick 2.3 |
| 3377 | -import Ubuntu.Components 1.1 |
| 3378 | +import Ubuntu.Components 1.3 |
| 3379 | import Ubuntu.Gestures 0.1 |
| 3380 | import Unity.Application 0.1 |
| 3381 | import "../Components" |
| 3382 | |
| 3383 | === modified file 'qml/Wizard/CheckableSetting.qml' |
| 3384 | --- qml/Wizard/CheckableSetting.qml 2014-11-14 17:47:00 +0000 |
| 3385 | +++ qml/Wizard/CheckableSetting.qml 2015-10-26 15:26:58 +0000 |
| 3386 | @@ -1,5 +1,5 @@ |
| 3387 | /* |
| 3388 | - * Copyright (C) 2014 Canonical, Ltd. |
| 3389 | + * Copyright (C) 2014,2015 Canonical, Ltd. |
| 3390 | * |
| 3391 | * This program is free software; you can redistribute it and/or modify |
| 3392 | * it under the terms of the GNU General Public License as published by |
| 3393 | @@ -15,8 +15,8 @@ |
| 3394 | */ |
| 3395 | |
| 3396 | import QtQuick 2.3 |
| 3397 | -import Ubuntu.Components 1.1 |
| 3398 | -import Ubuntu.Components.ListItems 1.0 as ListItem |
| 3399 | +import Ubuntu.Components 1.3 |
| 3400 | +import Ubuntu.Components.ListItems 1.3 as ListItem |
| 3401 | |
| 3402 | ListItem.Empty { |
| 3403 | id: listItem |
| 3404 | @@ -77,7 +77,7 @@ |
| 3405 | rightMargin: listItem.rightMargin |
| 3406 | } |
| 3407 | wrapMode: Text.Wrap |
| 3408 | - linkColor: Theme.palette.normal.foregroundText |
| 3409 | + linkColor: theme.palette.normal.foregroundText |
| 3410 | onLinkActivated: listItem.linkActivated(link) |
| 3411 | } |
| 3412 | } |
| 3413 | |
| 3414 | === modified file 'qml/Wizard/Page.qml' |
| 3415 | --- qml/Wizard/Page.qml 2015-03-13 10:07:57 +0000 |
| 3416 | +++ qml/Wizard/Page.qml 2015-10-26 15:26:58 +0000 |
| 3417 | @@ -1,5 +1,5 @@ |
| 3418 | /* |
| 3419 | - * Copyright (C) 2013 Canonical, Ltd. |
| 3420 | + * Copyright (C) 2013,2015 Canonical, Ltd. |
| 3421 | * |
| 3422 | * This program is free software; you can redistribute it and/or modify |
| 3423 | * it under the terms of the GNU General Public License as published by |
| 3424 | @@ -15,7 +15,7 @@ |
| 3425 | */ |
| 3426 | |
| 3427 | import QtQuick 2.3 |
| 3428 | -import Ubuntu.Components 1.1 |
| 3429 | +import Ubuntu.Components 1.3 |
| 3430 | |
| 3431 | Item { |
| 3432 | readonly property real buttonMargin: units.gu(2) |
| 3433 | @@ -57,7 +57,7 @@ |
| 3434 | } |
| 3435 | wrapMode: Text.Wrap |
| 3436 | text: title |
| 3437 | - color: Theme.palette.normal.baseText |
| 3438 | + color: theme.palette.normal.baseText |
| 3439 | font.pixelSize: units.gu(4) |
| 3440 | } |
| 3441 | |
| 3442 | |
| 3443 | === modified file 'qml/Wizard/Pages.qml' |
| 3444 | --- qml/Wizard/Pages.qml 2015-03-03 14:42:10 +0000 |
| 3445 | +++ qml/Wizard/Pages.qml 2015-10-26 15:26:58 +0000 |
| 3446 | @@ -15,7 +15,7 @@ |
| 3447 | */ |
| 3448 | |
| 3449 | import QtQuick 2.3 |
| 3450 | -import Ubuntu.Components 1.1 |
| 3451 | +import Ubuntu.Components 1.3 |
| 3452 | import Ubuntu.SystemSettings.SecurityPrivacy 1.0 |
| 3453 | import Wizard 0.1 |
| 3454 | import "../Components" |
| 3455 | |
| 3456 | === modified file 'qml/Wizard/Pages/10-welcome.qml' |
| 3457 | --- qml/Wizard/Pages/10-welcome.qml 2014-11-21 19:28:16 +0000 |
| 3458 | +++ qml/Wizard/Pages/10-welcome.qml 2015-10-26 15:26:58 +0000 |
| 3459 | @@ -15,8 +15,8 @@ |
| 3460 | */ |
| 3461 | |
| 3462 | import QtQuick 2.3 |
| 3463 | -import Ubuntu.Components 1.1 |
| 3464 | -import Ubuntu.Components.ListItems 0.1 |
| 3465 | +import Ubuntu.Components 1.3 |
| 3466 | +import Ubuntu.Components.ListItems 1.3 |
| 3467 | import Ubuntu.SystemSettings.LanguagePlugin 1.0 |
| 3468 | import Wizard 0.1 |
| 3469 | import ".." as LocalComponents |
| 3470 | |
| 3471 | === modified file 'qml/Wizard/Pages/20-sim.qml' |
| 3472 | --- qml/Wizard/Pages/20-sim.qml 2015-05-19 18:56:17 +0000 |
| 3473 | +++ qml/Wizard/Pages/20-sim.qml 2015-10-26 15:26:58 +0000 |
| 3474 | @@ -16,7 +16,7 @@ |
| 3475 | |
| 3476 | import QtQuick 2.0 |
| 3477 | import MeeGo.QOfono 0.2 |
| 3478 | -import Ubuntu.Components 0.1 |
| 3479 | +import Ubuntu.Components 1.3 |
| 3480 | import ".." as LocalComponents |
| 3481 | |
| 3482 | LocalComponents.Page { |
| 3483 | |
| 3484 | === modified file 'qml/Wizard/Pages/30-passwd-type.qml' |
| 3485 | --- qml/Wizard/Pages/30-passwd-type.qml 2015-03-13 10:07:57 +0000 |
| 3486 | +++ qml/Wizard/Pages/30-passwd-type.qml 2015-10-26 15:26:58 +0000 |
| 3487 | @@ -1,5 +1,5 @@ |
| 3488 | /* |
| 3489 | - * Copyright (C) 2014 Canonical, Ltd. |
| 3490 | + * Copyright (C) 2014,2015 Canonical, Ltd. |
| 3491 | * |
| 3492 | * This program is free software; you can redistribute it and/or modify |
| 3493 | * it under the terms of the GNU General Public License as published by |
| 3494 | @@ -15,8 +15,8 @@ |
| 3495 | */ |
| 3496 | |
| 3497 | import QtQuick 2.3 |
| 3498 | -import Ubuntu.Components 1.1 |
| 3499 | -import Ubuntu.Components.ListItems 1.0 |
| 3500 | +import Ubuntu.Components 1.3 |
| 3501 | +import Ubuntu.Components.ListItems 1.3 |
| 3502 | import Ubuntu.SystemSettings.SecurityPrivacy 1.0 |
| 3503 | import ".." as LocalComponents |
| 3504 | |
| 3505 | @@ -111,13 +111,13 @@ |
| 3506 | |
| 3507 | Component.onCompleted: { |
| 3508 | // A visible selected background looks bad in ListItem widgets with our theme |
| 3509 | - originalBackground = Theme.palette.selected.background |
| 3510 | - Theme.palette.selected.background = "transparent" |
| 3511 | + originalBackground = theme.palette.selected.background |
| 3512 | + theme.palette.selected.background = "transparent" |
| 3513 | } |
| 3514 | |
| 3515 | Component.onDestruction: { |
| 3516 | // Restore original theme background |
| 3517 | - Theme.palette.selected.background = originalBackground |
| 3518 | + theme.palette.selected.background = originalBackground |
| 3519 | } |
| 3520 | } |
| 3521 | } |
| 3522 | |
| 3523 | === modified file 'qml/Wizard/Pages/40-wifi.qml' |
| 3524 | --- qml/Wizard/Pages/40-wifi.qml 2015-02-03 15:00:26 +0000 |
| 3525 | +++ qml/Wizard/Pages/40-wifi.qml 2015-10-26 15:26:58 +0000 |
| 3526 | @@ -17,8 +17,8 @@ |
| 3527 | import QtQuick 2.0 |
| 3528 | import QMenuModel 0.1 as QMenuModel |
| 3529 | import QtSystemInfo 5.0 |
| 3530 | -import Ubuntu.Components 0.1 |
| 3531 | -import Ubuntu.Components.ListItems 0.1 as ListItem |
| 3532 | +import Ubuntu.Components 1.3 |
| 3533 | +import Ubuntu.Components.ListItems 1.3 as ListItem |
| 3534 | import Ubuntu.Settings.Menus 0.1 as Menus |
| 3535 | import ".." as LocalComponents |
| 3536 | |
| 3537 | |
| 3538 | === modified file 'qml/Wizard/Pages/50-location.qml' |
| 3539 | --- qml/Wizard/Pages/50-location.qml 2015-07-21 09:08:49 +0000 |
| 3540 | +++ qml/Wizard/Pages/50-location.qml 2015-10-26 15:26:58 +0000 |
| 3541 | @@ -1,5 +1,5 @@ |
| 3542 | /* |
| 3543 | - * Copyright (C) 2013,2014 Canonical, Ltd. |
| 3544 | + * Copyright (C) 2013-2015 Canonical, Ltd. |
| 3545 | * |
| 3546 | * This program is free software; you can redistribute it and/or modify |
| 3547 | * it under the terms of the GNU General Public License as published by |
| 3548 | @@ -18,7 +18,7 @@ |
| 3549 | import AccountsService 0.1 |
| 3550 | import QMenuModel 0.1 as QMenuModel |
| 3551 | import Qt.labs.folderlistmodel 2.1 |
| 3552 | -import Ubuntu.Components 1.1 |
| 3553 | +import Ubuntu.Components 1.3 |
| 3554 | import ".." as LocalComponents |
| 3555 | |
| 3556 | LocalComponents.Page { |
| 3557 | @@ -98,7 +98,7 @@ |
| 3558 | anchors.leftMargin: hereCheck.labelOffset |
| 3559 | anchors.right: parent.right |
| 3560 | wrapMode: Text.Wrap |
| 3561 | - linkColor: Theme.palette.normal.foregroundText |
| 3562 | + linkColor: theme.palette.normal.foregroundText |
| 3563 | // Translators: HERE is a trademark for Nokia's location service, you probably shouldn't translate it |
| 3564 | text: i18n.tr("By selecting this option you agree to the Nokia HERE <a href='#'>terms and conditions</a>.") |
| 3565 | onLinkActivated: pageStack.load(Qt.resolvedUrl("here-terms.qml")) |
| 3566 | |
| 3567 | === modified file 'qml/Wizard/Pages/60-reporting.qml' |
| 3568 | --- qml/Wizard/Pages/60-reporting.qml 2015-10-05 02:14:13 +0000 |
| 3569 | +++ qml/Wizard/Pages/60-reporting.qml 2015-10-26 15:26:58 +0000 |
| 3570 | @@ -15,7 +15,7 @@ |
| 3571 | */ |
| 3572 | |
| 3573 | import QtQuick 2.0 |
| 3574 | -import Ubuntu.Components 0.1 |
| 3575 | +import Ubuntu.Components 1.3 |
| 3576 | import Ubuntu.SystemSettings.Diagnostics 1.0 |
| 3577 | import ".." as LocalComponents |
| 3578 | |
| 3579 | |
| 3580 | === modified file 'qml/Wizard/Pages/80-finished.qml' |
| 3581 | --- qml/Wizard/Pages/80-finished.qml 2014-11-21 19:28:16 +0000 |
| 3582 | +++ qml/Wizard/Pages/80-finished.qml 2015-10-26 15:26:58 +0000 |
| 3583 | @@ -15,7 +15,7 @@ |
| 3584 | */ |
| 3585 | |
| 3586 | import QtQuick 2.0 |
| 3587 | -import Ubuntu.Components 0.1 |
| 3588 | +import Ubuntu.Components 1.3 |
| 3589 | import ".." as LocalComponents |
| 3590 | |
| 3591 | LocalComponents.Page { |
| 3592 | |
| 3593 | === modified file 'qml/Wizard/Pages/here-terms.qml' |
| 3594 | --- qml/Wizard/Pages/here-terms.qml 2014-11-21 19:28:16 +0000 |
| 3595 | +++ qml/Wizard/Pages/here-terms.qml 2015-10-26 15:26:58 +0000 |
| 3596 | @@ -1,5 +1,5 @@ |
| 3597 | /* |
| 3598 | - * Copyright (C) 2014 Canonical, Ltd. |
| 3599 | + * Copyright (C) 2014,2015 Canonical, Ltd. |
| 3600 | * |
| 3601 | * This program is free software; you can redistribute it and/or modify |
| 3602 | * it under the terms of the GNU General Public License as published by |
| 3603 | @@ -17,7 +17,7 @@ |
| 3604 | import QtQuick 2.3 |
| 3605 | import AccountsService 0.1 |
| 3606 | import Qt.labs.folderlistmodel 2.1 |
| 3607 | -import Ubuntu.Components 1.1 |
| 3608 | +import Ubuntu.Components 1.3 |
| 3609 | import Ubuntu.Web 0.2 |
| 3610 | import ".." as LocalComponents |
| 3611 | |
| 3612 | @@ -102,7 +102,7 @@ |
| 3613 | anchors.left: parent.left |
| 3614 | anchors.right: parent.right |
| 3615 | wrapMode: Text.Wrap |
| 3616 | - linkColor: Theme.palette.normal.foregroundText |
| 3617 | + linkColor: theme.palette.normal.foregroundText |
| 3618 | onLinkActivated: { |
| 3619 | webview.url = link |
| 3620 | termsLabel.visible = false |
| 3621 | |
| 3622 | === modified file 'qml/Wizard/Pages/passwd-confirm.qml' |
| 3623 | --- qml/Wizard/Pages/passwd-confirm.qml 2014-11-21 19:28:16 +0000 |
| 3624 | +++ qml/Wizard/Pages/passwd-confirm.qml 2015-10-26 15:26:58 +0000 |
| 3625 | @@ -15,7 +15,7 @@ |
| 3626 | */ |
| 3627 | |
| 3628 | import QtQuick 2.3 |
| 3629 | -import Ubuntu.Components 1.1 |
| 3630 | +import Ubuntu.Components 1.3 |
| 3631 | import Ubuntu.SystemSettings.SecurityPrivacy 1.0 |
| 3632 | import ".." as LocalComponents |
| 3633 | import "../../Components" as UnityComponents |
| 3634 | |
| 3635 | === modified file 'qml/Wizard/Pages/passwd-set.qml' |
| 3636 | --- qml/Wizard/Pages/passwd-set.qml 2014-11-21 19:28:16 +0000 |
| 3637 | +++ qml/Wizard/Pages/passwd-set.qml 2015-10-26 15:26:58 +0000 |
| 3638 | @@ -15,7 +15,7 @@ |
| 3639 | */ |
| 3640 | |
| 3641 | import QtQuick 2.3 |
| 3642 | -import Ubuntu.Components 1.1 |
| 3643 | +import Ubuntu.Components 1.3 |
| 3644 | import Ubuntu.SystemSettings.SecurityPrivacy 1.0 |
| 3645 | import ".." as LocalComponents |
| 3646 | import "../../Components" as UnityComponents |
| 3647 | |
| 3648 | === modified file 'qml/Wizard/StackButton.qml' |
| 3649 | --- qml/Wizard/StackButton.qml 2014-11-14 17:47:00 +0000 |
| 3650 | +++ qml/Wizard/StackButton.qml 2015-10-26 15:26:58 +0000 |
| 3651 | @@ -1,5 +1,5 @@ |
| 3652 | /* |
| 3653 | - * Copyright (C) 2014 Canonical, Ltd. |
| 3654 | + * Copyright (C) 2014,2015 Canonical, Ltd. |
| 3655 | * |
| 3656 | * This program is free software; you can redistribute it and/or modify |
| 3657 | * it under the terms of the GNU General Public License as published by |
| 3658 | @@ -15,7 +15,7 @@ |
| 3659 | */ |
| 3660 | |
| 3661 | import QtQuick 2.3 |
| 3662 | -import Ubuntu.Components 1.1 |
| 3663 | +import Ubuntu.Components 1.3 |
| 3664 | |
| 3665 | AbstractButton { |
| 3666 | id: stackButton |
| 3667 | @@ -32,7 +32,7 @@ |
| 3668 | anchors.verticalCenter: parent.verticalCenter |
| 3669 | anchors.left: parent.left |
| 3670 | anchors.right: parent.right |
| 3671 | - color: enabled ? Theme.palette.selected.backgroundText : Qt.darker(Theme.palette.selected.backgroundText, 1.5) |
| 3672 | + color: enabled ? theme.palette.selected.backgroundText : Qt.darker(theme.palette.selected.backgroundText, 1.5) |
| 3673 | text: { |
| 3674 | if (backArrow) { |
| 3675 | // Translators: This is the arrow for "Back" buttons |
| 3676 | |
| 3677 | === modified file 'qml/Wizard/Wizard.qml' |
| 3678 | --- qml/Wizard/Wizard.qml 2015-03-11 14:48:45 +0000 |
| 3679 | +++ qml/Wizard/Wizard.qml 2015-10-26 15:26:58 +0000 |
| 3680 | @@ -15,7 +15,7 @@ |
| 3681 | */ |
| 3682 | |
| 3683 | import QtQuick 2.3 |
| 3684 | -import Ubuntu.Components 1.1 |
| 3685 | +import Ubuntu.Components 1.3 |
| 3686 | import Wizard 0.1 |
| 3687 | import "../Components" |
| 3688 | |
| 3689 | |
| 3690 | === modified file 'tests/CMakeLists.txt' |
| 3691 | --- tests/CMakeLists.txt 2015-09-21 09:42:30 +0000 |
| 3692 | +++ tests/CMakeLists.txt 2015-10-26 15:26:58 +0000 |
| 3693 | @@ -132,3 +132,4 @@ |
| 3694 | add_subdirectory(plugins) |
| 3695 | add_subdirectory(qmltests) |
| 3696 | add_subdirectory(whitespace) |
| 3697 | +add_subdirectory(sdk) |
| 3698 | |
| 3699 | === modified file 'tests/autopilot/unity8/dash.py' |
| 3700 | --- tests/autopilot/unity8/dash.py 2015-09-03 07:44:51 +0000 |
| 3701 | +++ tests/autopilot/unity8/dash.py 2015-10-26 15:26:58 +0000 |
| 3702 | @@ -158,7 +158,7 @@ |
| 3703 | def enter_search_query(self, query, keyboard): |
| 3704 | current_header = self._get_current_page_header() |
| 3705 | search_button = \ |
| 3706 | - current_header.select_single(objectName="search_header_button") |
| 3707 | + current_header.select_single(objectName="search_action_button") |
| 3708 | self.pointing_device.move( |
| 3709 | search_button.globalRect.x + search_button.width / 2, |
| 3710 | search_button.globalRect.y + search_button.height / 2) |
| 3711 | @@ -224,7 +224,7 @@ |
| 3712 | """ |
| 3713 | category_element = self._get_category_element(category) |
| 3714 | icon = category_element.wait_select_single( |
| 3715 | - 'AbstractButton', title=title) |
| 3716 | + 'UCAbstractButton', title=title) |
| 3717 | list_view = self.select_single( |
| 3718 | ListViewWithPageHeader, objectName='categoryListView') |
| 3719 | list_view.swipe_child_into_view(icon) |
| 3720 | @@ -247,7 +247,7 @@ |
| 3721 | """ |
| 3722 | category_element = self._get_category_element(category) |
| 3723 | see_all = category_element.select_single(objectName='seeAll') |
| 3724 | - application_cards = category_element.select_many('AbstractButton') |
| 3725 | + application_cards = category_element.select_many('UCAbstractButton') |
| 3726 | |
| 3727 | application_cards = sorted( |
| 3728 | (card for card in application_cards |
| 3729 | |
| 3730 | === modified file 'tests/plugins/Dash/cardcreator/1.res' |
| 3731 | --- tests/plugins/Dash/cardcreator/1.res 2015-08-31 13:29:42 +0000 |
| 3732 | +++ tests/plugins/Dash/cardcreator/1.res 2015-10-26 15:26:58 +0000 |
| 3733 | @@ -2,7 +2,7 @@ |
| 3734 | id: root; |
| 3735 | property var components; |
| 3736 | property var cardData; |
| 3737 | - property var artShapeBorderSource: undefined; |
| 3738 | + property string artShapeStyle: "inset"; |
| 3739 | property real fontScale: 1.0; |
| 3740 | property var scopeStyle: null; |
| 3741 | property int titleAlignment: Text.AlignLeft; |
| 3742 | @@ -14,7 +14,6 @@ |
| 3743 | implicitWidth: childrenRect.width; |
| 3744 | enabled: true; |
| 3745 | |
| 3746 | -onArtShapeBorderSourceChanged: { if (artShapeBorderSource !== undefined && artShapeLoader.item) artShapeLoader.item.borderSource = artShapeBorderSource; } |
| 3747 | readonly property size artShapeSize: artShapeLoader.item ? Qt.size(artShapeLoader.item.width, artShapeLoader.item.height) : Qt.size(-1, -1); |
| 3748 | Item { |
| 3749 | id: artShapeHolder; |
| 3750 | @@ -30,10 +29,9 @@ |
| 3751 | sourceComponent: Item { |
| 3752 | id: artShape; |
| 3753 | objectName: "artShape"; |
| 3754 | - property bool doShapeItem: components["art"]["conciergeMode"] !== true; |
| 3755 | + readonly property bool doShapeItem: components["art"]["conciergeMode"] !== true; |
| 3756 | visible: image.status == Image.Ready; |
| 3757 | readonly property alias image: artImage; |
| 3758 | - property alias borderSource: artShapeShape.borderSource; |
| 3759 | ShaderEffectSource { |
| 3760 | id: artShapeSource; |
| 3761 | sourceItem: artImage; |
| 3762 | @@ -42,16 +40,17 @@ |
| 3763 | height: 1; |
| 3764 | hideSource: doShapeItem; |
| 3765 | } |
| 3766 | - Shape { |
| 3767 | + UbuntuShape { |
| 3768 | id: artShapeShape; |
| 3769 | - image: artShapeSource; |
| 3770 | + source: artShapeSource; |
| 3771 | anchors.fill: parent; |
| 3772 | visible: doShapeItem; |
| 3773 | radius: "medium"; |
| 3774 | + aspect: root.artShapeStyle === "inset" ? UbuntuShape.Inset : UbuntuShape.Flat; |
| 3775 | } |
| 3776 | readonly property real fixedArtShapeSizeAspect: (root.fixedArtShapeSize.height > 0 && root.fixedArtShapeSize.width > 0) ? root.fixedArtShapeSize.width / root.fixedArtShapeSize.height : -1; |
| 3777 | readonly property real aspect: fixedArtShapeSizeAspect > 0 ? fixedArtShapeSizeAspect : components !== undefined ? components["art"]["aspect-ratio"] : 1; |
| 3778 | - Component.onCompleted: { updateWidthHeightBindings(); if (artShapeBorderSource !== undefined) borderSource = artShapeBorderSource; } |
| 3779 | + Component.onCompleted: { updateWidthHeightBindings(); } |
| 3780 | Connections { target: root; onFixedArtShapeSizeChanged: updateWidthHeightBindings(); } |
| 3781 | function updateWidthHeightBindings() { |
| 3782 | if (root.fixedArtShapeSize.height > 0 && root.fixedArtShapeSize.width > 0) { |
| 3783 | @@ -87,7 +86,7 @@ |
| 3784 | wrapMode: Text.Wrap; |
| 3785 | maximumLineCount: 2; |
| 3786 | font.pixelSize: Math.round(FontUtils.sizeToPixels(fontSize) * fontScale); |
| 3787 | - color: root.scopeStyle ? root.scopeStyle.foreground : Theme.palette.normal.baseText; |
| 3788 | + color: root.scopeStyle ? root.scopeStyle.foreground : theme.palette.normal.baseText; |
| 3789 | visible: showHeader ; |
| 3790 | width: undefined; |
| 3791 | text: root.title; |
| 3792 | |
| 3793 | === modified file 'tests/plugins/Dash/cardcreator/2.res' |
| 3794 | --- tests/plugins/Dash/cardcreator/2.res 2015-06-22 08:29:55 +0000 |
| 3795 | +++ tests/plugins/Dash/cardcreator/2.res 2015-10-26 15:26:58 +0000 |
| 3796 | @@ -2,7 +2,7 @@ |
| 3797 | id: root; |
| 3798 | property var components; |
| 3799 | property var cardData; |
| 3800 | - property var artShapeBorderSource: undefined; |
| 3801 | + property string artShapeStyle: "inset"; |
| 3802 | property real fontScale: 1.0; |
| 3803 | property var scopeStyle: null; |
| 3804 | property int titleAlignment: Text.AlignLeft; |
| 3805 | @@ -23,11 +23,12 @@ |
| 3806 | sourceComponent: UbuntuShape { |
| 3807 | objectName: "background"; |
| 3808 | radius: "medium"; |
| 3809 | - color: getColor(0) || "white"; |
| 3810 | - gradientColor: getColor(1) || color; |
| 3811 | - anchors.fill: parent; |
| 3812 | - image: backgroundImage.source ? backgroundImage : null; |
| 3813 | - property real luminance: Style.luminance(color); |
| 3814 | + backgroundColor: getColor(0) || "white"; |
| 3815 | + secondaryBackgroundColor: getColor(1) || backgroundColor; |
| 3816 | + backgroundMode: UbuntuShape.VerticalGradient; |
| 3817 | + anchors.fill: parent; |
| 3818 | + source: backgroundImage.source ? backgroundImage : null; |
| 3819 | + property real luminance: Style.luminance(backgroundColor); |
| 3820 | property Image backgroundImage: Image { |
| 3821 | objectName: "backgroundImage"; |
| 3822 | source: { |
| 3823 | @@ -88,7 +89,7 @@ |
| 3824 | wrapMode: Text.Wrap; |
| 3825 | maximumLineCount: 2; |
| 3826 | font.pixelSize: Math.round(FontUtils.sizeToPixels(fontSize) * fontScale); |
| 3827 | - 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"); |
| 3828 | + 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"); |
| 3829 | visible: showHeader ; |
| 3830 | width: undefined; |
| 3831 | text: root.title; |
| 3832 | @@ -108,7 +109,7 @@ |
| 3833 | maximumLineCount: 1; |
| 3834 | fontSize: "x-small"; |
| 3835 | font.pixelSize: Math.round(FontUtils.sizeToPixels(fontSize) * fontScale); |
| 3836 | - 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"); |
| 3837 | + 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"); |
| 3838 | visible: titleLabel.visible && titleLabel.text; |
| 3839 | text: cardData && cardData["subtitle"] || ""; |
| 3840 | font.weight: Font.Light; |
| 3841 | |
| 3842 | === modified file 'tests/plugins/Dash/cardcreator/3.res' |
| 3843 | --- tests/plugins/Dash/cardcreator/3.res 2015-08-31 13:29:42 +0000 |
| 3844 | +++ tests/plugins/Dash/cardcreator/3.res 2015-10-26 15:26:58 +0000 |
| 3845 | @@ -2,7 +2,7 @@ |
| 3846 | id: root; |
| 3847 | property var components; |
| 3848 | property var cardData; |
| 3849 | - property var artShapeBorderSource: undefined; |
| 3850 | + property string artShapeStyle: "inset"; |
| 3851 | property real fontScale: 1.0; |
| 3852 | property var scopeStyle: null; |
| 3853 | property int titleAlignment: Text.AlignLeft; |
| 3854 | @@ -14,7 +14,6 @@ |
| 3855 | implicitWidth: childrenRect.width; |
| 3856 | enabled: true; |
| 3857 | |
| 3858 | -onArtShapeBorderSourceChanged: { if (artShapeBorderSource !== undefined && artShapeLoader.item) artShapeLoader.item.borderSource = artShapeBorderSource; } |
| 3859 | readonly property size artShapeSize: artShapeLoader.item ? Qt.size(artShapeLoader.item.width, artShapeLoader.item.height) : Qt.size(-1, -1); |
| 3860 | Item { |
| 3861 | id: artShapeHolder; |
| 3862 | @@ -30,10 +29,9 @@ |
| 3863 | sourceComponent: Item { |
| 3864 | id: artShape; |
| 3865 | objectName: "artShape"; |
| 3866 | - property bool doShapeItem: components["art"]["conciergeMode"] !== true; |
| 3867 | + readonly property bool doShapeItem: components["art"]["conciergeMode"] !== true; |
| 3868 | visible: image.status == Image.Ready; |
| 3869 | readonly property alias image: artImage; |
| 3870 | - property alias borderSource: artShapeShape.borderSource; |
| 3871 | ShaderEffectSource { |
| 3872 | id: artShapeSource; |
| 3873 | sourceItem: artImage; |
| 3874 | @@ -42,16 +40,17 @@ |
| 3875 | height: 1; |
| 3876 | hideSource: doShapeItem; |
| 3877 | } |
| 3878 | - Shape { |
| 3879 | + UbuntuShape { |
| 3880 | id: artShapeShape; |
| 3881 | - image: artShapeSource; |
| 3882 | + source: artShapeSource; |
| 3883 | anchors.fill: parent; |
| 3884 | visible: doShapeItem; |
| 3885 | radius: "medium"; |
| 3886 | + aspect: root.artShapeStyle === "inset" ? UbuntuShape.Inset : UbuntuShape.Flat; |
| 3887 | } |
| 3888 | readonly property real fixedArtShapeSizeAspect: (root.fixedArtShapeSize.height > 0 && root.fixedArtShapeSize.width > 0) ? root.fixedArtShapeSize.width / root.fixedArtShapeSize.height : -1; |
| 3889 | readonly property real aspect: fixedArtShapeSizeAspect > 0 ? fixedArtShapeSizeAspect : components !== undefined ? components["art"]["aspect-ratio"] : 1; |
| 3890 | - Component.onCompleted: { updateWidthHeightBindings(); if (artShapeBorderSource !== undefined) borderSource = artShapeBorderSource; } |
| 3891 | + Component.onCompleted: { updateWidthHeightBindings(); } |
| 3892 | Connections { target: root; onFixedArtShapeSizeChanged: updateWidthHeightBindings(); } |
| 3893 | function updateWidthHeightBindings() { |
| 3894 | if (root.fixedArtShapeSize.height > 0 && root.fixedArtShapeSize.width > 0) { |
| 3895 | @@ -87,7 +86,7 @@ |
| 3896 | wrapMode: Text.Wrap; |
| 3897 | maximumLineCount: 2; |
| 3898 | font.pixelSize: Math.round(FontUtils.sizeToPixels(fontSize) * fontScale); |
| 3899 | - color: root.scopeStyle ? root.scopeStyle.foreground : Theme.palette.normal.baseText; |
| 3900 | + color: root.scopeStyle ? root.scopeStyle.foreground : theme.palette.normal.baseText; |
| 3901 | visible: showHeader ; |
| 3902 | width: undefined; |
| 3903 | text: root.title; |
| 3904 | @@ -107,7 +106,7 @@ |
| 3905 | maximumLineCount: 1; |
| 3906 | fontSize: "x-small"; |
| 3907 | font.pixelSize: Math.round(FontUtils.sizeToPixels(fontSize) * fontScale); |
| 3908 | - color: root.scopeStyle ? root.scopeStyle.foreground : Theme.palette.normal.baseText; |
| 3909 | + color: root.scopeStyle ? root.scopeStyle.foreground : theme.palette.normal.baseText; |
| 3910 | visible: titleLabel.visible && titleLabel.text; |
| 3911 | text: cardData && cardData["subtitle"] || ""; |
| 3912 | font.weight: Font.Light; |
| 3913 | |
| 3914 | === modified file 'tests/plugins/Dash/cardcreator/4.res' |
| 3915 | --- tests/plugins/Dash/cardcreator/4.res 2015-08-31 13:29:42 +0000 |
| 3916 | +++ tests/plugins/Dash/cardcreator/4.res 2015-10-26 15:26:58 +0000 |
| 3917 | @@ -2,7 +2,7 @@ |
| 3918 | id: root; |
| 3919 | property var components; |
| 3920 | property var cardData; |
| 3921 | - property var artShapeBorderSource: undefined; |
| 3922 | + property string artShapeStyle: "inset"; |
| 3923 | property real fontScale: 1.0; |
| 3924 | property var scopeStyle: null; |
| 3925 | property int titleAlignment: Text.AlignLeft; |
| 3926 | @@ -72,7 +72,7 @@ |
| 3927 | wrapMode: Text.Wrap; |
| 3928 | maximumLineCount: 2; |
| 3929 | font.pixelSize: Math.round(FontUtils.sizeToPixels(fontSize) * fontScale); |
| 3930 | - color: root.scopeStyle ? root.scopeStyle.foreground : Theme.palette.normal.baseText; |
| 3931 | + color: root.scopeStyle ? root.scopeStyle.foreground : theme.palette.normal.baseText; |
| 3932 | visible: showHeader ; |
| 3933 | width: undefined; |
| 3934 | text: root.title; |
| 3935 | @@ -92,7 +92,7 @@ |
| 3936 | maximumLineCount: 1; |
| 3937 | fontSize: "x-small"; |
| 3938 | font.pixelSize: Math.round(FontUtils.sizeToPixels(fontSize) * fontScale); |
| 3939 | - color: root.scopeStyle ? root.scopeStyle.foreground : Theme.palette.normal.baseText; |
| 3940 | + color: root.scopeStyle ? root.scopeStyle.foreground : theme.palette.normal.baseText; |
| 3941 | visible: titleLabel.visible && titleLabel.text; |
| 3942 | text: cardData && cardData["subtitle"] || ""; |
| 3943 | font.weight: Font.Light; |
| 3944 | |
| 3945 | === modified file 'tests/plugins/Dash/cardcreator/5.res' |
| 3946 | --- tests/plugins/Dash/cardcreator/5.res 2015-08-31 13:29:42 +0000 |
| 3947 | +++ tests/plugins/Dash/cardcreator/5.res 2015-10-26 15:26:58 +0000 |
| 3948 | @@ -2,7 +2,7 @@ |
| 3949 | id: root; |
| 3950 | property var components; |
| 3951 | property var cardData; |
| 3952 | - property var artShapeBorderSource: undefined; |
| 3953 | + property string artShapeStyle: "inset"; |
| 3954 | property real fontScale: 1.0; |
| 3955 | property var scopeStyle: null; |
| 3956 | property int titleAlignment: Text.AlignLeft; |
| 3957 | @@ -14,7 +14,6 @@ |
| 3958 | implicitWidth: childrenRect.width; |
| 3959 | enabled: false; |
| 3960 | |
| 3961 | -onArtShapeBorderSourceChanged: { if (artShapeBorderSource !== undefined && artShapeLoader.item) artShapeLoader.item.borderSource = artShapeBorderSource; } |
| 3962 | readonly property size artShapeSize: artShapeLoader.item ? Qt.size(artShapeLoader.item.width, artShapeLoader.item.height) : Qt.size(-1, -1); |
| 3963 | Item { |
| 3964 | id: artShapeHolder; |
| 3965 | @@ -30,10 +29,9 @@ |
| 3966 | sourceComponent: Item { |
| 3967 | id: artShape; |
| 3968 | objectName: "artShape"; |
| 3969 | - property bool doShapeItem: components["art"]["conciergeMode"] !== true; |
| 3970 | + readonly property bool doShapeItem: components["art"]["conciergeMode"] !== true; |
| 3971 | visible: image.status == Image.Ready; |
| 3972 | readonly property alias image: artImage; |
| 3973 | - property alias borderSource: artShapeShape.borderSource; |
| 3974 | ShaderEffectSource { |
| 3975 | id: artShapeSource; |
| 3976 | sourceItem: artImage; |
| 3977 | @@ -42,16 +40,17 @@ |
| 3978 | height: 1; |
| 3979 | hideSource: doShapeItem; |
| 3980 | } |
| 3981 | - Shape { |
| 3982 | + UbuntuShape { |
| 3983 | id: artShapeShape; |
| 3984 | - image: artShapeSource; |
| 3985 | + source: artShapeSource; |
| 3986 | anchors.fill: parent; |
| 3987 | visible: doShapeItem; |
| 3988 | radius: "medium"; |
| 3989 | + aspect: root.artShapeStyle === "inset" ? UbuntuShape.Inset : UbuntuShape.Flat; |
| 3990 | } |
| 3991 | readonly property real fixedArtShapeSizeAspect: (root.fixedArtShapeSize.height > 0 && root.fixedArtShapeSize.width > 0) ? root.fixedArtShapeSize.width / root.fixedArtShapeSize.height : -1; |
| 3992 | readonly property real aspect: fixedArtShapeSizeAspect > 0 ? fixedArtShapeSizeAspect : components !== undefined ? components["art"]["aspect-ratio"] : 1; |
| 3993 | - Component.onCompleted: { updateWidthHeightBindings(); if (artShapeBorderSource !== undefined) borderSource = artShapeBorderSource; } |
| 3994 | + Component.onCompleted: { updateWidthHeightBindings(); } |
| 3995 | Connections { target: root; onFixedArtShapeSizeChanged: updateWidthHeightBindings(); } |
| 3996 | function updateWidthHeightBindings() { |
| 3997 | if (root.fixedArtShapeSize.height > 0 && root.fixedArtShapeSize.width > 0) { |
| 3998 | @@ -75,44 +74,18 @@ |
| 3999 | } |
| 4000 | Loader { |
| 4001 | id: overlayLoader; |
| 4002 | - anchors { |
| 4003 | - left: artShapeHolder.left; |
| 4004 | - right: artShapeHolder.right; |
| 4005 | - bottom: artShapeHolder.bottom; |
| 4006 | - } |
| 4007 | - active: artShapeLoader.active && artShapeLoader.item && artShapeLoader.item.image.status === Image.Ready || false; |
| 4008 | + readonly property real overlayHeight: (fixedHeaderHeight > 0 ? fixedHeaderHeight : headerHeight) + units.gu(2); |
| 4009 | + anchors.fill: artShapeHolder; |
| 4010 | + active: artShapeLoader.active && artShapeLoader.item && artShapeLoader.item.image.status === Image.Ready || false; |
| 4011 | asynchronous: root.asynchronous; |
| 4012 | visible: showHeader && status == Loader.Ready; |
| 4013 | - sourceComponent: ShaderEffect { |
| 4014 | + sourceComponent: UbuntuShapeOverlay { |
| 4015 | id: overlay; |
| 4016 | - height: (fixedHeaderHeight > 0 ? fixedHeaderHeight : headerHeight) + units.gu(2); |
| 4017 | - property real luminance: Style.luminance(overlayColor); |
| 4018 | - property color overlayColor: cardData && cardData["overlayColor"] || "#99000000"; |
| 4019 | - property var source: ShaderEffectSource { |
| 4020 | - id: shaderSource; |
| 4021 | - sourceItem: artShapeLoader.item; |
| 4022 | - onVisibleChanged: if (visible) scheduleUpdate(); |
| 4023 | - live: false; |
| 4024 | - sourceRect: Qt.rect(0, artShapeLoader.height - overlay.height, artShapeLoader.width, overlay.height); |
| 4025 | - } |
| 4026 | - vertexShader: " |
| 4027 | - uniform highp mat4 qt_Matrix; |
| 4028 | - attribute highp vec4 qt_Vertex; |
| 4029 | - attribute highp vec2 qt_MultiTexCoord0; |
| 4030 | - varying highp vec2 coord; |
| 4031 | - void main() { |
| 4032 | - coord = qt_MultiTexCoord0; |
| 4033 | - gl_Position = qt_Matrix * qt_Vertex; |
| 4034 | - }"; |
| 4035 | - fragmentShader: " |
| 4036 | - varying highp vec2 coord; |
| 4037 | - uniform sampler2D source; |
| 4038 | - uniform lowp float qt_Opacity; |
| 4039 | - uniform highp vec4 overlayColor; |
| 4040 | - void main() { |
| 4041 | - lowp vec4 tex = texture2D(source, coord); |
| 4042 | - gl_FragColor = vec4(overlayColor.r, overlayColor.g, overlayColor.b, 1) * qt_Opacity * overlayColor.a * tex.a; |
| 4043 | - }"; |
| 4044 | + property real luminance: Style.luminance(overlayColor); |
| 4045 | + aspect: UbuntuShape.Flat; |
| 4046 | + radius: "medium"; |
| 4047 | + overlayColor: cardData && cardData["overlayColor"] || "#99000000"; |
| 4048 | + overlayRect: Qt.rect(0, 1 - overlayLoader.overlayHeight / height, 1, 1); |
| 4049 | } |
| 4050 | } |
| 4051 | readonly property int headerHeight: titleLabel.height + subtitleLabel.height + subtitleLabel.anchors.topMargin; |
| 4052 | @@ -124,14 +97,14 @@ |
| 4053 | left: parent.left; |
| 4054 | leftMargin: units.gu(1); |
| 4055 | top: overlayLoader.top; |
| 4056 | - topMargin: units.gu(1); |
| 4057 | + topMargin: units.gu(1) + overlayLoader.height - overlayLoader.overlayHeight; |
| 4058 | } |
| 4059 | elide: Text.ElideRight; |
| 4060 | fontSize: "small"; |
| 4061 | wrapMode: Text.Wrap; |
| 4062 | maximumLineCount: 2; |
| 4063 | font.pixelSize: Math.round(FontUtils.sizeToPixels(fontSize) * fontScale); |
| 4064 | - color: root.scopeStyle && overlayLoader.item ? root.scopeStyle.getTextColor(overlayLoader.item.luminance) : (overlayLoader.item && overlayLoader.item.luminance > 0.7 ? Theme.palette.normal.baseText : "white"); |
| 4065 | + color: root.scopeStyle && overlayLoader.item ? root.scopeStyle.getTextColor(overlayLoader.item.luminance) : (overlayLoader.item && overlayLoader.item.luminance > 0.7 ? theme.palette.normal.baseText : "white"); |
| 4066 | visible: showHeader && overlayLoader.active; |
| 4067 | width: undefined; |
| 4068 | text: root.title; |
| 4069 | @@ -152,7 +125,7 @@ |
| 4070 | maximumLineCount: 1; |
| 4071 | fontSize: "x-small"; |
| 4072 | font.pixelSize: Math.round(FontUtils.sizeToPixels(fontSize) * fontScale); |
| 4073 | - color: root.scopeStyle && overlayLoader.item ? root.scopeStyle.getTextColor(overlayLoader.item.luminance) : (overlayLoader.item && overlayLoader.item.luminance > 0.7 ? Theme.palette.normal.baseText : "white"); |
| 4074 | + color: root.scopeStyle && overlayLoader.item ? root.scopeStyle.getTextColor(overlayLoader.item.luminance) : (overlayLoader.item && overlayLoader.item.luminance > 0.7 ? theme.palette.normal.baseText : "white"); |
| 4075 | visible: titleLabel.visible && titleLabel.text; |
| 4076 | text: cardData && cardData["subtitle"] || ""; |
| 4077 | font.weight: Font.Light; |
| 4078 | |
| 4079 | === modified file 'tests/plugins/Dash/cardcreator/6.res' |
| 4080 | --- tests/plugins/Dash/cardcreator/6.res 2015-06-22 08:29:55 +0000 |
| 4081 | +++ tests/plugins/Dash/cardcreator/6.res 2015-10-26 15:26:58 +0000 |
| 4082 | @@ -2,7 +2,7 @@ |
| 4083 | id: root; |
| 4084 | property var components; |
| 4085 | property var cardData; |
| 4086 | - property var artShapeBorderSource: undefined; |
| 4087 | + property string artShapeStyle: "inset"; |
| 4088 | property real fontScale: 1.0; |
| 4089 | property var scopeStyle: null; |
| 4090 | property int titleAlignment: Text.AlignLeft; |
| 4091 | @@ -23,11 +23,12 @@ |
| 4092 | sourceComponent: UbuntuShape { |
| 4093 | objectName: "background"; |
| 4094 | radius: "medium"; |
| 4095 | - color: getColor(0) || "white"; |
| 4096 | - gradientColor: getColor(1) || color; |
| 4097 | - anchors.fill: parent; |
| 4098 | - image: backgroundImage.source ? backgroundImage : null; |
| 4099 | - property real luminance: Style.luminance(color); |
| 4100 | + backgroundColor: getColor(0) || "white"; |
| 4101 | + secondaryBackgroundColor: getColor(1) || backgroundColor; |
| 4102 | + backgroundMode: UbuntuShape.VerticalGradient; |
| 4103 | + anchors.fill: parent; |
| 4104 | + source: backgroundImage.source ? backgroundImage : null; |
| 4105 | + property real luminance: Style.luminance(backgroundColor); |
| 4106 | property Image backgroundImage: Image { |
| 4107 | objectName: "backgroundImage"; |
| 4108 | source: { |
| 4109 | @@ -67,7 +68,7 @@ |
| 4110 | wrapMode: Text.Wrap; |
| 4111 | maximumLineCount: 2; |
| 4112 | font.pixelSize: Math.round(FontUtils.sizeToPixels(fontSize) * fontScale); |
| 4113 | - 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"); |
| 4114 | + 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"); |
| 4115 | visible: showHeader ; |
| 4116 | width: undefined; |
| 4117 | text: root.title; |
| 4118 | @@ -87,7 +88,7 @@ |
| 4119 | maximumLineCount: 1; |
| 4120 | fontSize: "x-small"; |
| 4121 | font.pixelSize: Math.round(FontUtils.sizeToPixels(fontSize) * fontScale); |
| 4122 | - 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"); |
| 4123 | + 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"); |
| 4124 | visible: titleLabel.visible && titleLabel.text; |
| 4125 | text: cardData && cardData["subtitle"] || ""; |
| 4126 | font.weight: Font.Light; |
| 4127 | @@ -101,7 +102,7 @@ |
| 4128 | rightMargin: units.gu(1); |
| 4129 | } |
| 4130 | source: cardData && cardData["emblem"] || ""; |
| 4131 | - 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"); |
| 4132 | + 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"); |
| 4133 | height: source != "" ? titleLabel.font.pixelSize : 0; |
| 4134 | width: implicitWidth > 0 && implicitHeight > 0 ? (implicitWidth / implicitHeight * height) : implicitWidth; |
| 4135 | } |
| 4136 | |
| 4137 | === modified file 'tests/plugins/Dash/cardcreator/7.res' |
| 4138 | --- tests/plugins/Dash/cardcreator/7.res 2015-06-22 08:29:55 +0000 |
| 4139 | +++ tests/plugins/Dash/cardcreator/7.res 2015-10-26 15:26:58 +0000 |
| 4140 | @@ -2,7 +2,7 @@ |
| 4141 | id: root; |
| 4142 | property var components; |
| 4143 | property var cardData; |
| 4144 | - property var artShapeBorderSource: undefined; |
| 4145 | + property string artShapeStyle: "inset"; |
| 4146 | property real fontScale: 1.0; |
| 4147 | property var scopeStyle: null; |
| 4148 | property int titleAlignment: Text.AlignLeft; |
| 4149 | @@ -23,11 +23,12 @@ |
| 4150 | sourceComponent: UbuntuShape { |
| 4151 | objectName: "background"; |
| 4152 | radius: "medium"; |
| 4153 | - color: getColor(0) || "white"; |
| 4154 | - gradientColor: getColor(1) || color; |
| 4155 | - anchors.fill: parent; |
| 4156 | - image: backgroundImage.source ? backgroundImage : null; |
| 4157 | - property real luminance: Style.luminance(color); |
| 4158 | + backgroundColor: getColor(0) || "white"; |
| 4159 | + secondaryBackgroundColor: getColor(1) || backgroundColor; |
| 4160 | + backgroundMode: UbuntuShape.VerticalGradient; |
| 4161 | + anchors.fill: parent; |
| 4162 | + source: backgroundImage.source ? backgroundImage : null; |
| 4163 | + property real luminance: Style.luminance(backgroundColor); |
| 4164 | property Image backgroundImage: Image { |
| 4165 | objectName: "backgroundImage"; |
| 4166 | source: { |
| 4167 | @@ -89,7 +90,7 @@ |
| 4168 | wrapMode: Text.Wrap; |
| 4169 | maximumLineCount: 2; |
| 4170 | font.pixelSize: Math.round(FontUtils.sizeToPixels(fontSize) * fontScale); |
| 4171 | - 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"); |
| 4172 | + 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"); |
| 4173 | visible: showHeader ; |
| 4174 | width: undefined; |
| 4175 | text: root.title; |
| 4176 | @@ -109,7 +110,7 @@ |
| 4177 | maximumLineCount: 1; |
| 4178 | fontSize: "x-small"; |
| 4179 | font.pixelSize: Math.round(FontUtils.sizeToPixels(fontSize) * fontScale); |
| 4180 | - 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"); |
| 4181 | + 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"); |
| 4182 | visible: titleLabel.visible && titleLabel.text; |
| 4183 | text: cardData && cardData["subtitle"] || ""; |
| 4184 | font.weight: Font.Light; |
| 4185 | @@ -122,7 +123,7 @@ |
| 4186 | rightMargin: units.gu(1); |
| 4187 | top: subtitleLabel.bottom; |
| 4188 | } |
| 4189 | - 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"); |
| 4190 | + 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"); |
| 4191 | fontScale: root.fontScale; |
| 4192 | model: cardData && cardData["attributes"]; |
| 4193 | } |
| 4194 | |
| 4195 | === modified file 'tests/plugins/Dash/cardcreator/8.res' |
| 4196 | --- tests/plugins/Dash/cardcreator/8.res 2015-06-22 08:29:55 +0000 |
| 4197 | +++ tests/plugins/Dash/cardcreator/8.res 2015-10-26 15:26:58 +0000 |
| 4198 | @@ -2,7 +2,7 @@ |
| 4199 | id: root; |
| 4200 | property var components; |
| 4201 | property var cardData; |
| 4202 | - property var artShapeBorderSource: undefined; |
| 4203 | + property string artShapeStyle: "inset"; |
| 4204 | property real fontScale: 1.0; |
| 4205 | property var scopeStyle: null; |
| 4206 | property int titleAlignment: Text.AlignLeft; |
| 4207 | @@ -23,11 +23,12 @@ |
| 4208 | sourceComponent: UbuntuShape { |
| 4209 | objectName: "background"; |
| 4210 | radius: "medium"; |
| 4211 | - color: getColor(0) || "white"; |
| 4212 | - gradientColor: getColor(1) || color; |
| 4213 | + backgroundColor: getColor(0) || "white"; |
| 4214 | + secondaryBackgroundColor: getColor(1) || backgroundColor; |
| 4215 | + backgroundMode: UbuntuShape.VerticalGradient; |
| 4216 | anchors.fill: parent; |
| 4217 | - image: backgroundImage.source ? backgroundImage : null; |
| 4218 | - property real luminance: Style.luminance(color); |
| 4219 | + source: backgroundImage.source ? backgroundImage : null; |
| 4220 | + property real luminance: Style.luminance(backgroundColor); |
| 4221 | property Image backgroundImage: Image { |
| 4222 | objectName: "backgroundImage"; |
| 4223 | source: { |
| 4224 | @@ -80,7 +81,7 @@ |
| 4225 | wrapMode: Text.Wrap; |
| 4226 | maximumLineCount: 2; |
| 4227 | font.pixelSize: Math.round(FontUtils.sizeToPixels(fontSize) * fontScale); |
| 4228 | - 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"); |
| 4229 | + 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"); |
| 4230 | visible: showHeader ; |
| 4231 | width: parent.width - x; |
| 4232 | text: root.title; |
| 4233 | |
| 4234 | === modified file 'tests/plugins/Dash/tst_CroppedImageMinimumSourceSize.qml' |
| 4235 | --- tests/plugins/Dash/tst_CroppedImageMinimumSourceSize.qml 2015-08-31 13:29:42 +0000 |
| 4236 | +++ tests/plugins/Dash/tst_CroppedImageMinimumSourceSize.qml 2015-10-26 15:26:58 +0000 |
| 4237 | @@ -16,7 +16,7 @@ |
| 4238 | |
| 4239 | import QtQuick 2.3 |
| 4240 | import QtTest 1.0 |
| 4241 | -import Ubuntu.Components 1.1 |
| 4242 | +import Ubuntu.Components 1.3 |
| 4243 | import Dash 0.1 |
| 4244 | |
| 4245 | Rectangle { |
| 4246 | |
| 4247 | === modified file 'tests/plugins/Dash/tst_ScopeStyle.qml' |
| 4248 | --- tests/plugins/Dash/tst_ScopeStyle.qml 2014-11-20 11:44:44 +0000 |
| 4249 | +++ tests/plugins/Dash/tst_ScopeStyle.qml 2015-10-26 15:26:58 +0000 |
| 4250 | @@ -17,7 +17,7 @@ |
| 4251 | import QtQuick 2.2 |
| 4252 | import QtTest 1.0 |
| 4253 | import Dash 0.1 |
| 4254 | -import Ubuntu.Components 1.1 |
| 4255 | +import Ubuntu.Components 1.3 |
| 4256 | import Utils 0.1 |
| 4257 | |
| 4258 | Rectangle { |
| 4259 | |
| 4260 | === modified file 'tests/plugins/Ubuntu/Gestures/DownwardsLauncher.qml' |
| 4261 | --- tests/plugins/Ubuntu/Gestures/DownwardsLauncher.qml 2015-04-10 21:16:37 +0000 |
| 4262 | +++ tests/plugins/Ubuntu/Gestures/DownwardsLauncher.qml 2015-10-26 15:26:58 +0000 |
| 4263 | @@ -16,7 +16,7 @@ |
| 4264 | |
| 4265 | import QtQuick 2.0 |
| 4266 | import Ubuntu.Gestures 0.1 |
| 4267 | -import Ubuntu.Components 0.1 |
| 4268 | +import Ubuntu.Components 1.3 |
| 4269 | |
| 4270 | Item { |
| 4271 | |
| 4272 | |
| 4273 | === modified file 'tests/plugins/Ubuntu/Gestures/LeftwardsLauncher.qml' |
| 4274 | --- tests/plugins/Ubuntu/Gestures/LeftwardsLauncher.qml 2015-04-10 21:16:37 +0000 |
| 4275 | +++ tests/plugins/Ubuntu/Gestures/LeftwardsLauncher.qml 2015-10-26 15:26:58 +0000 |
| 4276 | @@ -16,7 +16,7 @@ |
| 4277 | |
| 4278 | import QtQuick 2.0 |
| 4279 | import Ubuntu.Gestures 0.1 |
| 4280 | -import Ubuntu.Components 0.1 |
| 4281 | +import Ubuntu.Components 1.3 |
| 4282 | |
| 4283 | Item { |
| 4284 | id: root |
| 4285 | |
| 4286 | === modified file 'tests/plugins/Ubuntu/Gestures/RightwardsLauncher.qml' |
| 4287 | --- tests/plugins/Ubuntu/Gestures/RightwardsLauncher.qml 2015-04-10 21:16:37 +0000 |
| 4288 | +++ tests/plugins/Ubuntu/Gestures/RightwardsLauncher.qml 2015-10-26 15:26:58 +0000 |
| 4289 | @@ -16,7 +16,7 @@ |
| 4290 | |
| 4291 | import QtQuick 2.0 |
| 4292 | import Ubuntu.Gestures 0.1 |
| 4293 | -import Ubuntu.Components 0.1 |
| 4294 | +import Ubuntu.Components 1.3 |
| 4295 | |
| 4296 | Item { |
| 4297 | objectName: "rightwardsLauncher" |
| 4298 | |
| 4299 | === modified file 'tests/plugins/Ubuntu/Gestures/UpwardsLauncher.qml' |
| 4300 | --- tests/plugins/Ubuntu/Gestures/UpwardsLauncher.qml 2015-04-10 21:16:37 +0000 |
| 4301 | +++ tests/plugins/Ubuntu/Gestures/UpwardsLauncher.qml 2015-10-26 15:26:58 +0000 |
| 4302 | @@ -16,7 +16,7 @@ |
| 4303 | |
| 4304 | import QtQuick 2.0 |
| 4305 | import Ubuntu.Gestures 0.1 |
| 4306 | -import Ubuntu.Components 0.1 |
| 4307 | +import Ubuntu.Components 1.3 |
| 4308 | |
| 4309 | Item { |
| 4310 | id: root |
| 4311 | |
| 4312 | === modified file 'tests/plugins/Ubuntu/Gestures/tst_DirectionalDragArea.qml' |
| 4313 | --- tests/plugins/Ubuntu/Gestures/tst_DirectionalDragArea.qml 2015-04-10 21:16:37 +0000 |
| 4314 | +++ tests/plugins/Ubuntu/Gestures/tst_DirectionalDragArea.qml 2015-10-26 15:26:58 +0000 |
| 4315 | @@ -15,7 +15,7 @@ |
| 4316 | */ |
| 4317 | |
| 4318 | import QtQuick 2.0 |
| 4319 | -import Ubuntu.Components 0.1 |
| 4320 | +import Ubuntu.Components 1.3 |
| 4321 | import Unity.Test 0.1 |
| 4322 | |
| 4323 | Rectangle { |
| 4324 | |
| 4325 | === modified file 'tests/plugins/Ubuntu/Gestures/tst_FloatingFlickable.qml' |
| 4326 | --- tests/plugins/Ubuntu/Gestures/tst_FloatingFlickable.qml 2015-05-27 09:37:34 +0000 |
| 4327 | +++ tests/plugins/Ubuntu/Gestures/tst_FloatingFlickable.qml 2015-10-26 15:26:58 +0000 |
| 4328 | @@ -15,7 +15,7 @@ |
| 4329 | */ |
| 4330 | |
| 4331 | import QtQuick 2.0 |
| 4332 | -import Ubuntu.Components 0.1 |
| 4333 | +import Ubuntu.Components 1.3 |
| 4334 | import Ubuntu.Gestures 0.1 |
| 4335 | import Unity.Test 0.1 |
| 4336 | |
| 4337 | |
| 4338 | === modified file 'tests/plugins/Ubuntu/Gestures/tst_PressedOutsideNotifier.qml' |
| 4339 | --- tests/plugins/Ubuntu/Gestures/tst_PressedOutsideNotifier.qml 2013-11-22 13:43:40 +0000 |
| 4340 | +++ tests/plugins/Ubuntu/Gestures/tst_PressedOutsideNotifier.qml 2015-10-26 15:26:58 +0000 |
| 4341 | @@ -15,7 +15,7 @@ |
| 4342 | */ |
| 4343 | |
| 4344 | import QtQuick 2.0 |
| 4345 | -import Ubuntu.Components 0.1 |
| 4346 | +import Ubuntu.Components 1.3 |
| 4347 | import Ubuntu.Gestures 0.1 |
| 4348 | |
| 4349 | /* |
| 4350 | |
| 4351 | === modified file 'tests/qmltests/CMakeLists.txt' |
| 4352 | --- tests/qmltests/CMakeLists.txt 2015-10-20 08:10:03 +0000 |
| 4353 | +++ tests/qmltests/CMakeLists.txt 2015-10-26 15:26:58 +0000 |
| 4354 | @@ -26,7 +26,7 @@ |
| 4355 | add_unity8_qmlbenchmark(Dash CardBenchmark 1000) |
| 4356 | add_unity8_qmltest(Dash CardTool) |
| 4357 | add_unity8_qmltest(Dash GenericScopeView) |
| 4358 | -add_unity8_qmltest(Dash PageHeader) |
| 4359 | +add_unity8_qmltest(Dash DashPageHeader) |
| 4360 | add_unity8_qmltest(Dash PreviewListView) |
| 4361 | add_unity8_qmltest(Dash/Previews Preview) |
| 4362 | add_unity8_qmltest(Dash/Previews PreviewActions) |
| 4363 | |
| 4364 | === modified file 'tests/qmltests/Components/tst_Dialogs.qml' |
| 4365 | --- tests/qmltests/Components/tst_Dialogs.qml 2015-08-24 15:39:53 +0000 |
| 4366 | +++ tests/qmltests/Components/tst_Dialogs.qml 2015-10-26 15:26:58 +0000 |
| 4367 | @@ -16,7 +16,7 @@ |
| 4368 | |
| 4369 | import QtQuick 2.2 |
| 4370 | import QtTest 1.0 |
| 4371 | -import Ubuntu.Components 1.1 |
| 4372 | +import Ubuntu.Components 1.3 |
| 4373 | import Unity.Test 0.1 |
| 4374 | |
| 4375 | import "../../../qml/Components" |
| 4376 | @@ -105,7 +105,7 @@ |
| 4377 | var dialogsPrivate = findInvisibleChild(dialogs, "dialogsPrivate"); |
| 4378 | dialogsPrivate.showPowerDialog(); |
| 4379 | var dialogLoader = findInvisibleChild(dialogs, "dialogLoader"); |
| 4380 | - tryCompare(dialogLoader.item, "focus", true); |
| 4381 | + tryCompare(dialogLoader.item.__foreground, "focus", true); |
| 4382 | } |
| 4383 | } |
| 4384 | } |
| 4385 | |
| 4386 | === modified file 'tests/qmltests/Components/tst_DragHandle.qml' |
| 4387 | --- tests/qmltests/Components/tst_DragHandle.qml 2015-04-10 21:16:37 +0000 |
| 4388 | +++ tests/qmltests/Components/tst_DragHandle.qml 2015-10-26 15:26:58 +0000 |
| 4389 | @@ -17,7 +17,7 @@ |
| 4390 | import QtQuick 2.0 |
| 4391 | import "../../../qml/Components" |
| 4392 | import "tst_DragHandle" |
| 4393 | -import Ubuntu.Components 0.1 |
| 4394 | +import Ubuntu.Components 1.3 |
| 4395 | import Ubuntu.Gestures 0.1 |
| 4396 | import Unity.Test 0.1 |
| 4397 | |
| 4398 | |
| 4399 | === modified file 'tests/qmltests/Components/tst_DragHandle/BidirectionalShowable.qml' |
| 4400 | --- tests/qmltests/Components/tst_DragHandle/BidirectionalShowable.qml 2015-04-10 21:16:37 +0000 |
| 4401 | +++ tests/qmltests/Components/tst_DragHandle/BidirectionalShowable.qml 2015-10-26 15:26:58 +0000 |
| 4402 | @@ -16,7 +16,7 @@ |
| 4403 | |
| 4404 | import QtQuick 2.0 |
| 4405 | import "../../../../qml/Components" |
| 4406 | -import Ubuntu.Components 0.1 |
| 4407 | +import Ubuntu.Components 1.3 |
| 4408 | import Ubuntu.Gestures 0.1 |
| 4409 | |
| 4410 | Item { |
| 4411 | |
| 4412 | === modified file 'tests/qmltests/Components/tst_DragHandle/HorizontalShowable.qml' |
| 4413 | --- tests/qmltests/Components/tst_DragHandle/HorizontalShowable.qml 2015-04-10 21:16:37 +0000 |
| 4414 | +++ tests/qmltests/Components/tst_DragHandle/HorizontalShowable.qml 2015-10-26 15:26:58 +0000 |
| 4415 | @@ -16,7 +16,7 @@ |
| 4416 | |
| 4417 | import QtQuick 2.0 |
| 4418 | import "../../../../qml/Components" |
| 4419 | -import Ubuntu.Components 0.1 |
| 4420 | +import Ubuntu.Components 1.3 |
| 4421 | import Ubuntu.Gestures 0.1 |
| 4422 | |
| 4423 | Showable { |
| 4424 | |
| 4425 | === modified file 'tests/qmltests/Components/tst_DragHandle/VerticalShowable.qml' |
| 4426 | --- tests/qmltests/Components/tst_DragHandle/VerticalShowable.qml 2015-04-10 21:16:37 +0000 |
| 4427 | +++ tests/qmltests/Components/tst_DragHandle/VerticalShowable.qml 2015-10-26 15:26:58 +0000 |
| 4428 | @@ -16,7 +16,7 @@ |
| 4429 | |
| 4430 | import QtQuick 2.0 |
| 4431 | import "../../../../qml/Components" |
| 4432 | -import Ubuntu.Components 0.1 |
| 4433 | +import Ubuntu.Components 1.3 |
| 4434 | import Ubuntu.Gestures 0.1 |
| 4435 | |
| 4436 | Showable { |
| 4437 | |
| 4438 | === modified file 'tests/qmltests/Components/tst_LazyImage.qml' |
| 4439 | --- tests/qmltests/Components/tst_LazyImage.qml 2014-08-13 10:29:21 +0000 |
| 4440 | +++ tests/qmltests/Components/tst_LazyImage.qml 2015-10-26 15:26:58 +0000 |
| 4441 | @@ -1,5 +1,5 @@ |
| 4442 | /* |
| 4443 | - * Copyright 2013 Canonical Ltd. |
| 4444 | + * Copyright 2013,2015 Canonical Ltd. |
| 4445 | * |
| 4446 | * This program is free software; you can redistribute it and/or modify |
| 4447 | * it under the terms of the GNU General Public License as published by |
| 4448 | @@ -17,7 +17,7 @@ |
| 4449 | import QtQuick 2.0 |
| 4450 | import QtTest 1.0 |
| 4451 | import "../../../qml/Components" |
| 4452 | -import Ubuntu.Components 0.1 |
| 4453 | +import Ubuntu.Components 1.3 |
| 4454 | import Unity.Test 0.1 as UT |
| 4455 | import "tst_LazyImage" |
| 4456 | |
| 4457 | @@ -32,7 +32,7 @@ |
| 4458 | rightMargin: 2 * parent.width / 3 |
| 4459 | } |
| 4460 | |
| 4461 | - color: Theme.palette.normal.baseText |
| 4462 | + color: theme.palette.normal.baseText |
| 4463 | |
| 4464 | Column { |
| 4465 | anchors { fill: parent; margins: units.gu(5) } |
| 4466 | |
| 4467 | === modified file 'tests/qmltests/Components/tst_LazyImage/ImageControls.qml' |
| 4468 | --- tests/qmltests/Components/tst_LazyImage/ImageControls.qml 2013-12-17 16:04:47 +0000 |
| 4469 | +++ tests/qmltests/Components/tst_LazyImage/ImageControls.qml 2015-10-26 15:26:58 +0000 |
| 4470 | @@ -15,7 +15,7 @@ |
| 4471 | */ |
| 4472 | |
| 4473 | import QtQuick 2.0 |
| 4474 | -import Ubuntu.Components 0.1 |
| 4475 | +import Ubuntu.Components 1.3 |
| 4476 | import "../../../../qml/Components" |
| 4477 | |
| 4478 | Row { |
| 4479 | |
| 4480 | === modified file 'tests/qmltests/Components/tst_Lockscreen.qml' |
| 4481 | --- tests/qmltests/Components/tst_Lockscreen.qml 2015-03-18 12:32:08 +0000 |
| 4482 | +++ tests/qmltests/Components/tst_Lockscreen.qml 2015-10-26 15:26:58 +0000 |
| 4483 | @@ -18,7 +18,7 @@ |
| 4484 | import QtTest 1.0 |
| 4485 | import ".." |
| 4486 | import "../../../qml/Components" |
| 4487 | -import Ubuntu.Components 0.1 |
| 4488 | +import Ubuntu.Components 1.3 |
| 4489 | import Unity.Test 0.1 as UT |
| 4490 | |
| 4491 | Rectangle { |
| 4492 | |
| 4493 | === modified file 'tests/qmltests/Components/tst_Rating.qml' |
| 4494 | --- tests/qmltests/Components/tst_Rating.qml 2014-02-13 17:00:06 +0000 |
| 4495 | +++ tests/qmltests/Components/tst_Rating.qml 2015-10-26 15:26:58 +0000 |
| 4496 | @@ -1,5 +1,5 @@ |
| 4497 | /* |
| 4498 | - * Copyright 2013 Canonical Ltd. |
| 4499 | + * Copyright 2013,2015 Canonical Ltd. |
| 4500 | * |
| 4501 | * This program is free software; you can redistribute it and/or modify |
| 4502 | * it under the terms of the GNU General Public License as published by |
| 4503 | @@ -17,14 +17,14 @@ |
| 4504 | import QtQuick 2.0 |
| 4505 | import QtTest 1.0 |
| 4506 | import "../../../qml/Components" |
| 4507 | -import Ubuntu.Components 0.1 |
| 4508 | +import Ubuntu.Components 1.3 |
| 4509 | import Unity.Test 0.1 as UT |
| 4510 | |
| 4511 | Rectangle { |
| 4512 | id: root |
| 4513 | width: units.gu(40) |
| 4514 | height: units.gu(10) |
| 4515 | - color: Theme.palette.selected.background |
| 4516 | + color: theme.palette.selected.background |
| 4517 | |
| 4518 | Rating { |
| 4519 | id: rating |
| 4520 | |
| 4521 | === modified file 'tests/qmltests/Components/tst_ResponsiveGridView.qml' |
| 4522 | --- tests/qmltests/Components/tst_ResponsiveGridView.qml 2014-01-27 18:03:45 +0000 |
| 4523 | +++ tests/qmltests/Components/tst_ResponsiveGridView.qml 2015-10-26 15:26:58 +0000 |
| 4524 | @@ -18,8 +18,8 @@ |
| 4525 | import QtTest 1.0 |
| 4526 | import ".." |
| 4527 | import "../../../qml/Components" |
| 4528 | -import Ubuntu.Components.ListItems 0.1 as ListItem |
| 4529 | -import Ubuntu.Components 0.1 |
| 4530 | +import Ubuntu.Components.ListItems 1.3 as ListItem |
| 4531 | +import Ubuntu.Components 1.3 |
| 4532 | import Unity.Test 0.1 as UT |
| 4533 | |
| 4534 | Item { |
| 4535 | |
| 4536 | === modified file 'tests/qmltests/Components/tst_ResponsiveVerticalJournal.qml' |
| 4537 | --- tests/qmltests/Components/tst_ResponsiveVerticalJournal.qml 2014-12-19 14:51:35 +0000 |
| 4538 | +++ tests/qmltests/Components/tst_ResponsiveVerticalJournal.qml 2015-10-26 15:26:58 +0000 |
| 4539 | @@ -18,8 +18,8 @@ |
| 4540 | import QtTest 1.0 |
| 4541 | import ".." |
| 4542 | import "../../../qml/Components" |
| 4543 | -import Ubuntu.Components.ListItems 0.1 as ListItem |
| 4544 | -import Ubuntu.Components 0.1 |
| 4545 | +import Ubuntu.Components.ListItems 1.3 as ListItem |
| 4546 | +import Ubuntu.Components 1.3 |
| 4547 | import Utils 0.1 |
| 4548 | import Unity.Test 0.1 as UT |
| 4549 | |
| 4550 | |
| 4551 | === modified file 'tests/qmltests/Components/tst_Showable.qml' |
| 4552 | --- tests/qmltests/Components/tst_Showable.qml 2015-04-10 15:10:51 +0000 |
| 4553 | +++ tests/qmltests/Components/tst_Showable.qml 2015-10-26 15:26:58 +0000 |
| 4554 | @@ -16,7 +16,7 @@ |
| 4555 | |
| 4556 | import QtQuick 2.0 |
| 4557 | import QtTest 1.0 |
| 4558 | -import Ubuntu.Components 0.1 |
| 4559 | +import Ubuntu.Components 1.3 |
| 4560 | import Unity.Test 0.1 as UT |
| 4561 | import ".." |
| 4562 | import "../../../qml/Components" |
| 4563 | |
| 4564 | === modified file 'tests/qmltests/Dash/Previews/tst_Preview.qml' |
| 4565 | --- tests/qmltests/Dash/Previews/tst_Preview.qml 2015-03-12 16:08:14 +0000 |
| 4566 | +++ tests/qmltests/Dash/Previews/tst_Preview.qml 2015-10-26 15:26:58 +0000 |
| 4567 | @@ -1,5 +1,5 @@ |
| 4568 | /* |
| 4569 | - * Copyright 2014 Canonical Ltd. |
| 4570 | + * Copyright 2014,2015 Canonical Ltd. |
| 4571 | * |
| 4572 | * This program is free software; you can redistribute it and/or modify |
| 4573 | * it under the terms of the GNU General Public License as published by |
| 4574 | @@ -24,7 +24,7 @@ |
| 4575 | id: root |
| 4576 | width: units.gu(60) |
| 4577 | height: units.gu(60) |
| 4578 | - color: Theme.palette.selected.background |
| 4579 | + color: theme.palette.selected.background |
| 4580 | |
| 4581 | Item { |
| 4582 | id: shell |
| 4583 | |
| 4584 | === modified file 'tests/qmltests/Dash/Previews/tst_PreviewActions.qml' |
| 4585 | --- tests/qmltests/Dash/Previews/tst_PreviewActions.qml 2015-01-09 09:15:45 +0000 |
| 4586 | +++ tests/qmltests/Dash/Previews/tst_PreviewActions.qml 2015-10-26 15:26:58 +0000 |
| 4587 | @@ -18,7 +18,7 @@ |
| 4588 | import QtTest 1.0 |
| 4589 | import "../../../../qml/Dash/Previews" |
| 4590 | import Unity.Test 0.1 as UT |
| 4591 | -import Ubuntu.Components 0.1 |
| 4592 | +import Ubuntu.Components 1.3 |
| 4593 | |
| 4594 | |
| 4595 | Rectangle { |
| 4596 | |
| 4597 | === modified file 'tests/qmltests/Dash/Previews/tst_PreviewAudioPlayback.qml' |
| 4598 | --- tests/qmltests/Dash/Previews/tst_PreviewAudioPlayback.qml 2015-01-09 09:15:45 +0000 |
| 4599 | +++ tests/qmltests/Dash/Previews/tst_PreviewAudioPlayback.qml 2015-10-26 15:26:58 +0000 |
| 4600 | @@ -1,5 +1,5 @@ |
| 4601 | /* |
| 4602 | - * Copyright 2014 Canonical Ltd. |
| 4603 | + * Copyright 2014,2015 Canonical Ltd. |
| 4604 | * |
| 4605 | * This program is free software; you can redistribute it and/or modify |
| 4606 | * it under the terms of the GNU General Public License as published by |
| 4607 | @@ -16,7 +16,7 @@ |
| 4608 | |
| 4609 | import QtQuick 2.0 |
| 4610 | import QtTest 1.0 |
| 4611 | -import Ubuntu.Components 0.1 |
| 4612 | +import Ubuntu.Components 1.3 |
| 4613 | import "../../../../qml/Dash/Previews" |
| 4614 | import Unity.Test 0.1 as UT |
| 4615 | import QtMultimedia 5.0 |
| 4616 | @@ -25,7 +25,7 @@ |
| 4617 | id: root |
| 4618 | width: units.gu(60) |
| 4619 | height: units.gu(80) |
| 4620 | - color: Theme.palette.selected.background |
| 4621 | + color: theme.palette.selected.background |
| 4622 | |
| 4623 | property var tracksModel0: { |
| 4624 | "tracks": [ ] |
| 4625 | |
| 4626 | === modified file 'tests/qmltests/Dash/Previews/tst_PreviewComment.qml' |
| 4627 | --- tests/qmltests/Dash/Previews/tst_PreviewComment.qml 2015-07-01 15:48:29 +0000 |
| 4628 | +++ tests/qmltests/Dash/Previews/tst_PreviewComment.qml 2015-10-26 15:26:58 +0000 |
| 4629 | @@ -16,7 +16,7 @@ |
| 4630 | |
| 4631 | import QtQuick 2.0 |
| 4632 | import QtTest 1.0 |
| 4633 | -import Ubuntu.Components 1.1 |
| 4634 | +import Ubuntu.Components 1.3 |
| 4635 | import "../../../../qml/Dash/Previews" |
| 4636 | import Unity.Test 0.1 as UT |
| 4637 | |
| 4638 | |
| 4639 | === modified file 'tests/qmltests/Dash/Previews/tst_PreviewCommentInput.qml' |
| 4640 | --- tests/qmltests/Dash/Previews/tst_PreviewCommentInput.qml 2015-07-06 11:15:25 +0000 |
| 4641 | +++ tests/qmltests/Dash/Previews/tst_PreviewCommentInput.qml 2015-10-26 15:26:58 +0000 |
| 4642 | @@ -16,7 +16,7 @@ |
| 4643 | |
| 4644 | import QtQuick 2.0 |
| 4645 | import QtTest 1.0 |
| 4646 | -import Ubuntu.Components 1.1 |
| 4647 | +import Ubuntu.Components 1.3 |
| 4648 | import "../../../../qml/Dash/Previews" |
| 4649 | import Unity.Test 0.1 as UT |
| 4650 | |
| 4651 | |
| 4652 | === modified file 'tests/qmltests/Dash/Previews/tst_PreviewExpandable.qml' |
| 4653 | --- tests/qmltests/Dash/Previews/tst_PreviewExpandable.qml 2015-09-08 05:15:59 +0000 |
| 4654 | +++ tests/qmltests/Dash/Previews/tst_PreviewExpandable.qml 2015-10-26 15:26:58 +0000 |
| 4655 | @@ -1,5 +1,5 @@ |
| 4656 | /* |
| 4657 | - * Copyright 2014 Canonical Ltd. |
| 4658 | + * Copyright 2014,2015 Canonical Ltd. |
| 4659 | * |
| 4660 | * This program is free software; you can redistribute it and/or modify |
| 4661 | * it under the terms of the GNU General Public License as published by |
| 4662 | @@ -16,7 +16,7 @@ |
| 4663 | |
| 4664 | import QtQuick 2.0 |
| 4665 | import QtTest 1.0 |
| 4666 | -import Ubuntu.Components 0.1 |
| 4667 | +import Ubuntu.Components 1.3 |
| 4668 | import "../../../../qml/Dash/Previews" |
| 4669 | import Unity.Test 0.1 as UT |
| 4670 | |
| 4671 | @@ -24,7 +24,7 @@ |
| 4672 | id: root |
| 4673 | width: units.gu(40) |
| 4674 | height: units.gu(80) |
| 4675 | - color: Theme.palette.selected.background |
| 4676 | + color: theme.palette.selected.background |
| 4677 | |
| 4678 | 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." |
| 4679 | 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." |
| 4680 | @@ -319,9 +319,9 @@ |
| 4681 | previewWidgetFactory.widgetType = allWidgetsModel.get(i).type; |
| 4682 | previewWidgetFactory.active = true; |
| 4683 | |
| 4684 | - // Wait for the height ot settle by waiting twice the time of the |
| 4685 | + // Wait for the height ot settle by waiting four times the time of the |
| 4686 | // longest of the height behaviour animations |
| 4687 | - wait(UbuntuAnimation.SnapDuration * 2); |
| 4688 | + wait(UbuntuAnimation.SnapDuration * 4); |
| 4689 | |
| 4690 | // Check the item inside the expandable has the same height |
| 4691 | // as the one straight from the factory |
| 4692 | |
| 4693 | === modified file 'tests/qmltests/Dash/Previews/tst_PreviewHeader.qml' |
| 4694 | --- tests/qmltests/Dash/Previews/tst_PreviewHeader.qml 2015-05-06 15:05:06 +0000 |
| 4695 | +++ tests/qmltests/Dash/Previews/tst_PreviewHeader.qml 2015-10-26 15:26:58 +0000 |
| 4696 | @@ -149,7 +149,7 @@ |
| 4697 | tryCompareFunction(function() { return findChild(previewHeader, "mascotShape") != null }, true); |
| 4698 | var mascot = findChild(previewHeader, "mascotShape"); |
| 4699 | tryCompare(mascot, "visible", true); |
| 4700 | - tryCompare(mascot.image, "status", Image.Ready); |
| 4701 | + tryCompare(mascot.source, "status", Image.Ready); |
| 4702 | } |
| 4703 | } |
| 4704 | } |
| 4705 | |
| 4706 | === modified file 'tests/qmltests/Dash/Previews/tst_PreviewIconActions.qml' |
| 4707 | --- tests/qmltests/Dash/Previews/tst_PreviewIconActions.qml 2015-07-08 12:52:51 +0000 |
| 4708 | +++ tests/qmltests/Dash/Previews/tst_PreviewIconActions.qml 2015-10-26 15:26:58 +0000 |
| 4709 | @@ -18,7 +18,7 @@ |
| 4710 | import QtTest 1.0 |
| 4711 | import "../../../../qml/Dash/Previews" |
| 4712 | import Unity.Test 0.1 as UT |
| 4713 | -import Ubuntu.Components 0.1 |
| 4714 | +import Ubuntu.Components 1.3 |
| 4715 | |
| 4716 | |
| 4717 | Rectangle { |
| 4718 | @@ -104,7 +104,7 @@ |
| 4719 | |
| 4720 | var button = findChild(root, "button" + buttonId); |
| 4721 | var image = findChildsByType(button, "QQuickImage")[0]; |
| 4722 | - var label = findChildsByType(button, "Label")[0]; |
| 4723 | + var label = findChildsByType(button, "UCLabel")[0]; |
| 4724 | |
| 4725 | compare(image.source, buttonIcon); |
| 4726 | compare(label.text, buttonLabel); |
| 4727 | |
| 4728 | === modified file 'tests/qmltests/Dash/Previews/tst_PreviewPayments.qml' |
| 4729 | --- tests/qmltests/Dash/Previews/tst_PreviewPayments.qml 2015-01-09 09:40:52 +0000 |
| 4730 | +++ tests/qmltests/Dash/Previews/tst_PreviewPayments.qml 2015-10-26 15:26:58 +0000 |
| 4731 | @@ -18,7 +18,7 @@ |
| 4732 | import QtTest 1.0 |
| 4733 | import "../../../../qml/Dash/Previews" |
| 4734 | import Unity.Test 0.1 as UT |
| 4735 | -import Ubuntu.Components 0.1 |
| 4736 | +import Ubuntu.Components 1.3 |
| 4737 | |
| 4738 | Rectangle { |
| 4739 | id: root |
| 4740 | |
| 4741 | === modified file 'tests/qmltests/Dash/Previews/tst_PreviewProgress.qml' |
| 4742 | --- tests/qmltests/Dash/Previews/tst_PreviewProgress.qml 2014-02-12 16:28:08 +0000 |
| 4743 | +++ tests/qmltests/Dash/Previews/tst_PreviewProgress.qml 2015-10-26 15:26:58 +0000 |
| 4744 | @@ -18,7 +18,7 @@ |
| 4745 | import QtTest 1.0 |
| 4746 | import "../../../../qml/Dash/Previews" |
| 4747 | import Unity.Test 0.1 as UT |
| 4748 | -import Ubuntu.Components 0.1 |
| 4749 | +import Ubuntu.Components 1.3 |
| 4750 | |
| 4751 | Rectangle { |
| 4752 | id: root |
| 4753 | |
| 4754 | === modified file 'tests/qmltests/Dash/Previews/tst_PreviewRatingDisplay.qml' |
| 4755 | --- tests/qmltests/Dash/Previews/tst_PreviewRatingDisplay.qml 2015-01-09 09:15:45 +0000 |
| 4756 | +++ tests/qmltests/Dash/Previews/tst_PreviewRatingDisplay.qml 2015-10-26 15:26:58 +0000 |
| 4757 | @@ -1,5 +1,5 @@ |
| 4758 | /* |
| 4759 | - * Copyright 2014 Canonical Ltd. |
| 4760 | + * Copyright 2014,2015 Canonical Ltd. |
| 4761 | * |
| 4762 | * This program is free software; you can redistribute it and/or modify |
| 4763 | * it under the terms of the GNU General Public License as published by |
| 4764 | @@ -16,7 +16,7 @@ |
| 4765 | |
| 4766 | import QtQuick 2.0 |
| 4767 | import QtTest 1.0 |
| 4768 | -import Ubuntu.Components 0.1 |
| 4769 | +import Ubuntu.Components 1.3 |
| 4770 | import "../../../../qml/Dash/Previews" |
| 4771 | import Unity.Test 0.1 as UT |
| 4772 | |
| 4773 | @@ -24,7 +24,7 @@ |
| 4774 | id: root |
| 4775 | width: units.gu(40) |
| 4776 | height: units.gu(80) |
| 4777 | - color: Theme.palette.selected.background |
| 4778 | + color: theme.palette.selected.background |
| 4779 | |
| 4780 | property var reviewsModel0: { |
| 4781 | "reviews": [ ] |
| 4782 | |
| 4783 | === modified file 'tests/qmltests/Dash/Previews/tst_PreviewRatingEdit.qml' |
| 4784 | --- tests/qmltests/Dash/Previews/tst_PreviewRatingEdit.qml 2015-05-08 13:12:02 +0000 |
| 4785 | +++ tests/qmltests/Dash/Previews/tst_PreviewRatingEdit.qml 2015-10-26 15:26:58 +0000 |
| 4786 | @@ -1,5 +1,5 @@ |
| 4787 | /* |
| 4788 | - * Copyright 2014 Canonical Ltd. |
| 4789 | + * Copyright 2014,2015 Canonical Ltd. |
| 4790 | * |
| 4791 | * This program is free software; you can redistribute it and/or modify |
| 4792 | * it under the terms of the GNU General Public License as published by |
| 4793 | @@ -16,7 +16,7 @@ |
| 4794 | |
| 4795 | import QtQuick 2.0 |
| 4796 | import QtTest 1.0 |
| 4797 | -import Ubuntu.Components 0.1 |
| 4798 | +import Ubuntu.Components 1.3 |
| 4799 | import "../../../../qml/Dash/Previews" |
| 4800 | import Unity.Test 0.1 as UT |
| 4801 | |
| 4802 | @@ -24,7 +24,7 @@ |
| 4803 | id: root |
| 4804 | width: units.gu(40) |
| 4805 | height: units.gu(80) |
| 4806 | - color: Theme.palette.selected.background |
| 4807 | + color: theme.palette.selected.background |
| 4808 | |
| 4809 | property var widgetData0: { "visible": "both", "required": "both", author: "Some dude", rating: 4.5, review: "Very cool app" } |
| 4810 | |
| 4811 | |
| 4812 | === modified file 'tests/qmltests/Dash/Previews/tst_PreviewRatingInput.qml' |
| 4813 | --- tests/qmltests/Dash/Previews/tst_PreviewRatingInput.qml 2015-02-17 15:06:33 +0000 |
| 4814 | +++ tests/qmltests/Dash/Previews/tst_PreviewRatingInput.qml 2015-10-26 15:26:58 +0000 |
| 4815 | @@ -1,5 +1,5 @@ |
| 4816 | /* |
| 4817 | - * Copyright 2014 Canonical Ltd. |
| 4818 | + * Copyright 2014,2015 Canonical Ltd. |
| 4819 | * |
| 4820 | * This program is free software; you can redistribute it and/or modify |
| 4821 | * it under the terms of the GNU General Public License as published by |
| 4822 | @@ -16,7 +16,7 @@ |
| 4823 | |
| 4824 | import QtQuick 2.0 |
| 4825 | import QtTest 1.0 |
| 4826 | -import Ubuntu.Components 0.1 |
| 4827 | +import Ubuntu.Components 1.3 |
| 4828 | import "../../../../qml/Dash/Previews" |
| 4829 | import Unity.Test 0.1 as UT |
| 4830 | |
| 4831 | @@ -24,7 +24,7 @@ |
| 4832 | id: root |
| 4833 | width: units.gu(40) |
| 4834 | height: units.gu(80) |
| 4835 | - color: Theme.palette.selected.background |
| 4836 | + color: theme.palette.selected.background |
| 4837 | |
| 4838 | property real validInputRating: 1 |
| 4839 | property real invalidInputRating: -1 |
| 4840 | |
| 4841 | === modified file 'tests/qmltests/Dash/Previews/tst_PreviewTable.qml' |
| 4842 | --- tests/qmltests/Dash/Previews/tst_PreviewTable.qml 2015-04-13 11:08:53 +0000 |
| 4843 | +++ tests/qmltests/Dash/Previews/tst_PreviewTable.qml 2015-10-26 15:26:58 +0000 |
| 4844 | @@ -1,5 +1,5 @@ |
| 4845 | /* |
| 4846 | - * Copyright 2014 Canonical Ltd. |
| 4847 | + * Copyright 2014,2015 Canonical Ltd. |
| 4848 | * |
| 4849 | * This program is free software; you can redistribute it and/or modify |
| 4850 | * it under the terms of the GNU General Public License as published by |
| 4851 | @@ -16,7 +16,7 @@ |
| 4852 | |
| 4853 | import QtQuick 2.0 |
| 4854 | import QtTest 1.0 |
| 4855 | -import Ubuntu.Components 0.1 |
| 4856 | +import Ubuntu.Components 1.3 |
| 4857 | import "../../../../qml/Dash/Previews" |
| 4858 | import Unity.Test 0.1 as UT |
| 4859 | |
| 4860 | @@ -24,7 +24,7 @@ |
| 4861 | id: root |
| 4862 | width: units.gu(40) |
| 4863 | height: units.gu(80) |
| 4864 | - color: Theme.palette.selected.background |
| 4865 | + color: theme.palette.selected.background |
| 4866 | |
| 4867 | property var widgetDataComplete: { |
| 4868 | "title": "Title here longa long long long long long long long long long long", |
| 4869 | |
| 4870 | === modified file 'tests/qmltests/Dash/Previews/tst_PreviewTextSummary.qml' |
| 4871 | --- tests/qmltests/Dash/Previews/tst_PreviewTextSummary.qml 2014-08-01 09:55:04 +0000 |
| 4872 | +++ tests/qmltests/Dash/Previews/tst_PreviewTextSummary.qml 2015-10-26 15:26:58 +0000 |
| 4873 | @@ -1,5 +1,5 @@ |
| 4874 | /* |
| 4875 | - * Copyright 2014 Canonical Ltd. |
| 4876 | + * Copyright 2014,2015 Canonical Ltd. |
| 4877 | * |
| 4878 | * This program is free software; you can redistribute it and/or modify |
| 4879 | * it under the terms of the GNU General Public License as published by |
| 4880 | @@ -16,7 +16,7 @@ |
| 4881 | |
| 4882 | import QtQuick 2.0 |
| 4883 | import QtTest 1.0 |
| 4884 | -import Ubuntu.Components 0.1 |
| 4885 | +import Ubuntu.Components 1.3 |
| 4886 | import "../../../../qml/Dash/Previews" |
| 4887 | import Unity.Test 0.1 as UT |
| 4888 | |
| 4889 | @@ -24,7 +24,7 @@ |
| 4890 | id: root |
| 4891 | width: units.gu(40) |
| 4892 | height: units.gu(80) |
| 4893 | - color: Theme.palette.selected.background |
| 4894 | + color: theme.palette.selected.background |
| 4895 | |
| 4896 | property var widgetDataComplete: { |
| 4897 | "title": "Title here", |
| 4898 | |
| 4899 | === modified file 'tests/qmltests/Dash/Previews/tst_PreviewWidgetFactory.qml' |
| 4900 | --- tests/qmltests/Dash/Previews/tst_PreviewWidgetFactory.qml 2015-07-21 07:22:23 +0000 |
| 4901 | +++ tests/qmltests/Dash/Previews/tst_PreviewWidgetFactory.qml 2015-10-26 15:26:58 +0000 |
| 4902 | @@ -1,5 +1,5 @@ |
| 4903 | /* |
| 4904 | - * Copyright 2014 Canonical Ltd. |
| 4905 | + * Copyright 2014,2015 Canonical Ltd. |
| 4906 | * |
| 4907 | * This program is free software; you can redistribute it and/or modify |
| 4908 | * it under the terms of the GNU General Public License as published by |
| 4909 | @@ -23,7 +23,7 @@ |
| 4910 | id: root |
| 4911 | width: units.gu(60) |
| 4912 | height: units.gu(80) |
| 4913 | - color: Theme.palette.selected.background |
| 4914 | + color: theme.palette.selected.background |
| 4915 | |
| 4916 | PreviewWidgetFactory { |
| 4917 | id: factory |
| 4918 | |
| 4919 | === modified file 'tests/qmltests/Dash/Previews/tst_PreviewZoomableImage.qml' |
| 4920 | --- tests/qmltests/Dash/Previews/tst_PreviewZoomableImage.qml 2015-05-06 15:05:06 +0000 |
| 4921 | +++ tests/qmltests/Dash/Previews/tst_PreviewZoomableImage.qml 2015-10-26 15:26:58 +0000 |
| 4922 | @@ -41,7 +41,7 @@ |
| 4923 | |
| 4924 | Loader { |
| 4925 | id: loader |
| 4926 | - anchors.centerIn: parent |
| 4927 | + width: parent.width |
| 4928 | sourceComponent: PreviewZoomableImage { |
| 4929 | widgetData: widgetData0 |
| 4930 | } |
| 4931 | |
| 4932 | === modified file 'tests/qmltests/Dash/ScopeSettings/tst_ScopeSettingBoolean.qml' |
| 4933 | --- tests/qmltests/Dash/ScopeSettings/tst_ScopeSettingBoolean.qml 2015-01-09 09:15:45 +0000 |
| 4934 | +++ tests/qmltests/Dash/ScopeSettings/tst_ScopeSettingBoolean.qml 2015-10-26 15:26:58 +0000 |
| 4935 | @@ -15,7 +15,7 @@ |
| 4936 | */ |
| 4937 | |
| 4938 | import QtQuick 2.0 |
| 4939 | -import Ubuntu.Components 1.1 |
| 4940 | +import Ubuntu.Components 1.3 |
| 4941 | import QtTest 1.0 |
| 4942 | import "../../../../qml/Dash/ScopeSettings" |
| 4943 | import Unity.Test 0.1 as UT |
| 4944 | |
| 4945 | === modified file 'tests/qmltests/Dash/ScopeSettings/tst_ScopeSettingList.qml' |
| 4946 | --- tests/qmltests/Dash/ScopeSettings/tst_ScopeSettingList.qml 2014-08-27 08:07:33 +0000 |
| 4947 | +++ tests/qmltests/Dash/ScopeSettings/tst_ScopeSettingList.qml 2015-10-26 15:26:58 +0000 |
| 4948 | @@ -15,7 +15,7 @@ |
| 4949 | */ |
| 4950 | |
| 4951 | import QtQuick 2.0 |
| 4952 | -import Ubuntu.Components 1.1 |
| 4953 | +import Ubuntu.Components 1.3 |
| 4954 | import QtTest 1.0 |
| 4955 | import "../../../../qml/Dash/ScopeSettings" |
| 4956 | import Unity.Test 0.1 as UT |
| 4957 | |
| 4958 | === modified file 'tests/qmltests/Dash/ScopeSettings/tst_ScopeSettingNumber.qml' |
| 4959 | --- tests/qmltests/Dash/ScopeSettings/tst_ScopeSettingNumber.qml 2015-01-09 09:15:45 +0000 |
| 4960 | +++ tests/qmltests/Dash/ScopeSettings/tst_ScopeSettingNumber.qml 2015-10-26 15:26:58 +0000 |
| 4961 | @@ -15,7 +15,7 @@ |
| 4962 | */ |
| 4963 | |
| 4964 | import QtQuick 2.0 |
| 4965 | -import Ubuntu.Components 1.1 |
| 4966 | +import Ubuntu.Components 1.3 |
| 4967 | import QtTest 1.0 |
| 4968 | import "../../../../qml/Dash/ScopeSettings" |
| 4969 | import Unity.Test 0.1 as UT |
| 4970 | |
| 4971 | === modified file 'tests/qmltests/Dash/ScopeSettings/tst_ScopeSettingString.qml' |
| 4972 | --- tests/qmltests/Dash/ScopeSettings/tst_ScopeSettingString.qml 2015-01-09 09:15:45 +0000 |
| 4973 | +++ tests/qmltests/Dash/ScopeSettings/tst_ScopeSettingString.qml 2015-10-26 15:26:58 +0000 |
| 4974 | @@ -15,7 +15,7 @@ |
| 4975 | */ |
| 4976 | |
| 4977 | import QtQuick 2.0 |
| 4978 | -import Ubuntu.Components 1.1 |
| 4979 | +import Ubuntu.Components 1.3 |
| 4980 | import QtTest 1.0 |
| 4981 | import "../../../../qml/Dash/ScopeSettings" |
| 4982 | import Unity.Test 0.1 as UT |
| 4983 | |
| 4984 | === modified file 'tests/qmltests/Dash/ScopeSettings/tst_ScopeSettingsWidgetFactory.qml' |
| 4985 | --- tests/qmltests/Dash/ScopeSettings/tst_ScopeSettingsWidgetFactory.qml 2014-08-26 14:21:29 +0000 |
| 4986 | +++ tests/qmltests/Dash/ScopeSettings/tst_ScopeSettingsWidgetFactory.qml 2015-10-26 15:26:58 +0000 |
| 4987 | @@ -15,7 +15,7 @@ |
| 4988 | */ |
| 4989 | |
| 4990 | import QtQuick 2.0 |
| 4991 | -import Ubuntu.Components 1.1 |
| 4992 | +import Ubuntu.Components 1.3 |
| 4993 | import QtTest 1.0 |
| 4994 | import "../../../../qml/Dash/ScopeSettings" |
| 4995 | import Unity.Test 0.1 as UT |
| 4996 | |
| 4997 | === modified file 'tests/qmltests/Dash/tst_Card.qml' |
| 4998 | --- tests/qmltests/Dash/tst_Card.qml 2015-09-18 10:33:09 +0000 |
| 4999 | +++ tests/qmltests/Dash/tst_Card.qml 2015-10-26 15:26:58 +0000 |
| 5000 | @@ -1,5 +1,5 @@ |

FAILED: Continuous integration, rev:2005 jenkins. qa.ubuntu. com/job/ unity8- ci/6487/ jenkins. qa.ubuntu. com/job/ generic- deb-autopilot- vivid-touch/ 4700 jenkins. qa.ubuntu. com/job/ generic- deb-autopilot- wily-touch/ 869 jenkins. qa.ubuntu. com/job/ unity-phablet- qmluitests- vivid/1199 jenkins. qa.ubuntu. com/job/ unity-phablet- qmluitests- wily/515 jenkins. qa.ubuntu. com/job/ unity8- vivid-amd64- ci/1094 jenkins. qa.ubuntu. com/job/ unity8- vivid-i386- ci/1095 jenkins. qa.ubuntu. com/job/ unity8- wily-amd64- ci/726 jenkins. qa.ubuntu. com/job/ unity8- wily-i386- ci/727 jenkins. qa.ubuntu. com/job/ generic- deb-autopilot- runner- vivid-mako/ 3793 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- vivid-armhf/ 4697 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- vivid-armhf/ 4697/artifact/ work/output/ *zip*/output. zip s-jenkins. ubuntu- ci:8080/ job/touch- flash-device/ 24334 jenkins. qa.ubuntu. com/job/ generic- deb-autopilot- runner- wily-mako/ 513 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- wily-armhf/ 869 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- wily-armhf/ 869/artifact/ work/output/ *zip*/output. zip s-jenkins. ubuntu- ci:8080/ job/touch- flash-device/ 24335
http://
Executed test runs:
UNSTABLE: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/unity8- ci/6487/ rebuild
http://