Wip!
This commit is contained in:
parent
e79c163dd9
commit
861e207fb6
9 changed files with 59 additions and 82 deletions
|
|
@ -146,16 +146,7 @@ ColumnLayout {
|
|||
spacing: Style.marginS * scaling
|
||||
|
||||
// Factorized presets data
|
||||
property var intervalPresets: [
|
||||
5 * 60,
|
||||
10 * 60,
|
||||
15 * 60,
|
||||
30 * 60,
|
||||
45 * 60,
|
||||
60 * 60,
|
||||
90 * 60,
|
||||
120 * 60,
|
||||
]
|
||||
property var intervalPresets: [5 * 60, 10 * 60, 15 * 60, 30 * 60, 45 * 60, 60 * 60, 90 * 60, 120 * 60]
|
||||
|
||||
// Whether current interval equals one of the presets
|
||||
property bool isCurrentPreset: {
|
||||
|
|
@ -237,7 +228,7 @@ ColumnLayout {
|
|||
property int seconds: 0
|
||||
property string label: ""
|
||||
property bool selected: false
|
||||
signal clicked()
|
||||
signal clicked
|
||||
|
||||
radius: height * 0.5
|
||||
color: selected ? Color.mPrimary : Color.mSurfaceVariant
|
||||
|
|
@ -266,4 +257,4 @@ ColumnLayout {
|
|||
Layout.topMargin: Style.marginXL * scaling
|
||||
Layout.bottomMargin: Style.marginXL * scaling
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue