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

FAILED: Continuous integration, rev:1991 jenkins. qa.ubuntu. com/job/ unity8- ci/6397/ jenkins. qa.ubuntu. com/job/ generic- deb-autopilot- vivid-touch/ 4457 jenkins. qa.ubuntu. com/job/ generic- deb-autopilot- wily-touch/ 776 jenkins. qa.ubuntu. com/job/ unity-phablet- qmluitests- vivid/1109 jenkins. qa.ubuntu. com/job/ unity-phablet- qmluitests- wily/427 jenkins. qa.ubuntu. com/job/ unity8- vivid-amd64- ci/1004 jenkins. qa.ubuntu. com/job/ unity8- vivid-i386- ci/1005 jenkins. qa.ubuntu. com/job/ unity8- wily-amd64- ci/636 jenkins. qa.ubuntu. com/job/ unity8- wily-i386- ci/637 jenkins. qa.ubuntu. com/job/ generic- deb-autopilot- runner- vivid-mako/ 3624 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- vivid-armhf/ 4454 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- vivid-armhf/ 4454/artifact/ work/output/ *zip*/output. zip s-jenkins. ubuntu- ci:8080/ job/touch- flash-device/ 23854 jenkins. qa.ubuntu. com/job/ generic- deb-autopilot- runner- wily-mako/ 465 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- wily-armhf/ 776 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- wily-armhf/ 776/artifact/ work/output/ *zip*/output. zip s-jenkins. ubuntu- ci:8080/ job/touch- flash-device/ 23855
http://
Executed test runs:
UNSTABLE: http://
UNSTABLE: http://
UNSTABLE: http://
UNSTABLE: 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/6397/ rebuild
http://