Merge lp:~qqworini/ubuntu-rssreader-app/link-color-and-default-feed into lp:~ubuntu-shorts-dev/ubuntu-rssreader-app/trunk

Proposed by Joey Chan
Status: Merged
Approved by: Roman Shchekin
Approved revision: 112
Merged at revision: 110
Proposed branch: lp:~qqworini/ubuntu-rssreader-app/link-color-and-default-feed
Merge into: lp:~ubuntu-shorts-dev/ubuntu-rssreader-app/trunk
Diff against target: 216 lines (+82/-19)
7 files modified
OrganicGrid.qml (+1/-1)
RssFeedPage.qml (+30/-6)
feeds/AppendFeedPage.qml (+16/-2)
feeds/ChooseTopicPage.qml (+15/-1)
feeds/CreateTopicPage.qml (+1/-0)
imgSeparator.js (+8/-1)
rssreader-app.qml (+11/-8)
To merge this branch: bzr merge lp:~qqworini/ubuntu-rssreader-app/link-color-and-default-feed
Reviewer Review Type Date Requested Status
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Ubuntu Shorts Developers Pending
Review via email: mp+190836@code.launchpad.net

Commit message

fix bug

Bug #1217291: [RSS Reader] Article view link styling
Bug #1236309: [RSS Reader] Add a search button right from the textfield until we have a search button in the keyboard
Bug #1238694: Change default feeds
* and a grid bug

add a "saved" icon in article page

Description of the change

fix bug

Bug #1217291: [RSS Reader] Article view link styling
Bug #1236309: [RSS Reader] Add a search button right from the textfield until we have a search button in the keyboard
Bug #1238694: Change default feeds
* and a grid bug

add a "saved" icon in article page

To post a comment you must log in.
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
112. By Joey Chan

