Newer
Older
/** This file is part of Nootka (http://nootka.sf.net) *
* Copyright (C) 2019-2021 by Tomasz Bojczuk (seelook@gmail.com) *
* on the terms of GNU GPLv3 license (http://www.gnu.org/licenses) */
import "../"
TipRect {
id: cntDwnItem
property int tickCount: 0
// private
property int counter: 1
width: row.width + NOO.factor() * 4
height: nootkaWindow.height / 10
x: height * 2
y: NOO.factor() / 2
z: 100
color: Qt.tint(activPal.text, NOO.alpha("#00a0a0", 100))
visible: counter <= tickCount && (SOUND.listening || SOUND.playing) && SOUND.metroRunning
Connections {
target: tempoBar
anchors.centerIn: parent
spacing: NOO.factor() * 2
Text {
y: height * 0.07
color: index + 1 === counter ? activPal.highlight : activPal.base
text: index % tempoBar.countTo + 1
font {
pixelSize: cntDwnItem.height * 0.8
family: "Scorek"
}
}