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

Add padding to titlebar #2320

Closed
nmiculinic opened this issue Apr 24, 2016 · 4 comments
Closed

Add padding to titlebar #2320

nmiculinic opened this issue Apr 24, 2016 · 4 comments

Comments

@nmiculinic
Copy link

Idea is supporting padding into the title bar, that is for pango rendered text has some padding pixels around it. Pango has information how big is the space it occupies:

Glib::RefPtr<Pango::Layout> layout = Pango::Layout::create(cr);
layout->set_text("hello world");
int stringWidth, stringHeight;
layout->get_pixel_size(stringWidth, stringHeight);

Proposed syntax would be similar to CSS, that is:
title_padding
title_padding <top&bottom> <left & right>
title_padding

@i3bot i3bot added missing-log Read the CONTRIBUTING.md file for instructions missing-version labels Apr 24, 2016
@Airblader
Copy link
Member

Can't you just use this?

title_format "        %title"

@Airblader Airblader added enhancement 4.12 and removed missing-log Read the CONTRIBUTING.md file for instructions missing-version labels Apr 24, 2016
@nmiculinic
Copy link
Author

nmiculinic commented Apr 25, 2016

I can use is as hacky way of achieving left padding, however it is not an option for vertical padding.

Also this is tangentaly related to #1750 since my original intentions were having text centered (not caring about marks that much).

For vertical padding I've tried another hack found here:

for_window [class=".*"] title_format "<span size="smaller">%title</span>"

though every time I put size=<something> whole title text disappears.

@Airblader
Copy link
Member

I think overall there doesn't seem to be a compelling reason for adding this that fits the philosophy of i3. I'm going to close this for now, but if someone has good reasons as for why we should add this I will consider reopening it.

@ghost
Copy link

ghost commented Mar 9, 2017

@Airblader Could this be in i3-gaps?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants