Skip to content

Commit

Permalink
Merge pull request #163 from markjeschke/markj/change-background-colo…
Browse files Browse the repository at this point in the history
…r-of-piano-roll

Updated the background and text colors so that the grid is visible in dark and light mode.
  • Loading branch information
NickCulbertson authored Jul 4, 2024
2 parents e004e20 + f90437b commit c8d513f
Showing 1 changed file with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,15 @@ public struct PianoRollView: View {
], length: 128, height: 128)

public var body: some View {
ScrollView([.horizontal, .vertical], showsIndicators: true) {
PianoRoll(model: $model, noteColor: .cyan, layout: .horizontal)
}.background(Color(white: 0.1))
.navigationTitle("Piano Roll Demo").foregroundStyle(.white)
VStack(alignment: .leading) {
Text("Tap inside of the scrolling grid to set a note.")
.padding([.top, .horizontal])
ScrollView([.horizontal, .vertical], showsIndicators: true) {
PianoRoll(model: $model, noteColor: .cyan, gridColor: .primary, layout: .horizontal)
}
.padding()
}
.foregroundStyle(.primary)
.navigationTitle("Piano Roll Demo")
}
}

0 comments on commit c8d513f

Please sign in to comment.