Add page text width option, and split margins #149
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The main feature of this PR is a new 'maximum text width' option, which helps enhance readability and makes kristall look a lot nicer! This feature should also work with most HTML pages fine
Example with default 900px width:
![image](https://user-images.githubusercontent.com/42143005/107840718-40736f00-6e09-11eb-9592-fec59eda67b7.png)
See 4eefb7d for implementation details of how this was done
The old layout is still available via a preference.
Additionally, the margins have been split into two preferences now; 'left/right', (horizontal) and 'top/bottom' (vertical). When using maximum text width as shown above, the horizontal margin is used when the window is smaller than the configured text width:
![image](https://user-images.githubusercontent.com/42143005/107840764-a9f37d80-6e09-11eb-8ba8-93a98d8571a6.png)
(note the 55px margin between the text and window edge)
Closes #91
Closes #44