-
Notifications
You must be signed in to change notification settings - Fork 7.6k
[Themes] Default line spacing is larger after Themes landed #8393
Comments
@peterflynn I bumped it to 1.4. There didn't seem to be a value. Is there a value that we should be using? |
On earlier master, in brackets_themes_default.less the |
And actually it's still there on master now: https://github.com/adobe/brackets/blob/master/src/styles/brackets_theme_default.less#L148. So I guess that's getting overridden somewhere else? |
@peterflynn Yeah it does get overridden. We are actually moving those settings to the new fonts API #8305 So, I will make sure to have 1.25 in there. That value seems pretty low... If I make another pull request right now to change the lineheight, there might be conflict with #8382 Want me to still make a pull request to change this to 1.25 or want me to wait? |
As long as we land a fix before 0.42 ships, I think you can wait until the conflicting PR lands. Although it looks like #8305 codifies the "1.4" multiplier in a constant, so maybe we can just change the value directly in that PR, instead of a separate follow-on later? I assume the "1.4" is also present elsewhere though, since I don't see any "1.4"s being deleted in that PR yet that's already the line-height... so we might also want to clean up any redundant CSS values if #8305 means they'll always be overridden by values coming from prefs. |
@peterflynn Removing it from the CSS is a good idea. I will make sure to take of that in the fonts PR. |
I do think we should stick with 1.25 though -- it's what Brackets has used for years. |
@peterflynn Perfect. I will just make a PR right now. It's real trivial change. I will make sure to remove the CSS cleanup once we transition to the fonts API |
Great -- thanks! |
@peterflynn You bet! :) |
Closing this one... Fixed here #8400 |
Or @peterflynn you can probably close this one :) |
Confirmed fixed. But note that #8305 will regress this bug if merged as-is -- we need to remember to update the line-height value there too. |
@peterflynn Yup, that's definitely in my honey todo list :D |
Result: line spacing has gotten looser. Distance between baselines is now 16px; previously was 15px. (On a MBP-sized screen, this translates into 3 fewer lines of code visible).
The text was updated successfully, but these errors were encountered: