Skip to content

UI tweaks around menu icons, meter peak marker and timecode - #12941

Open
luapmartin wants to merge 4 commits into
audacity:masterfrom
luapmartin:luapmartin/theme-aware-menu-icons-and-peak-marker
Open

luapmartin wants to merge 4 commits into
audacity:masterfrom
luapmartin:luapmartin/theme-aware-menu-icons-and-peak-marker

Conversation

@luapmartin

@luapmartin luapmartin commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Resolves: #12951

  • hi contrast black/white now use Text and icons custom color (instead of hardcoded colour clashing with the rest) for
    • max peak meter line
      • black wasn’t visible before
      • white wasn’t adjusting to theme colours
    • timecode controllers : playhead, range, duration, time signature, bpm, Label frequency editors (in label > Manage Labels editor)
      • it was previously hardcoded in yellow for black and dark blue for white
  • dark theme
    • max peak meter line now to use the primary font colour (a white colour) making it now visible
  • the icon on menu entries are now using the text colour (alll theme)
    • Loop playback icon
    • Track visualization icons
  • track vertical rulers (waveform and spectrogram labels, and the spectrogram guide line)

Depends on musescore/muse_framework#477.

  • I signed CLA
  • This PR includes AI assistance
  • If the PR is AI-assisted, I have read, understood and complied with the guidelines for AI-assisted contributions
  • 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

🤖 Generated with Claude Code

@coderabbitai

coderabbitai Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The appearance preferences model now applies the selected text and icons color to both primary and secondary font colors. The meter peak marker uses the primary font color instead of a separate theme setting. The spectrogram ruler guide falls back to the primary font color when its theme setting is absent. Theme configurations remove the separate meter marker and spectrogram guide settings. The Muse subproject reference also changes.

Estimated code review effort: 2 (Simple) | ~10 minutes

Severity of issue fixed: Low

Merge Risk: Minimal · up to 6b603

This change makes menu icons, the meter peak marker and the spectrogram ruler guide follow the active theme colours. No concrete risk to merging was found; the Muse framework pull request it depends on should be merged first.

Pre-merge checks: Passed 3 · Inconclusive 1

Failed Failed checks: 1 inconclusive

Check name Status Explanation Resolution
Linked Issues check Inconclusive Issue #12951 has three coding objectives. (1) Meter max peak line: addressed. MeterStyle.qml now uses ui.theme.fontPrimaryColor, and meter_max_peak_marker_color is removed from dark.cfg, light.cfg, hi… Provide readable evidence for the timecode controller and menu icon changes. Either supply the diff of the affected Audacity files, or confirm the muse_framework commit 352a1a6 contains the icon and timecode colour changes. Make the changed…
Passed Passed checks: 3 passed

Check name Status Explanation
Title check Passed The title names three areas the PR changes: menu icons, the meter peak marker, and timecode. The raw summary and objectives confirm all three. The title is a single sentence of 10 words and does not l…
Description check Passed The description states the purpose and the scope: high-contrast themes now use the Text and icons custom color for the max peak meter line and timecode controls, the dark theme uses the primary font c…
Out of Scope Changes check Passed The listed changes all fit the stated theme-colour purpose in PR #12951. They cover theme config colour keys (dark, light, high-contrast black and white), the meter peak marker colour in MeterStyle.qm…
Full details: Title check

Explanation

The title names three areas the PR changes: menu icons, the meter peak marker, and timecode. The raw summary and objectives confirm all three. The title is a single sentence of 10 words and does not list files. It does not cover the ruler and high-contrast color changes, which is acceptable because the title need not cover every detail.

Full details: Description check

Explanation

The description states the purpose and the scope: high-contrast themes now use the Text and icons custom color for the max peak meter line and timecode controls, the dark theme uses the primary font color for the peak line, menu icons use the text color, and track rulers follow the theme. It links issue #12951 and notes a dependency on musescore/muse_framework#477. It fills in the template checkboxes. The template asks for a direct issue link and a description of the changes, and both are present. The description does not explain the commit sequence or the muse submodule bump, but these are minor gaps.

