Aegisub icon indicating copy to clipboard operation
Aegisub copied to clipboard

Adjust the default (=minimum) width of the style editor

Open 0tkl opened this issue 2 weeks ago • 5 comments

Before: before

After: after

0tkl avatar Dec 05 '25 19:12 0tkl

After thinking for a while longer, I considered deeper questions which confused me again. What behavior do we expect the dialog box to exhibit when it is "stretched and widened"? I feel that the behavior prior to this PR, scaling these two spinboxes proportionally to the combobox, is reasonable.

0tkl avatar Dec 06 '25 17:12 0tkl

I was barking up the wrong tree :-(

0tkl avatar Dec 06 '25 17:12 0tkl

The code is ready for review, although the commit message appears verbose and warrants discussion. Perhaps a more concise explanation of the rationale behind this change could be provided.

0tkl avatar Dec 13 '25 18:12 0tkl

I actually prefer the suggestion you had before, i.e. just giving the combobox a proportion of 0 and making only the two spin controls expand with the dialog. That helps visually separate the combobox from the spin controls a bit, and is more likely to be what the user wants.

And yes, I'm not really a fan of overly verbose LLM-generated commit messages. Commit messages should explain why a change was made (like e.g. what bugs it fixes) and why a specific solution was chosen over other options, but they don't need to explain the code itself - if the code needs to be explained, that should happen in comments.

arch1t3cht avatar Dec 14 '25 13:12 arch1t3cht

The appearance at various proportions are presented hereby to shed the burden of commit messages by referencing this comment.

Default Stretched
(Before our PR) spinCtrl and non-editable comboBox proportion = 1 1a 1b
spinCtrl and non-editable comboBox proportion = 0 2a 2b
spinCtrl proportion = 1, non-editable comboBox proportion = 0 3b
spinCtrl proportion = 0, non-editable comboBox proportion = 1 4a 4b
spinCtrl and non-editable comboBox proportion = bestWidth 5b
Border style comboBox proportion = 0, anything else proportion = 1 6b

0tkl avatar Dec 14 '25 20:12 0tkl