2 * Copyright (C) 2018 The UBports project
4 * Written by: Dalton Durst <dalton@ubports.com>
5 * Marius Gripsgard <marius@ubports.com>
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; version 3.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
21import Lomiri.Components 1.3
22import AccountsService 0.1
24import ".." as LocalComponents
27 objectName: "changelogPage"
28 title: i18n.tr("What's new")
31 // See skipTimer below for information about this hack
32 property bool loading: false
34 forwardButtonSourceComponent: forwardButton
42 leftMargin: wideMode ? parent.leftMargin : staticMargin
43 rightMargin: wideMode ? parent.rightMargin : staticMargin
51 // Make it appear that the text is hiding behind the header
59 // Keep the scroll bar from interfering with text
60 rightMargin: units.gu(1)
64 wrapMode: Text.WordWrap
65 textSize: Label.Medium
73 LocalComponents.StackButton {
74 text: loading ? i18n.tr("Loading...") : i18n.tr("Next")
76 changelogPage.loading = true;
82 // A horrible hack to make sure the UI refreshes before actually skipping
83 // Without this, people press the Next button multiple times and skip
84 // multiple pages at once.
91 changelogPage.loading = false;