Skip to content

Commit

Permalink
💄 Minor UI fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tbazin committed Oct 22, 2022
1 parent 97a38d5 commit b4226cb
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions packages/renderer/src/piano_roll/Player.scss
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,12 @@ $lighter-arabian-sand-color: color.scale($arabian-sand-color, $lightness: +40%);

.midi-visualizer-loop-overlay {
position: relative;
fill: lightblue;
fill: antiquewhite;
fill-opacity: 0.3;
}

.midi-visualizer {
cursor: pointer;
cursor: grab;
}
.midi-visualizer.in-interaction {
cursor: grabbing;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1315,7 +1315,6 @@ export class ClickableVisualizerElement extends MonoVoiceVisualizerElement {
this._inSelectionInteraction = inSelectionInteraction
}

protected startingSelectionInteraction: boolean = false
get InSelectionInteraction(): boolean {
return this.inSelectionInteraction
}
Expand Down Expand Up @@ -1701,7 +1700,7 @@ export class ClickableVisualizerElement extends MonoVoiceVisualizerElement {
this.selectionOverlay.setAttribute('width', '0')
this.selectionTimestamp_A = clickTime
this.selectionTimestamp_B = clickTime
this.startingSelectionInteraction = true
this.inSelectionInteraction = true
} else {
this.seekCallback(ev)
}
Expand All @@ -1728,10 +1727,6 @@ export class ClickableVisualizerElement extends MonoVoiceVisualizerElement {
if (ev.offsetY < 0 || ev.offsetY > this.svgElement.clientHeight) {
this.clearSelection()
}
if (!this.inSelectionInteraction && this.startingSelectionInteraction) {
this.inSelectionInteraction = true
this.startingSelectionInteraction = false
}
if (!this.inSelectionInteraction) {
return
}
Expand Down Expand Up @@ -1902,7 +1897,6 @@ export class ClickableVisualizerElement extends MonoVoiceVisualizerElement {
clearSelection() {
this.selectionOverlay?.style.setProperty('opacity', '0')
this.inSelectionInteraction = false
this.startingSelectionInteraction = false
this.selectionTimestamp_A = null
this.selectionTimestamp_B = null
}
Expand Down
4 changes: 4 additions & 0 deletions packages/renderer/styles/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ body.hidden-cursor {
}
}

.simplebar-dragging .simplebar-track:hover {
cursor: grabbing;
}

.inpainter {
&.sheet-inpainter svg,
.spectrogram-inpainter-image-container img {
Expand Down
1 change: 1 addition & 0 deletions packages/renderer/styles/startupSplash.scss
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ body.running #configuration-selection-container {
grid-auto-flow: column;
grid-auto-columns: 1fr;
max-width: 75vw;
padding: 0 1vw;

> div {
margin: 0 1vw;
Expand Down

0 comments on commit b4226cb

Please sign in to comment.