Fix track operations button alignment, size, and style - #7779
Conversation
Also makes it svg
Co-authored-by: Stakeout Punch <StakeoutPunch@users.noreply.github.com>
Github won't render it due to malformed medatada
65fb4b1 to
fdd147b
Compare
Classic theme is a little rounder
|
I'm surprised to see that this PR was chosen to cleanup the stylesheets. It's well overdue, but makes reviewing this PR a bit harder. For example, a choice was made to place each item on it's own line... Another choice was made to remove in-line comments and place them after lines that they were describing. This becomes almost comical when asked to follow our defacto rules is answered with this:
Well, please link the CSS rules in the style guidelines and we'll get the pointer logic added. Edit: pointer logic added. 😄 |
|
The CSS formatting was completely unintentional, Edit: |
|
Thanks I do think it's in need of a cleanup though. Happy to discuss in another PR if interested. |
Why is C like this, and why did C++ inherit it ahhhhhh
I can take a look at it later! (Without the "help" of the autoformatter, of course) |
|
I had voiced strong opposition on Discord to changing the gear from a flat icon to a button. I made a promise that I would shut up and NOT stop progress if everyone agreed on this aesthetic. 😆. With that said, I'll keep that promise and review it as-is. I tested this PR and it works well. - PixmapButton *m_soloBtn;
+ AutomatableButton* m_soloBtn;Out of morbid curiosity, I tried to automate these, but the UI didn't allow this. I assume this is deliberate, but it does bring to question... was this change done solely for stylistic reasons? I notice they light-up on hover now which is fantastic. From a testing perspective, I'm approving this. I saw that @messmerd started a code review, but if we could get his sign-off that would be greatly appreciated. |
Sorry, I forgot that it was already automatable based on class inheritance, I thought you were ADDING support, not REMOVING support but I made this observation based on the class-name alone, sorry for that!
Well, I think we found another macOS-specific issue This regression seems to be caused by #7325. Of course, before #7325, dragging was nearly unusable, but this means we now can't drag any pushbuttons on mac. I'll file a separate issue for this. Edit: Bug filed: |
|
@rubiefawn this should be good to merge once you fix the build failures. |
|
It's buggy when trying to automate two different solo buttons to "1" at the same time. Maybe we should hold off on making the solo buttons automatable? |
|
The solo buttons were already automatable (you can test this in 1.2 stable), they were previously |
messmerd
left a comment
There was a problem hiding this comment.
I don't know enough about CSS to comment on the CSS changes, but the C++ changes look fine to me.
I didn't notice any issues while testing it, and projects with automated buttons saved in previous versions of LMMS continue to work with this PR.
Make the track ops button consistently sized and style it and the solo & mute buttons using CSS instead of SVG assets

This changes the gear icon for tracks from a
.pngto a.svg, and makes it consistently sized with the new mute and solo buttons. It also makes the backgrounds for all three buttons purely CSS.Todo: