Adding a trail (gradient) behind the position bar (#5543)

* src/gui/editors/SongEditor.cpp

* Gradient can be toggled and color can be changed.

* Made playback line (and tail) transparent to mouse clicks

* Gradient disappears when paused/stopped; tail length depends on zoom

* Fixes bug where gradient appears when a pattern is played; style corrections

* Cleaned up code

* Rename m_zoomLevels to s_zoomLevels

* Finalising code

* Make positionLine class independent of parent zooming model

* Edit a bug fix to make it more efficient

* Rename m_x and finalise positionLine code

* Rename m_x and finalise positionLine changes

* Rename X to playHeadPos
This commit is contained in:
Kumar
2020-07-02 19:56:41 +05:30
committed by GitHub
parent 5d7e6720e1
commit 984fd3a935
4 changed files with 114 additions and 15 deletions

View File

@@ -118,6 +118,11 @@ QMenu::indicator:selected {
background-color: #747474;
}
positionLine {
qproperty-tailGradient: false;
qproperty-lineColor: rgb(255, 255, 255);
}
PianoRoll {
background-color: rgb(0, 0, 0);
qproperty-backgroundShade: rgba( 255, 255, 255, 10 );

View File

@@ -150,6 +150,11 @@ QMenu::indicator:selected {
background-color: #101213;
}
positionLine {
qproperty-tailGradient: true;
qproperty-lineColor: rgb(255, 255, 255);
}
PianoRoll {
background-color: #141616;
qproperty-backgroundShade: rgba(255, 255, 255, 10);