on xenial help sign in
Use a dark chevron for the tabBar
3e61bb2Albert Astals
Dash/DashContent.qml+5−4
@@ -167,11 +167,12 @@ Item {
167 searchHistory: dashContent.searchHistory
167 searchHistory: dashContent.searchHistory
168
168
169 childItem: TabBar {
169 childItem: TabBar {
170− id: tabbar
170+ id: tabBar
171 objectName: "tabbar"
171 objectName: "tabbar"
172 height: units.gu(7)
172 height: units.gu(7)
173 width: parent.width
173 width: parent.width
174 selectionMode: false
174 selectionMode: false
175+ style: DashContentTabBarStyle {}
175
176
176 model: dashContentList.model
177 model: dashContentList.model
177
178
@@ -182,15 +183,15 @@ Item {
182 Connections {
183 Connections {
183 target: dashContentList
184 target: dashContentList
184 onCurrentIndexChanged: {
185 onCurrentIndexChanged: {
185− tabbar.selectedIndex = dashContentList.currentIndex
186+ tabBar.selectedIndex = dashContentList.currentIndex
186 }
187 }
187 }
188 }
188
189
189 Connections {
190 Connections {
190 target: model
191 target: model
191 onCountChanged: {
192 onCountChanged: {
192− if (tabbar.selectedIndex < 0 && model.count > 0)
193+ if (tabBar.selectedIndex < 0 && model.count > 0)
193− tabbar.selectedIndex = 0;
194+ tabBar.selectedIndex = 0;
194 }
195 }
195 }
196 }
196
197
Dash/DashContentTabBarStyle.qmlnew file+21
@@ -0,0 +1,21 @@
1+/*
2+ * Copyright (C) 2013 Canonical, Ltd.
3+ *
4+ * This program is free software; you can redistribute it and/or modify
5+ * it under the terms of the GNU General Public License as published by
6+ * the Free Software Foundation; version 3.
7+ *
8+ * This program is distributed in the hope that it will be useful,
9+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
10+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+ * GNU General Public License for more details.
12+ *
13+ * You should have received a copy of the GNU General Public License
14+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
15+ */
16+
17+import Ubuntu.Components.Themes.Ambiance 0.1
18+
19+TabBarStyle {
20+ indicatorImageSource: "graphics/tabbarchevron.png"
21+}
Dash/graphics/tabbarchevron@27.pngnew file

Binary file not shown.