Skip to content

Added more scrollbars customizability - #33038

Merged
Eism merged 1 commit into
musescore:masterfrom
grliszas14:scrollbars_customizability
Apr 17, 2026
Merged

Eism merged 1 commit into
musescore:masterfrom
grliszas14:scrollbars_customizability

Conversation

@grliszas14

@grliszas14 grliszas14 commented Apr 17, 2026 •

Copy link
Copy Markdown
Contributor

Resolves: audacity/audacity#8315

Default values shouldn't affect MuseScore Studio in any way

  • I signed the CLA
  • The title of the PR describes the problem it addresses
  • Each commit's message describes its purpose and effects, and references the issue it resolves
  • If changes are extensive, there is a sequence of easily reviewable commits
  • The code in the PR follows the coding rules
  • There are no unnecessary changes
  • The code compiles and runs on my machine, preferably after each commit individually
  • I created a unit test or vtest to verify the changes I made (if applicable)

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

@coderabbitai

coderabbitai Bot commented Apr 17, 2026 •

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: af14fa00-5dd1-4432-91ae-7570a35d5aa4

📥 Commits

Reviewing files that changed from the base of the PR and between 09f5680431a3cbfed655820ceba10061918fc5a9 and 5398b50.

📒 Files selected for processing (2)
  • src/framework/uicomponents/qml/Muse/UiComponents/StyledViewScrollAndZoomArea.qml
  • src/framework/uicomponents/qml/Muse/UiComponents/internal/ViewScrollBar.qml

📝 Walkthrough

Walkthrough

Added four new root properties to StyledViewScrollAndZoomArea: scrollbarThickness, scrollbarAlwaysVisibleWhenNeeded, scrollbarOpacityNormal, and scrollbarOpacityPressed. Both horizontalScrollBar and verticalScrollBar bind their thickness, visibility-behavior, and opacity values to these properties. ViewScrollBar gained alwaysVisibleWhenNeeded, opacityNormal, and opacityPressed properties and its active-state now shows the handle when a scrollbar is needed and either the handle is active or alwaysVisibleWhenNeeded is true; opacity uses the new properties.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately describes the main change: adding configurable properties for scrollbar customization (thickness, visibility, opacity).
Description check ✅ Passed The description includes the linked issue, follows the template structure, and completes most checklist items, though unit tests were not created.
Linked Issues check ✅ Passed The changes implement increased scrollbar opacity configurability and optional always-visible behavior, addressing the visibility and display requirements from issue #8315.
Out of Scope Changes check ✅ Passed All changes are scoped to scrollbar customization properties in the two affected QML files, directly aligned with the linked issue requirements.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In
`@src/framework/uicomponents/qml/Muse/UiComponents/StyledViewScrollAndZoomArea.qml`:
- Around line 37-40: Rename the inconsistent plural property
scrollbarsAlwaysVisibleWhenNeeded to the singular
scrollbarAlwaysVisibleWhenNeeded to match scrollbarThickness and the other
scrollbar* properties; update the two internal bindings that reference the old
name (the bindings that use scrollbarsAlwaysVisibleWhenNeeded in
UiComponents/StyledViewScrollAndZoomArea) to use
scrollbarAlwaysVisibleWhenNeeded, and search/replace any external usages to the
new symbol so the public API remains consistent (properties to end up:
scrollbarThickness, scrollbarAlwaysVisibleWhenNeeded, scrollbarOpacityNormal,
scrollbarOpacityPressed).
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: a9876604-449e-4093-a684-c1e0aed4d61f

📥 Commits

Reviewing files that changed from the base of the PR and between a0d3d2a and 09f5680431a3cbfed655820ceba10061918fc5a9.

📒 Files selected for processing (2)
  • src/framework/uicomponents/qml/Muse/UiComponents/StyledViewScrollAndZoomArea.qml
  • src/framework/uicomponents/qml/Muse/UiComponents/internal/ViewScrollBar.qml

@grliszas14
grliszas14 force-pushed the scrollbars_customizability branch from 09f5680 to 5398b50 Compare April 17, 2026 08:49
@Eism
Eism merged commit 7f1e9b8 into musescore:master Apr 17, 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.

Scrollbars are too invisible - increase their visibility

2 participants