Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhanced quantize in PianoRoll #5946

Merged
merged 5 commits into from
Mar 16, 2021
Merged

Conversation

allejok96
Copy link
Contributor

  • Change Quantize button to alter both positions and lengths of notes
  • Put "Quantize positions" (the current functionality) in a dropdown menu
  • Add "Quantize lengths" to the dropdown
  • Style change for combinated button/dropdown menu

This is cherry picked from #5702.

bild

Styling bug?

I can't get styling of combined button/dropdown to work as I want. Maybe it's impossible to get the way I want, since the arrow is a subcontrol if the button. Qt CSS experts will understand. This is how styling of buttons with a menu arrow behaves currently:

Event Style of button Style of arrow
Hovering button hover hover
Clicking button pressed pressed
Hovering arrow hover pressed (!!!)
Clicking arrow pressed pressed

My solution is to let the arrow have the same style, no matter hover or press. This way it stands of from the main button when hovering it, but the weird behavior is not displayed.

@LmmsBot
Copy link

LmmsBot commented Mar 13, 2021

🤖 Hey, I'm @LmmsBot from github.com/lmms/bot and I made downloads for this pull request, click me to make them magically appear! 🎩

Windows

Linux

macOS

🤖
{"platform_name_to_artifacts": {"Windows": [{"artifact": {"title": {"title": "32-bit", "platform_name": "Windows"}, "link": {"link": "https://13050-15778896-gh.circle-artifacts.com/0/lmms-1.3.0-alpha.1.85%2Bg03e9a7d40-mingw-win32.exe"}}, "build_link": "https://circleci.com/gh/LMMS/lmms/13050?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link"}, {"artifact": {"title": {"title": "64-bit", "platform_name": "Windows"}, "link": {"link": "https://13049-15778896-gh.circle-artifacts.com/0/lmms-1.3.0-alpha.1.85%2Bg03e9a7d40-mingw-win64.exe"}}, "build_link": "https://circleci.com/gh/LMMS/lmms/13049?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link"}, {"artifact": {"title": {"title": "32-bit", "platform_name": "Windows"}, "link": {"link": "https://ci.appveyor.com/api/buildjobs/oaclcleb8k6b6i8j/artifacts/build/lmms-1.3.0-alpha-msvc2017-win32.exe"}}, "build_link": "https://ci.appveyor.com/project/Lukas-W/lmms/builds/38252221"}, {"artifact": {"title": {"title": "64-bit", "platform_name": "Windows"}, "link": {"link": "https://ci.appveyor.com/api/buildjobs/m4eld9bqaq8arsh6/artifacts/build/lmms-1.3.0-alpha-msvc2017-win64.exe"}}, "build_link": "https://ci.appveyor.com/project/Lukas-W/lmms/builds/38252221"}], "Linux": [{"artifact": {"title": {"title": "(AppImage)", "platform_name": "Linux"}, "link": {"link": "https://13047-15778896-gh.circle-artifacts.com/0/lmms-1.3.0-alpha.1.85%2Bg03e9a7d-linux-x86_64.AppImage"}}, "build_link": "https://circleci.com/gh/LMMS/lmms/13047?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link"}], "macOS": [{"artifact": {"title": {"title": "", "platform_name": "macOS"}, "link": {"link": "https://13046-15778896-gh.circle-artifacts.com/0/lmms-1.3.0-alpha.1.85%2Bg03e9a7d40-mac10.14.dmg"}}, "build_link": "https://circleci.com/gh/LMMS/lmms/13046?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link"}]}, "commit_sha": "98c2fcd6194118e9723f4f3973a466fe1dffde8e"}

@Spekular
Copy link
Member

Spekular commented Mar 13, 2021

Thanks for splitting this out. As a heads up to anyone else seeing this, the original PR is from before the PR freeze.

Copy link
Contributor

@IanCaio IanCaio left a comment

Choose a reason for hiding this comment

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

Code LGTM! CSS part I'm not very familiar with but at first glance looks fine, would like someone more experienced with that to take a look too.

@Spekular Spekular self-requested a review March 14, 2021 21:00
@IanCaio
Copy link
Contributor

IanCaio commented Mar 15, 2021

I just realized something: Could you update the Classic theme CSS Stylesheet as well?

Copy link
Member

@Spekular Spekular left a comment

Choose a reason for hiding this comment

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

LGTM, seems to work from a quick test as well.

@Spekular
Copy link
Member

As Ian points out, this probably needs an update for the Classic theme stylesheet as well. After that I'd like to merge it :)

@Spekular Spekular merged commit 0967ffb into LMMS:master Mar 16, 2021
@allejok96 allejok96 deleted the quantize-dropdown branch March 16, 2021 16:43
IanCaio pushed a commit to IanCaio/lmms that referenced this pull request Mar 28, 2021
* Button with menu has split highlight

* Add menu with more action to quantize button

* Style changes

* Fix CSS length-zero-no-unit warning

* Add combo button to classic theme
devnexen pushed a commit to devnexen/lmms that referenced this pull request Apr 10, 2021
* Button with menu has split highlight

* Add menu with more action to quantize button

* Style changes

* Fix CSS length-zero-no-unit warning

* Add combo button to classic theme
sdasda7777 pushed a commit to sdasda7777/lmms that referenced this pull request Jun 28, 2022
* Button with menu has split highlight

* Add menu with more action to quantize button

* Style changes

* Fix CSS length-zero-no-unit warning

* Add combo button to classic theme
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.

4 participants