Skip to content

Adding vertical content alignment control.#684

Merged
tsipinakis merged 4 commits intodunst-project:masterfrom
chronus7:master
Jan 30, 2020
Merged

Adding vertical content alignment control.#684
tsipinakis merged 4 commits intodunst-project:masterfrom
chronus7:master

Conversation

@chronus7
Copy link
Contributor

This adds the option content_alignment, which allows the user to set the vertical alignment of the notification's content (i.e. icon and
text) to either:

  • top (CONTENT_TOP),
  • center (CONTENT_CENTER, default), or
  • bottom (CONTENT_BOT).

The default preserves current behaviour, while the other options fulfill #486.

I am open to any suggestions or comments regarding naming and/or code-style.

This adds the option `content_alignment`, which allows the user to set
the vertical alignment of the notification's content (i.e. icon and
text) to either top (`CONTENT_TOP`), center (`CONTENT_CENTER`, default),
or bottom (`CONTENT_BOT`). The default preserves current behaviour,
while the other options fulfill #486.
@tsipinakis
Copy link
Member

tsipinakis commented Jan 26, 2020

Thanks for adding this! I'm a bit busy at the moment, you can expect a review around Wednesday.

From a very quick glance you also need to add the new setting to the dunstrc and to docs/dunst.pod.

@chronus7
Copy link
Contributor Author

Thanks for adding this! I'm a bit busy at the moment, you can expect a review around Wednesday.

Sure, no stress. :)

From a very quick glance you also need to add the new setting to the dunstrc and to docs/dunst.pod.

Ah, makes sense. I will look into it and update accordingly.

Copy link
Member

@tsipinakis tsipinakis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am open to any suggestions or comments regarding [..] code-style.

Since you mentioned that I'll leave in some of the code-style nitpicks :)

Other than the few small notes this looks good, couldn't find a way to break it 👍

- adding default to config.h#defaults
- changing naming from content_* to vertical_*
- replacing switch-case with if-else-if
@tsipinakis tsipinakis merged commit dfd6e76 into dunst-project:master Jan 30, 2020
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.

2 participants