Skip to content

Add formatting to indicate state of sound preview toggle buttons#99

Closed
boxrocket6803 wants to merge 3 commits intoFacepunch:masterfrom
boxrocket6803:sound-preview-buttons
Closed

Add formatting to indicate state of sound preview toggle buttons#99
boxrocket6803 wants to merge 3 commits intoFacepunch:masterfrom
boxrocket6803:sound-preview-buttons

Conversation

@boxrocket6803
Copy link
Copy Markdown
Contributor

fixes #918

Loop and Auto-Play buttons in sound preview previously had no indication as to their state, this adds a stylish blue background to those buttons when they are enabled
image

@joshuascript
Copy link
Copy Markdown

Great tooltip icons.

Copy link
Copy Markdown
Member

@handsomematt handsomematt left a comment

Choose a reason for hiding this comment

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

Really bad way to do it, making a Bitmap and setting that as the new icon in Toggled...

It's nice but it'd need to be a common button style on the Toolbar.AddOption button, and override Paint instead

@boxrocket6803
Copy link
Copy Markdown
Contributor Author

Seemed like Toolbar and Option are all in native qt and a pain to mess with. Noticed I could just replace them all with IconButton instead though, feels cleaner
image

@handsomematt handsomematt added the triaged triaged pull-requests are replicated on the internal sbox repo label Dec 11, 2025
@sboxbot sboxbot added the accepted this pull request was accepted, hurrah! label Dec 12, 2025
@sboxbot
Copy link
Copy Markdown
Contributor

sboxbot commented Dec 12, 2025

This PR has been merged upstream.

@sboxbot sboxbot closed this Dec 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

accepted this pull request was accepted, hurrah! triaged triaged pull-requests are replicated on the internal sbox repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

State of loop and autoplay buttons in sound preview should be made more clear

5 participants