Skip to content

Fix piano roll UI bugs#2207

Merged
stakira merged 1 commit into
masterfrom
ui-fix
Jun 17, 2026
Merged

Fix piano roll UI bugs#2207
stakira merged 1 commit into
masterfrom
ui-fix

Conversation

@stakira

@stakira stakira commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator
  • Remove time axis from expression area
  • Fix portrait positioning
  • Fix portrait covered by expression track background
  • Fix expression track background alternating color
  • Auto hide notes properties scroll bar

- Remove time axis from expression area
- Fix portrait positioning
- Fix portrait covered by expression track background
- Fix expression track background alternating color
- Auto hide notes properties scroll bar
Copilot AI review requested due to automatic review settings June 17, 2026 05:18

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR targets several piano roll UI regressions/rough edges, primarily around expression-area visuals and singer portrait layout, plus a small usability tweak in note properties.

Changes:

  • Reworked TickBackground to support toggling bar/time-axis rendering via a renamed ShowBar property, and updated call sites.
  • Adjusted piano roll XAML layering/structure so expression backgrounds can render beneath the portrait and the expression area no longer reserves space for the time axis.
  • Tweaked portrait positioning logic in code-behind and enabled auto-hiding note-properties scrollbars.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
OpenUtau/Views/MainWindow.axaml Updates TickBackground usage to the new ShowBar property.
OpenUtau/ViewModels/NotesViewModel.cs Updates expression-descriptor selection logic and expression track sizing behavior.
OpenUtau/Controls/TickBackground.cs Renames and implements ShowBar to control bar/time-axis drawing and invalidation.
OpenUtau/Controls/PianoRoll.axaml.cs Adds runtime portrait positioning updates tied to layout changes.
OpenUtau/Controls/PianoRoll.axaml Reorders/adds backgrounds and portrait container; removes expression time-axis margin.
OpenUtau/Controls/NotePropertiesControl.axaml Enables scrollbar auto-hide for the note properties panel.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +172 to 174
} else {
ExpTrackHeight = 0;
}
Comment on lines +65 to 70
private void UpdatePortraitPosition() {
if (PortraitImage.DesiredSize.Width == 0 || PortraitCanvas.Bounds.Width == 0) return;
// Position at top-right of row 3, with 100px margin from right
Canvas.SetTop(PortraitImage, 0);
Canvas.SetLeft(PortraitImage, PortraitCanvas.Bounds.Width - PortraitImage.DesiredSize.Width - 100);
}
@stakira stakira merged commit dbb8da2 into master Jun 17, 2026
5 checks passed
keirokeer pushed a commit to keirokeer/OpenUtau-lunai that referenced this pull request Jun 18, 2026
- Remove time axis from expression area
- Fix portrait positioning
- Fix portrait covered by expression track background
- Fix expression track background alternating color
- Auto hide notes properties scroll bar
keirokeer added a commit to keirokeer/OpenUtau-lunai that referenced this pull request Jun 18, 2026
Integrate upstream openutau#2207 piano roll UI fixes while preserving Lunai workspace layout, playback highlight, and note properties redesign.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants