Merge lp:~ubuntu-sdk-team/ubuntu-ui-toolkit/clipScrollbar into lp:ubuntu-ui-toolkit/staging

Proposed by Cris Dywan
Status: Merged
Merge reported by: Cris Dywan
Merged at revision: not available
Proposed branch: lp:~ubuntu-sdk-team/ubuntu-ui-toolkit/clipScrollbar
Merge into: lp:ubuntu-ui-toolkit/staging
Diff against target: 91 lines (+43/-4)
4 files modified
src/Ubuntu/Components/1.3/TextArea.qml (+3/-4)
src/Ubuntu/Components/Themes/Ambiance/1.3/TextAreaStyle.qml (+6/-0)
tests/unit/performance/TextArea13Grid.qml (+33/-0)
tests/unit/performance/tst_performance.cpp (+1/-0)
To merge this branch: bzr merge lp:~ubuntu-sdk-team/ubuntu-ui-toolkit/clipScrollbar
Reviewer Review Type Date Requested Status
ubuntu-sdk-build-bot continuous-integration Needs Fixing
Loïc Molinari (community) Approve
Review via email: mp+296551@code.launchpad.net

Commit message

Put Scrollbar in ShaderEffectSource to blend with frame

Description of the change

Performance seems to be the same if not a tad faster.

Before
0.018 msecs per iteration (total: 75, iterations: 4096)
0.018 msecs per iteration (total: 76, iterations: 4096)
0.018 msecs per iteration (total: 77, iterations: 4096)
0.018 msecs per iteration (total: 75, iterations: 4096)
After
0.018 msecs per iteration (total: 76, iterations: 4096)
0.017 msecs per iteration (total: 72, iterations: 4096)
0.018 msecs per iteration (total: 76, iterations: 4096)
0.018 msecs per iteration (total: 75, iterations: 4096)

To post a comment you must log in.
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Loïc Molinari (loic.molinari) wrote :

Easy! Looks good to me.

review: Approve
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Needs Fixing (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/Ubuntu/Components/1.3/TextArea.qml'
2--- src/Ubuntu/Components/1.3/TextArea.qml 2016-05-25 12:48:10 +0000
3+++ src/Ubuntu/Components/1.3/TextArea.qml 2016-06-06 14:07:38 +0000
4@@ -875,6 +875,9 @@
5 }
6 }
7 }
8+
9+ /*! \internal */
10+ property Item __rightScrollbar: rightScrollbar
11 Scrollbar {
12 id: rightScrollbar
13 flickableItem: flicker
14@@ -884,10 +887,6 @@
15 anchors.topMargin: -internal.frameSpacing
16 anchors.rightMargin: -internal.frameSpacing
17 anchors.bottomMargin: -internal.frameSpacing
18- Ubuntu.StyleHints {
19- // No background color
20- troughColorSteppersStyle: Qt.rgba(0, 0, 0, 0)
21- }
22 }
23
24 styleName: "TextAreaStyle"
25
26=== modified file 'src/Ubuntu/Components/Themes/Ambiance/1.3/TextAreaStyle.qml'
27--- src/Ubuntu/Components/Themes/Ambiance/1.3/TextAreaStyle.qml 2016-05-10 12:08:32 +0000
28+++ src/Ubuntu/Components/Themes/Ambiance/1.3/TextAreaStyle.qml 2016-06-06 14:07:38 +0000
29@@ -76,6 +76,12 @@
30 radius: units.gu(1.7)
31 backgroundColor: visuals.backgroundColor
32 aspect: UbuntuShape.Flat
33+ source: ShaderEffectSource {
34+ sourceItem: styledItem.__rightScrollbar ? styledItem.__rightScrollbar : null
35+ hideSource: true
36+ }
37+ sourceFillMode: UbuntuShape.Pad
38+ sourceHorizontalAlignment: UbuntuShape.AlignRight
39 }
40 }
41
42
43=== added file 'tests/unit/performance/TextArea13Grid.qml'
44--- tests/unit/performance/TextArea13Grid.qml 1970-01-01 00:00:00 +0000
45+++ tests/unit/performance/TextArea13Grid.qml 2016-06-06 14:07:38 +0000
46@@ -0,0 +1,33 @@
47+/*
48+ * Copyright 2016 Canonical Ltd.
49+ *
50+ * This program is free software; you can redistribute it and/or modify
51+ * it under the terms of the GNU Lesser General Public License as published by
52+ * the Free Software Foundation; version 3.
53+ *
54+ * This program is distributed in the hope that it will be useful,
55+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
56+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
57+ * GNU Lesser General Public License for more details.
58+ *
59+ * You should have received a copy of the GNU Lesser General Public License
60+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
61+ */
62+
63+import QtQuick 2.0
64+import Ubuntu.Components 1.3
65+
66+Grid {
67+ width: units.gu(80)
68+ height: units.gu(60)
69+ rows: 16
70+ columns: 16
71+
72+ Repeater {
73+ model: 16 * 16
74+
75+ TextField {
76+ text: i18n.tr("Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.")
77+ }
78+ }
79+}
80
81=== modified file 'tests/unit/performance/tst_performance.cpp'
82--- tests/unit/performance/tst_performance.cpp 2015-12-07 22:16:52 +0000
83+++ tests/unit/performance/tst_performance.cpp 2016-06-06 14:07:38 +0000
84@@ -102,6 +102,7 @@
85 QTest::addColumn<QString>("document");
86 QTest::addColumn<QUrl>("theme");
87
88+ QTest::newRow("TextArea 1.3") << "TextArea13Grid.qml" << QUrl();
89 QTest::newRow("AbstractButton 1.2") << "AbstractButtonGrid.qml" << QUrl();
90 QTest::newRow("AbstractButton 1.3") << "AbstractButton13Grid.qml" << QUrl();
91 QTest::newRow("grid with Rectangle") << "RectangleGrid.qml" << QUrl();

Subscribers

People subscribed via source and target branches