Skip to content

added palette score provider#32443

Merged
igorkorsukov merged 1 commit intomusescore:masterfrom
igorkorsukov:w/ioc/step_19
Mar 3, 2026
Merged

added palette score provider#32443
igorkorsukov merged 1 commit intomusescore:masterfrom
igorkorsukov:w/ioc/step_19

Conversation

@igorkorsukov
Copy link
Contributor

Score itself is context-dependent and can use some services that depend on the context.

The Score for palettes was a global variable—that's a problem. It either should be in the global context, but we currently have a clear separation: services can be either global or contextual. Or it should be made contextual.
This PR makes the Score for palettes contextual.

@igorkorsukov igorkorsukov force-pushed the w/ioc/step_19 branch 2 times, most recently from 7f750f8 to 2578df5 Compare March 2, 2026 14:23
painter->translate(params.xoffset * params.spatium, params.yoffset * params.spatium); // additional offset for element only

const double sizeRatio = params.spatium / gpaletteScore->style().spatium();
const double sizeRatio = params.spatium / element->score()->style().spatium();
Copy link
Contributor

Choose a reason for hiding this comment

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

should there be paletteScoreProvider()->paletteScore()?

@igorkorsukov igorkorsukov merged commit 25008a4 into musescore:master Mar 3, 2026
12 checks passed
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