git.iko.soy/maciek134/podphoenix
on main help sign in
Removed CustomScrollBar and used the standard scrollbar with our app theming
commitf16b9f797a6c66674c9de3627813f7acc06b0978 authorNekhelesh Ramananthan <krnekhelesh@gmail.com> dateWed 24 Feb 2016, 21:51 (11 years ago) parent39bf49f
5 files changed+13−46
app/components/CustomScrollBar.qml−36 app/ui/EpisodesPage.qml+4−3 app/ui/PodcastsTab.qml+4−3 app/ui/WhatsNewTab.qml+4−3 po/com.mikeasoft.podbird.pot+1−1
app/components/CustomScrollBar.qmldeleted−36
@@ -1,36 +0,0 @@
1−/*
2− * Copyright 2015 Podbird Team
3− *
4− * This file is part of Podbird.
5− *
6− * Podbird is free software; you can redistribute it and/or modify
7− * it under the terms of the GNU General Public License as published by
8− * the Free Software Foundation; version 3.
9− *
10− * Podbird is distributed in the hope that it will be useful,
11− * but WITHOUT ANY WARRANTY; without even the implied warranty of
12− * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13− * GNU General Public License for more details.
14− *
15− * You should have received a copy of the GNU General Public License
16− * along with this program. If not, see <http://www.gnu.org/licenses/>.
17− */
18−
19−import QtQuick 2.4
20−import Ubuntu.Components 1.3
21−
22−Rectangle {
23− id: scrollBar
24−
25− property ListView listview
26−
27− anchors.right: parent.right
28− anchors.rightMargin: units.gu(0.5)
29− color: podbird.appTheme.focusText
30− radius: width
31− width: units.dp(4)
32− visible: listview.moving && listview.contentHeight > listview.height
33−
34− height: listview.visibleArea.heightRatio * listview.height
35− y: listview.visibleArea.yPosition * listview.height
36−}
app/ui/EpisodesPage.qml+4−3
@@ -559,9 +559,10 @@ Page {
559559 onRefresh: updateEpisodesDatabase();
560560 }
561561
562− // #FIXME: Use SDK Scrollbar when it is themeable
563− CustomScrollBar {
564− listview: episodeList
562+ Scrollbar {
563+ flickableItem: episodeList
564+ align: Qt.AlignTrailing
565+ StyleHints { sliderColor: podbird.appTheme.focusText }
565566 }
566567 }
567568
app/ui/PodcastsTab.qml+4−3
@@ -270,9 +270,10 @@ Page {
270270 }
271271 }
272272
273− // #FIXME: Use SDK Scrollbar when it is themeable
274− CustomScrollBar {
275− listview: listView
273+ Scrollbar {
274+ flickableItem: listView
275+ align: Qt.AlignTrailing
276+ StyleHints { sliderColor: podbird.appTheme.focusText }
276277 }
277278
278279 PullToRefresh {
app/ui/WhatsNewTab.qml+4−3
@@ -406,9 +406,10 @@ Tab {
406406 }
407407 }
408408
409− // #FIXME: Use SDK Scrollbar when it is themeable
410− CustomScrollBar {
411− listview: episodeList
409+ Scrollbar {
410+ flickableItem: episodeList
411+ align: Qt.AlignTrailing
412+ StyleHints { sliderColor: podbird.appTheme.focusText }
412413 }
413414
414415 PullToRefresh {
po/com.mikeasoft.podbird.pot+1−1
@@ -8,7 +8,7 @@ msgid ""
88msgstr ""
99"Project-Id-Version: \n"
1010"Report-Msgid-Bugs-To: \n"
11−"POT-Creation-Date: 2016-02-25 02:15+0530\n"
11+"POT-Creation-Date: 2016-02-25 02:19+0530\n"
1212"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414"Language-Team: LANGUAGE <LL@li.org>\n"