Skip to content

Change the minimum width of the B&B editor#2808

Merged
tresf merged 1 commit into
LMMS:masterfrom
Umcaruje:fixbbwidth
Jul 5, 2016
Merged

Change the minimum width of the B&B editor#2808
tresf merged 1 commit into
LMMS:masterfrom
Umcaruje:fixbbwidth

Conversation

@Umcaruje

Copy link
Copy Markdown
Member

Adresses #2636 (comment)

Before:
screenshot from 2016-06-01 00 43 06

After:
screenshot from 2016-06-01 00 41 38

@RebeccaDeField

Copy link
Copy Markdown
Contributor

Perfect, thank you!

@IvanMaldonado

Copy link
Copy Markdown
Contributor

What happens when you add more steps?

@tresf

tresf commented Jun 1, 2016

Copy link
Copy Markdown
Member

Changing the default width for better sane defaults/cosmetic reasons versus changing the minimum width are two separate things. As long as we allow shorter step counts, shouldn't we allow smaller window sizes?

Edit: Looking at the code suggest this may be somewhat based on step size already. If that's the case, great.

@RebeccaDeField

RebeccaDeField commented Jun 1, 2016

Copy link
Copy Markdown
Contributor

@tresf I see what you are saying. I thought that making a minimum size would help with having just one less variable that made the BBeditor pixelated, but if it causes usability issues, then just making it default to the right size, while still allowing people to scale the window down could be a great solution too.

@tresf

tresf commented Jul 5, 2016

Copy link
Copy Markdown
Member

It's a benign change. We'll get more feedback when RC2 is release and it's easy enough to revert if people complain.

BTW, we're still dealing with magic numbers here... The value of 384 I assume is the width of the other components to the left such as the track label, etc. This WILL be problematic if anything changes size due to a theme, a higher resolution display, etc. The proper fix would be to eliminate the magic number completely.

@tresf tresf merged commit d84263e into LMMS:master Jul 5, 2016
@Umcaruje

Umcaruje commented Jul 5, 2016

Copy link
Copy Markdown
Member Author

The value of 384 I assume is the width of the other components to the left such as the track label

No, actually those are some hard-coded variables that are taken to account. The 384 is actually the width of a default B&B pattern (16 step pixmaps + the various spacing between them).

sdasda7777 pushed a commit to sdasda7777/lmms that referenced this pull request Jun 28, 2022
Change the minimum width of the B&B editor
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