just want to trigger jenkins bot rebuild

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'OrganicGrid.qml'
2--- OrganicGrid.qml 2013-10-12 16:47:49 +0000
3+++ OrganicGrid.qml 2013-10-13 16:39:13 +0000
4@@ -186,6 +186,7 @@
5
6 organicFlickable.scrollToStart()
7 currentLoadedIndex += numAdd
8+ organicFlickable.canAdd = true
9 console.timeEnd("reload_grid")
10 }
11
12@@ -210,7 +211,6 @@
13 var imageArray = [article.image]
14 var hasImage = (article.image !== "");
15
16- // Pick the type of size we will use for this item from the sequence
17 // prevent two ImgOneA appear together
18 var alignType
19 do {
20
21=== modified file 'RssFeedPage.qml'
22--- RssFeedPage.qml 2013-10-13 14:02:57 +0000
23+++ RssFeedPage.qml 2013-10-13 16:39:13 +0000
24@@ -299,13 +299,37 @@
25 mediaDownloadInProgress = mediaDownloadInProgress - 1
26 }
27
28- Label {
29- id: label_time
30- text: DateUtils.formatRelativeTime(i18n, pubdate)
31- fontSize: "small"
32+ Row {
33+ width: parent.width - units.gu(4)
34+ height: labelTime.paintedHeight
35 anchors.horizontalCenter: parent.horizontalCenter
36- width: parent.width - units.gu(4)
37+ spacing: units.gu(1)
38+
39+ Image {
40+ id: imgFavourite
41+ anchors.verticalCenter: labelTime.verticalCenter
42+ fillMode: Image.PreserveAspectCrop
43+ source: Qt.resolvedUrl("./icons_tmp/favorite-selected.svg")
44+ sourceSize.height: rssItem == null ? 0 : (rssItem.favourite == "1" ? units.gu(2) : 0)
45+ visible: rssItem == null ? false : (rssItem.favourite == "1")
46+ smooth: true
47+ }
48+
49+ Label {
50+ id: labelTime
51+ text: DateUtils.formatRelativeTime(i18n, pubdate)
52+ fontSize: "small"
53+ width: parent.width - units.gu(3)
54+ wrapMode: Text.WrapAtWordBoundaryOrAnywhere
55+ }
56 }
57+// Label {
58+// id: label_time
59+// text: DateUtils.formatRelativeTime(i18n, pubdate)
60+// fontSize: "small"
61+// anchors.horizontalCenter: parent.horizontalCenter
62+// width: parent.width - units.gu(4)
63+// }
64
65 Label {
66 fontSize: "large"
67@@ -317,7 +341,7 @@
68
69 Label {
70 text: content
71- linkColor: UbuntuColors.orange // Temporary. Mb bad color, but better than dark blue.
72+ linkColor: "white"
73 anchors.horizontalCenter: parent.horizontalCenter
74 width: parent.width - units.gu(4)
75 wrapMode: Text.WrapAtWordBoundaryOrAnywhere
76
77=== modified file 'feeds/AppendFeedPage.qml'
78--- feeds/AppendFeedPage.qml 2013-10-10 18:42:03 +0000
79+++ feeds/AppendFeedPage.qml 2013-10-13 16:39:13 +0000
80@@ -179,18 +179,32 @@
81 placeholderText: i18n.tr("Type a keyword or URL")
82
83 width: parent.width - units.gu(4)
84+ height:units.gu(5)
85 anchors {
86 horizontalCenter: parent.horizontalCenter
87 }
88 primaryItem: Image {
89 height: parent.height*0.5
90- width: parent.height*0.5
91+ width: height
92 anchors.verticalCenter: parent.verticalCenter
93- anchors.verticalCenterOffset: -units.gu(0.2)
94+// anchors.verticalCenterOffset: -units.gu(0.2)
95 source: Qt.resolvedUrl("../icons_tmp/find.svg")
96+ smooth: true
97+
98+ MouseArea {
99+ anchors.fill: parent
100+ onClicked: {
101+ if (Qt.inputMethod.visible)
102+ tfFeedUrl.accapt()
103+ }
104+ }
105 }
106
107 onAccepted: {
108+ accapt()
109+ }
110+
111+ function accapt() {
112 Qt.inputMethod.hide()
113 var userInput = text
114
115
116=== modified file 'feeds/ChooseTopicPage.qml'
117--- feeds/ChooseTopicPage.qml 2013-10-10 18:42:03 +0000
118+++ feeds/ChooseTopicPage.qml 2013-10-13 16:39:13 +0000
119@@ -92,7 +92,9 @@
120 width: parent.width
121 clip: true
122 anchors {
123- fill: parent
124+ left: parent.left; right: parent.right
125+ top: parent.top; bottom: parent.bottom
126+ bottomMargin: Qt.inputMethod.keyboardRectangle.height
127 }
128
129 model: suggestionTopicsModel
130@@ -113,11 +115,23 @@
131 placeholderText: i18n.tr(" + New topic")
132
133 width: parent.width - units.gu(4)
134+ height:units.gu(5)
135 anchors {
136 horizontalCenter: parent.horizontalCenter
137 verticalCenter: parent.verticalCenter
138 }
139
140+ Connections {
141+ id: connKeyBroad
142+ target: Qt.inputMethod
143+
144+ onVisibleChanged: {
145+ if (Qt.inputMethod.visible) {
146+ suggestionTopics.positionViewAtEnd()
147+ }
148+ }
149+ }
150+
151 onAccepted: {
152 Qt.inputMethod.hide()
153 if (text.replace(/^\s+|\s+$/g, '') != "") { // Check that text contains only spaces.
154
155=== modified file 'feeds/CreateTopicPage.qml'
156--- feeds/CreateTopicPage.qml 2013-10-10 18:42:03 +0000
157+++ feeds/CreateTopicPage.qml 2013-10-13 16:39:13 +0000
158@@ -111,6 +111,7 @@
159 placeholderText: i18n.tr("Type topic name")
160
161 width: parent.width - units.gu(4)
162+ height:units.gu(5)
163 anchors {
164 horizontalCenter: parent.horizontalCenter
165 }
166
167=== modified file 'imgSeparator.js'
168--- imgSeparator.js 2013-07-29 18:31:05 +0000
169+++ imgSeparator.js 2013-10-13 16:39:13 +0000
170@@ -11,7 +11,14 @@
171
172 for (var i=0; i<image_array.length; i++)
173 {
174- image_array[i] = image_array[i].split('src=')[1].split(/"|'/)[1]
175+ try {
176+ image_array[i] = image_array[i].split('src=')[1].split(/"|'/)[1]
177+ if (image_array[i].indexOf("//") === 0)
178+ image_array[i] = "http:" + image_array[i]
179+ }
180+ catch(err) {
181+ ; // do nothing
182+ }
183 }
184
185 imageArray = image_array
186
187=== modified file 'rssreader-app.qml'
188--- rssreader-app.qml 2013-10-13 13:31:28 +0000
189+++ rssreader-app.qml 2013-10-13 16:39:13 +0000
190@@ -28,15 +28,18 @@
191 var result = DB.feedsCount()
192
193 if (result.count < 1) {
194- DB.addFeed("" , "http://news.yahoo.com/rss/topstories")
195- DB.addFeed("" , "http://news.yahoo.com/rss/tech")
196- DB.addFeed("" , "http://www.engadget.com/rss.xml")
197- DB.addTag("news");
198- DB.addTag("tech");
199- DB.addTag("engadget")
200+ DB.addTag("Ubuntu")
201+ DB.addFeed("" , "http://developer.ubuntu.com/feed/")
202+ DB.addFeed("" , "http://design.canonical.com/feed/")
203 DB.addFeedTag(1, 1)
204- DB.addFeedTag(2, 2)
205- DB.addFeedTag(3, 3)
206+ DB.addFeedTag(2, 1)
207+ DB.addTag("Canonical")
208+ DB.addFeed("" , "http://voices.canonical.com/feed/atom/")
209+ DB.addFeed("" , "http://insights.ubuntu.com/feed/")
210+ DB.addFeed("" , "http://blog.canonical.com/feed/")
211+ DB.addFeedTag(3, 2)
212+ DB.addFeedTag(4, 2)
213+ DB.addFeedTag(5, 2)
214 topicManagement.reloadTopics()
215 refresh()
216 } else {

Subscribers

People subscribed via source and target branches