Skip to content

Increase visibility of main view scrollbars - #10734

Merged
grliszas14 merged 3 commits into
audacity:masterfrom
grliszas14:scrollbars_visibility
Apr 28, 2026
Merged

grliszas14 merged 3 commits into
audacity:masterfrom
grliszas14:scrollbars_visibility

Conversation

@grliszas14

Copy link
Copy Markdown
Contributor

Resolves: #8315

Depends on: musescore/MuseScore#33038

  • I signed CLA
  • The title of the pull request describes an issue it addresses
  • If changes are extensive, then there is a sequence of easily reviewable commits
  • Each commit's message describes its purpose and effects
  • There are no behavior changes unnecessary for the stated purpose of the PR

Recommended:

  • Each commit compiles and runs on my machine without known undesirable changes of behavior

QA:

  • Autobot test cases have been run

@coderabbitai

coderabbitai Bot commented Apr 17, 2026 •

Copy link
Copy Markdown

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

TracksItemsView.qml: the tracks container resize reporting now adds tracksViewState.tracksVerticalScrollPadding when calling timeline.context.onResizeFrameContentHeight instead of using only tracksModel.totalTracksHeight. The scroll area tracksItemsViewArea explicitly sets scrollbar presentation: scrollbarThickness: 12, scrollbarAlwaysVisibleWhenNeeded: true, scrollbarOpacityNormal: 0.5, and scrollbarOpacityPressed: 0.8.
TimelineContext (C++): a muse::ContextInject<trackedit::IProjectHistory> projectHistory{ this }; was added and init() now connects projectHistory()->historyChanged() to updateFrameTime(). horizontalScrollableSize() extends the computed maximum end-time by adding 75% of the visible frame duration when calculating the clamp against m_lastZoomEndTime.

Sequence Diagram(s)

(Skipped — changes are small and do not introduce a multi-component sequential flow that benefits from visualization.)

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Suggested reviewers

  • luapmartin
🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately describes the main visible change: improving scrollbar visibility through explicit styling configuration in the TracksItemsView.
Description check ✅ Passed The description includes a resolved issue link, follows the template structure, and covers all required sections with appropriate checkboxes marked.
Linked Issues check ✅ Passed Changes address issue #8315 objectives: scrollbar styling improves visibility (fixed thickness, conditional visibility, opacity adjustments), and timeline context changes support proper frame sizing.
Out of Scope Changes check ✅ Passed The timeline context changes (history listening and scroll calculation) appear necessary infrastructure changes to support proper scrollbar behavior and sizing in the main view.

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


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

Choose a reason for hiding this comment

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

Actionable comments posted: 2


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI (base), Organization UI (inherited)

Review profile: ASSERTIVE

Plan: Pro

Run ID: 265b4854-fecf-4d0c-b097-90c5e99fede1

📥 Commits

Reviewing files that changed from the base of the PR and between 4316dcd and f4f445913b0bbe2a4ae73ca422fe7cbf75ecdd40.

📒 Files selected for processing (1)
  • src/projectscene/qml/Audacity/ProjectScene/tracksitemsview/TracksItemsView.qml

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

Actionable comments posted: 2


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI (base), Organization UI (inherited)

Review profile: ASSERTIVE

Plan: Pro

Run ID: 66efcdda-d5b0-4b8a-8bf6-8f49369efa08

📥 Commits

Reviewing files that changed from the base of the PR and between 799598bc350c58b7cb0eaeb54d46cdf46297d6da and 4f040dbc14ba8d3574454e1e137f272f69454b60.

📒 Files selected for processing (3)
  • src/projectscene/qml/Audacity/ProjectScene/tracksitemsview/TracksItemsView.qml
  • src/projectscene/view/timeline/timelinecontext.cpp
  • src/projectscene/view/timeline/timelinecontext.h

@grliszas14
grliszas14 force-pushed the scrollbars_visibility branch from 4f040db to 2b8577d Compare April 28, 2026 10:00

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

♻️ Duplicate comments (1)
src/projectscene/view/timeline/timelinecontext.cpp (1)

145-147: ⚠️ Potential issue | 🟠 Major

Emit only horizontal-scroll refresh on history events.

At Line 145, calling updateFrameTime() triggers frameTimeChanged() and its broader signal cascade even when frame bounds are unchanged. For frequent undo/redo activity this creates avoidable UI churn; this hook can emit horizontalScrollChanged() directly.

♻️ Proposed fix
-    projectHistory()->historyChanged().onReceive(this, [this](auto) {
-        updateFrameTime();
-    });
+    projectHistory()->historyChanged().onReceive(this, [this](auto) {
+        emit horizontalScrollChanged();
+    });

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI (base), Organization UI (inherited)

Review profile: ASSERTIVE

Plan: Pro

Run ID: 7488045b-fd4d-4bab-a425-42a6917bbd5a

📥 Commits

Reviewing files that changed from the base of the PR and between 4f040dbc14ba8d3574454e1e137f272f69454b60 and 2b8577d7e4dc49c305f940d88a8afbab1b61291c.

📒 Files selected for processing (3)
  • src/projectscene/qml/Audacity/ProjectScene/tracksitemsview/TracksItemsView.qml
  • src/projectscene/view/timeline/timelinecontext.cpp
  • src/projectscene/view/timeline/timelinecontext.h

@grliszas14
grliszas14 force-pushed the scrollbars_visibility branch from 2b8577d to 7b62e2f Compare April 28, 2026 12:58
@grliszas14
grliszas14 merged commit b1e8892 into audacity:master Apr 28, 2026
8 checks passed
@grliszas14
grliszas14 deleted the scrollbars_visibility branch April 28, 2026 13:50
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