Skip to content
This repository has been archived by the owner on Nov 13, 2021. It is now read-only.

setting text alignment in options #2

Open
benaryorg opened this issue Nov 25, 2018 · 2 comments
Open

setting text alignment in options #2

benaryorg opened this issue Nov 25, 2018 · 2 comments

Comments

@benaryorg
Copy link

It would be great if one could set the horizontalAlignment in the settings.
Preferably as a dropdown with all the settings from the documentation:

Text.AlignLeft, Text.AlignRight, Text.AlignHCenter and Text.AlignJustify

I tested this already (although hardcoded to Text.AlignJustify) by setting the horizontalAlignment for the Label over there:

Label {
//http://doc.qt.io/qt-5/qtextdocument.html#defaultStyleSheet-prop
id: textArea
x: Theme.horizontalPageMargin
width: parent.width - 2*x

@fuchsmich
Copy link
Owner

Hi @benaryorg

Justify works, but Center and Right break pages with long lines like the cheatsheet.

https://github.com/fuchsmich/notizenmd/tree/horalign

@benaryorg
Copy link
Author

I see.
Seems to be just the code blocks there though, I got some very long lines in my files and the word-wrap works just fine.
There is no proper handling for such long lines in either mode though, right?

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

No branches or pull requests

2 participants