mienaiyami / yomikiru

An offline desktop reader for manga, comics, and novels. Offers a customizable reading experience with extensive settings, shortcuts, themes and layouts. Manga reader / Manhwa reader / Webtoon Reader / EPUB Reader. **Not a downloader**
MIT License
223 stars 10 forks source link

Padding Type layout for epub, xhtml and txt #328

Open zeoint opened 4 months ago

zeoint commented 4 months ago

Type of reader (if reader related)

epub

Description of the new feature / enhancement

Reference For The Requested Feature - Padding Type Layout


1. For this type of layout there should be six new buttons / values in epub reader settings,

2. The border line should respect the border padding left and right value while Increasing / Decreasing Font Size and width.

https://github.com/mienaiyami/yomikiru/assets/127277950/13f3c034-fb7d-440b-9867-8b4a79bb47fe

3. Sample / Reference Image Of Reader Settings,

Layout


R1

Scenario when this would be used?

For reading epubs, xhtml with lesser eye strain. That layout also looks good.

Supporting information

I copied hex value of the colors used on the website and applied the same in yomikiru, but without the border and border outside bg color, it does not feel right.

github-actions[bot] commented 4 months ago

Thank you for your feedback and suggestions. Please note that the author might only respond on weekends, so we kindly ask for your patience and understanding.

zeoint commented 4 months ago

Only when the padding style is enabled the below 6 buttons should be editable, otherwise uneditable. Like color filters in image reader settings. Only when 'use color filters' button is enabled its below related options are editable.

mienaiyami commented 4 months ago

Will be adding it as low priority, so might take a long time before its implemented.

But you can use this css as temporary solution.

body #app #EPubReader section.main>.cont{ 
    border: 1px solid;
    border-color: red;
    padding-left:40px;
    padding-right:40px;
    background-color: grey;
}

add this to your existing custom .css file or create a new custom.css file with this text inside, and then set it using settings. Feel free to ask for help in setup.

mienaiyami commented 4 months ago

If you want to use background color from the reader setting, then do this.

#EPubReader > section{
   background:var(--body-bg-color);
}
body #app #EPubReader section.main>.cont{ 
    border: 1px solid;
    border-color: red;
    padding-left:40px;
    padding-right:40px;
}

and if you want border color to be same as font color replace with this

border-color: var(--epub-font-color);
zeoint commented 4 months ago

Cool, thanks. When you implement this, please remove the top and bottom margins as they are unnecessary. The left and right borders should touch the topbar and bottom of the page.


b1 b2

zeoint commented 4 months ago

A couple reminders for the purpose of clarity,

29

omodia commented 4 months ago

Nice Layout.