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

Let themes put their own padding to text #1059

Closed
mildsunrise opened this issue Oct 23, 2012 · 9 comments
Closed

Let themes put their own padding to text #1059

mildsunrise opened this issue Oct 23, 2012 · 9 comments

Comments

@mildsunrise
Copy link

The 4px padding that is applied via the style="" attribute is disturbing for some themes.
Wouldn't it be nice to let the theme specify its own padding via CSS or an exported property?

Having the text only 4px away from the gutter is somewhat stressing, don't you think?

@mildsunrise
Copy link
Author

Related: #342 and #343

@nightwing
Copy link
Member

hmm, padding looks like something that should be controlled by themes, but setting it via css wouldn't work, exported property is better.
Are there any other settings that should be controlled by themes?

Having the text only 4px away from the gutter is somewhat stressing, don't you think?

never thought it to be stressing. How much do you want to increase it?

btw nice-ace theme sounds intriguing.

@mildsunrise
Copy link
Author

Well, it can be stressing if the gutter has a shadow or a border...
Then it's better to have more space. I'll post a screenshot.

I don't know of any other properties

PS: I've almost finished the first theme... :)

@mildsunrise
Copy link
Author

This is the second theme of the nice-ace collection,
called woodance (based on the first, ambiance).
Just a sketch, though... :) Click to see it in its full glory!

Woodance Pre

Look at the text and the gutter.
Couldn't be nice to add 2px more of space, for example?

@danyaPostfactum
Copy link
Contributor

I think a theme should not affect editor layout, but this is just IMHO.

@mildsunrise
Copy link
Author

I agree, themes shouldn't affect layout (order/disposition of elements)
but each theme has its spacing needs. (layout != spacing)

For example: it is not a theme's responsability to decide
wether invisible characters are shown, it's up to the user.

But it's a theme who must set which font to use,
which distance to have between icons and text,
between text and gutter, etc. It depends on the design.

@nightwing
Copy link
Member

woodance looks cool, great job!

there should be a way for themes to compensate for padding space taken up by gutter shadow
but i am not sure if setPadding is good enough for that
because it modifies right padding too
and it's not clear what should happen if setPading is called from somewhere else, and then theme without padding value is loaded, should it just reset to 4?

@mildsunrise
Copy link
Author

@nightwing Thanks!

Yes, I think it should reset to 4px, that's the default value.
It would be great if themes could control both paddings independently,
but I don't need so much.

@mildsunrise
Copy link
Author

@nightwing good work, thanks!

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

No branches or pull requests

3 participants