on xenial help sign in
Use a dark chevron for the tabBar
commit3e61bb2cafbca14f7d2e9b147b7c56c5c602862c authorAlbert Astals <albert.astals@canonical.com> dateMon 2 Dec 2013, 15:58 (13 years ago) parenta376e05
3 files changed+26−4
Dash/DashContent.qml+5−4 Dash/DashContentTabBarStyle.qml+21 Dash/graphics/tabbarchevron@27.png
Dash/DashContent.qml+5−4
@@ -167,11 +167,12 @@ Item {
167167 searchHistory: dashContent.searchHistory
168168
169169 childItem: TabBar {
170− id: tabbar
170+ id: tabBar
171171 objectName: "tabbar"
172172 height: units.gu(7)
173173 width: parent.width
174174 selectionMode: false
175+ style: DashContentTabBarStyle {}
175176
176177 model: dashContentList.model
177178
@@ -182,15 +183,15 @@ Item {
182183 Connections {
183184 target: dashContentList
184185 onCurrentIndexChanged: {
185− tabbar.selectedIndex = dashContentList.currentIndex
186+ tabBar.selectedIndex = dashContentList.currentIndex
186187 }
187188 }
188189
189190 Connections {
190191 target: model
191192 onCountChanged: {
192− if (tabbar.selectedIndex < 0 && model.count > 0)
193− tabbar.selectedIndex = 0;
193+ if (tabBar.selectedIndex < 0 && model.count > 0)
194+ tabBar.selectedIndex = 0;
194195 }
195196 }
196197
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.