-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
35 changed files
with
236 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import QtQuick 2.0 | ||
import Sailfish.Silica 1.0 | ||
|
||
SilicaListView { | ||
id: view | ||
snapMode: ListView.SnapToItem | ||
clip: true | ||
quickScrollEnabled: false | ||
|
||
delegate: BackgroundItem { | ||
width: view.width | ||
height: currentIndex === index | ||
? Theme.itemSizeLarge | ||
: Theme.itemSizeSmall | ||
|
||
Behavior on height { NumberAnimation {} } | ||
|
||
onClicked: { | ||
currentIndex = index | ||
animation.moveTo(currentIndex) | ||
} | ||
|
||
Label { | ||
text: index | ||
anchors.centerIn: parent | ||
color: highlighted | ||
? Theme.highlightColor | ||
: Theme.primaryColor | ||
font.pixelSize: currentIndex === index | ||
? Theme.fontSizeHuge | ||
: Theme.fontSizeLarge | ||
|
||
Behavior on font.pixelSize { NumberAnimation {} } | ||
} | ||
} | ||
|
||
Component.onCompleted: positionViewAtIndex(currentIndex, ListView.Center) | ||
|
||
ListViewPositionAnimation { | ||
id: animation | ||
target: view | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import QtQuick 2.0 | ||
|
||
NumberAnimation { | ||
property var mode: ListView.Center | ||
|
||
function moveTo(index) { | ||
stop() | ||
from = target.contentY | ||
target.positionViewAtIndex(index, mode) | ||
// FIXME: Sometimes it's not defined | ||
to = target.contentY | ||
start() | ||
} | ||
|
||
property: "contentY" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import QtQuick 2.0 | ||
import Sailfish.Silica 1.0 | ||
import "../components" | ||
|
||
Dialog { | ||
property alias hour: hoursView.currentIndex | ||
property alias minute: minutesView.currentIndex | ||
|
||
id: dialog | ||
canAccept: hour > 0 || minute >= 10 | ||
|
||
DialogHeader { | ||
id: header | ||
//% "At least 10 minutes" | ||
title: qsTrId("orn-updates-check-interval-minimum") | ||
palette.highlightColor: canAccept ? Theme.highlightColor : Theme.errorColor | ||
} | ||
|
||
IntervalView { | ||
id: hoursView | ||
anchors { | ||
top: header.bottom | ||
right: parent.horizontalCenter | ||
bottom: parent.bottom | ||
left: parent.left | ||
bottomMargin: Theme.paddingLarge | ||
} | ||
model: 48 | ||
} | ||
|
||
IntervalView { | ||
id: minutesView | ||
anchors { | ||
top: header.bottom | ||
right: parent.right | ||
bottom: parent.bottom | ||
left: parent.horizontalCenter | ||
bottomMargin: Theme.paddingLarge | ||
} | ||
model: 60 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
* Tue Jul 20 2021 Petr Tsymbarovich <[email protected]> 0.2.8 | ||
- Fix busy indicator on the app list page remains active after pkcon action finishes | ||
- Allow to set the update interval up to 48 hours | ||
- Fix backing up and restoring bookmarks | ||
- Animate removal of backup items | ||
- Update translations | ||
|
||
* Tue Jun 8 2021 Petr Tsymbarovich <[email protected]> 0.2.7 | ||
- Update other transactions | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.