Full details: Out of Scope Changes check

Explanation

The listed changes all fit the stated theme-colour purpose in PR #12951. They cover theme config colour keys (dark, light, high-contrast black and white), the meter peak marker colour in MeterStyle.qml, the TextAndIconsColor handling in appearancepreferencesmodel.cpp, and the spectrogram ruler guide fallback in SpectrogramChannelRuler.qml. The muse submodule bump is a dependency update the PR description states (muse_framework#477). No unrelated behaviour change appears in the summary.

Full details: Linked Issues check

Explanation

Issue #12951 has three coding objectives. (1) Meter max peak line: addressed. MeterStyle.qml now uses ui.theme.fontPrimaryColor, and meter_max_peak_marker_color is removed from dark.cfg, light.cfg, high_contrast_black.cfg and high_contrast_white.cfg. (2) Timecode, BPM, time signature and frequency fields in high-contrast themes: the summary lists no changed file for these controls. The only related source change is appearancepreferencesmodel.cpp, which sets both primary and secondary font colours for TextAndIconsColor. This does not show that the hardcoded colours in the timecode controls were removed. (3) Menu icons (Loop playback, track view): the summary lists no changed icon or menu file. The muse submodule pointer moved to 352a1a6, but its contents are not readable here, so the icon fix may sit there. The repository diff could not be read because changed blobs are missing from the checkout. Result: objectives (2) and (3) cannot be confirmed from reviewed evidence.

Resolution

Provide readable evidence for the timecode controller and menu icon changes. Either supply the diff of the affected Audacity files, or confirm the muse_framework commit 352a1a6 contains the icon and timecode colour changes. Make the changed blobs available in the checkout so the whole-PR diff (base b07d114 to head 6b603e1) can be read.

Finishing Touches

Fix failing CI checks

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Linked repositories: Public OSS repositories can only analyze public repositories installed in this organization. No linked repositories were analyzed; skipped musescore/musescore.

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

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI (base), Organization UI (inherited)
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 572b7f9d-4d17-45c9-99fb-f1d73eb4a944
Commits

Reviewing files that changed from the base of the PR and between a5740b7 and 6b603e1.

Files selected for processing: 3

  • src/app/configs/high_contrast_black.cfg
  • src/app/configs/high_contrast_white.cfg
  • src/spectrogram/qml/Audacity/Spectrogram/SpectrogramChannelRuler.qml
Files with no reviewable changes: 2

  • src/app/configs/high_contrast_black.cfg
  • src/app/configs/high_contrast_white.cfg

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

@luapmartin luapmartin changed the title Make menu icons, the meter peak marker and timecode fields follow the theme UI tweaks around menu icons, meter peak marker and timecode Dec 1, 2026
@luapmartin luapmartin self-assigned this Dec 1, 2026
It had the light theme's font colour in every theme, so it was invisible
on the dark and high contrast black meters. Light looks the same, and
in high contrast it follows the "Text and icons" colour.

The meter_max_peak_marker_color theme key is no longer used and is
removed.

Assisted-by: Claude Fable 5.2
The Loop playback and track view icons were black in every theme.

Assisted-by: Claude Fable 5.2
Only the primary font colour was set, so the timecode, BPM, time
signature and frequency fields and the track rulers kept the theme's
default colour in high contrast.

Assisted-by: Claude Fable 5.2
@luapmartin
luapmartin force-pushed the luapmartin/theme-aware-menu-icons-and-peak-marker branch from 8740e46 to a5740b7 Compare December 2, 2026 16:27
The high contrast themes no longer set a guide colour, so the guide
follows "Text and icons" like the rest of the ruler.

Assisted-by: Claude Fable 5.2
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.

Menu icons, the meter peak marker and timecode fields ignore the theme colours

1 participant