The Following User Says Thank You to Markkyboy For This Useful Post: | ||
|
2018-07-09
, 17:19
|
|
Posts: 433 |
Thanked: 727 times |
Joined on Oct 2012
@ Costa Blanca, Espaņa
|
#2542
|
@Markkyboy
I do prefer to increase the font size for text mail:
/usr/share/jolla-email/pages/PlainTextViewer.qml
from:
to:Code:font.pixelSize: Screen.sizeCategory >= Screen.Large ? Theme.fontSizeSmall : Theme.fontSizeExtraSmall
Code:font.pixelSize: Screen.sizeCategory >= Screen.Large ? Theme.fontSizeMedium : Theme.fontSizeSmall
Some time before, there was one option more in silica webview to change:
/usr/lib/qt5/qml/Sailfish/Silica/SilicaWebView.qml
from:
to:Code:color: webView.experimental.transparentBackground ? "transparent" : "white"
but since last update it may not necessary anymore.Code:color: webView.experimental.transparentBackground ? "transparent" : "transparent"
I will try you're css file, because mine is very different. I'm exited. Thanks a lot for doing this job done!
I made also some changes on the htmlViewer component, because some emails got rendered totally unreadable, therefore I did the following changes:
/usr/share/jolla-email/pages/HtmlViewer.qml
from:
Code:// Respect viewport meta tag if exists if (!hasViewportMetaTag(htmlBody)) { // This affects only to layouts that do not have width defined in body content. // Smaller content layout gets scaled up to WebView's width. Basically meaning that // html text emails will get scaled up by factor (1.5*Theme.pixelRatio) rounded to nearest half. // With higher scale factor content layouts starts touching edges of WebView and that hinders // legibility. Thus, this 1.5 base factor. var scale = Math.round((1.5 * Theme.pixelRatio) / .5) * .5 experimental.customLayoutWidth = width / scale } else { experimental.customLayoutWidth = width } // reload html loadHtml(htmlBody, "file:///usr/share/jolla-email") }
to:
Code:// Respect viewport meta tag if exists //if (!hasViewportMetaTag(htmlBody)) { // This affects only to layouts that do not have width defined in body content. // Smaller content layout gets scaled up to WebView's width. Basically meaning that // html text emails will get scaled up by factor (1.5*Theme.pixelRatio) rounded to nearest half. // With higher scale factor content layouts starts touching edges of WebView and that hinders // legibility. Thus, this 1.5 base factor. //var scale = Math.round((1.5 * Theme.pixelRatio) / .5) * .5 //experimental.customLayoutWidth = webView.width / scale //} else { experimental.customLayoutWidth = 350 //} // reload html //loadHtml(htmlBody, "file:///usr/share/jolla-email") webView.loadHtml(htmlBody, "file:///usr/share/jolla-email") onScreen = true }
The Following User Says Thank You to Markkyboy For This Useful Post: | ||
|
2018-07-09
, 18:09
|
Posts: 16 |
Thanked: 23 times |
Joined on Jan 2016
|
#2543
|
The Following User Says Thank You to kneeli For This Useful Post: | ||
|
2018-07-09
, 18:11
|
Posts: 16 |
Thanked: 23 times |
Joined on Jan 2016
|
#2544
|
Thanks kneeli, I will certainly look into making the changes you suggest. Please refer to the original post on TJC, as the original data is not mine or written by me;
The Following 3 Users Say Thank You to kneeli For This Useful Post: | ||
|
2018-07-09
, 19:00
|
|
Posts: 433 |
Thanked: 727 times |
Joined on Oct 2012
@ Costa Blanca, Espaņa
|
#2545
|
The Following User Says Thank You to Markkyboy For This Useful Post: | ||
|
2018-07-09
, 20:07
|
Posts: 16 |
Thanked: 23 times |
Joined on Jan 2016
|
#2546
|
Lol, fair enough, the username wasn't familiar
The Following 2 Users Say Thank You to kneeli For This Useful Post: | ||
|
2018-07-09
, 20:22
|
|
Posts: 433 |
Thanked: 727 times |
Joined on Oct 2012
@ Costa Blanca, Espaņa
|
#2547
|
Maybe I'm bit paranoid, I do use my password generator for usernames as well O:-)
The Following 3 Users Say Thank You to Markkyboy For This Useful Post: | ||
|
2018-07-10
, 06:59
|
|
Posts: 6,436 |
Thanked: 12,701 times |
Joined on Nov 2011
@ Ängelholm, Sweden
|
#2548
|
The Following 2 Users Say Thank You to coderus For This Useful Post: | ||
|
2018-07-10
, 06:59
|
|
Posts: 6,436 |
Thanked: 12,701 times |
Joined on Nov 2011
@ Ängelholm, Sweden
|
#2549
|
The Following 3 Users Say Thank You to coderus For This Useful Post: | ||
|
2018-07-10
, 08:36
|
|
Posts: 433 |
Thanked: 727 times |
Joined on Oct 2012
@ Costa Blanca, Espaņa
|
#2550
|
@Markkyboy
I do prefer to increase the font size for text mail:
/usr/share/jolla-email/pages/PlainTextViewer.qml
from:
to:Code:font.pixelSize: Screen.sizeCategory >= Screen.Large ? Theme.fontSizeSmall : Theme.fontSizeExtraSmall
Code:font.pixelSize: Screen.sizeCategory >= Screen.Large ? Theme.fontSizeMedium : Theme.fontSizeSmall
Some time before, there was one option more in silica webview to change:
/usr/lib/qt5/qml/Sailfish/Silica/SilicaWebView.qml
from:
to:Code:color: webView.experimental.transparentBackground ? "transparent" : "white"
but since last update it may not necessary anymore.Code:color: webView.experimental.transparentBackground ? "transparent" : "transparent"
I will try you're css file, because mine is very different. I'm exited. Thanks a lot for doing this job done!
I made also some changes on the htmlViewer component, because some emails got rendered totally unreadable, therefore I did the following changes:
/usr/share/jolla-email/pages/HtmlViewer.qml
from:
Code:// Respect viewport meta tag if exists if (!hasViewportMetaTag(htmlBody)) { // This affects only to layouts that do not have width defined in body content. // Smaller content layout gets scaled up to WebView's width. Basically meaning that // html text emails will get scaled up by factor (1.5*Theme.pixelRatio) rounded to nearest half. // With higher scale factor content layouts starts touching edges of WebView and that hinders // legibility. Thus, this 1.5 base factor. var scale = Math.round((1.5 * Theme.pixelRatio) / .5) * .5 experimental.customLayoutWidth = width / scale } else { experimental.customLayoutWidth = width } // reload html loadHtml(htmlBody, "file:///usr/share/jolla-email") }
to:
Code:// Respect viewport meta tag if exists //if (!hasViewportMetaTag(htmlBody)) { // This affects only to layouts that do not have width defined in body content. // Smaller content layout gets scaled up to WebView's width. Basically meaning that // html text emails will get scaled up by factor (1.5*Theme.pixelRatio) rounded to nearest half. // With higher scale factor content layouts starts touching edges of WebView and that hinders // legibility. Thus, this 1.5 base factor. //var scale = Math.round((1.5 * Theme.pixelRatio) / .5) * .5 //experimental.customLayoutWidth = webView.width / scale //} else { experimental.customLayoutWidth = 350 //} // reload html //loadHtml(htmlBody, "file:///usr/share/jolla-email") webView.loadHtml(htmlBody, "file:///usr/share/jolla-email") onScreen = true }
The Following User Says Thank You to Markkyboy For This Useful Post: | ||
Tags |
patchmanager, sailfish os |
|
This is not a case of admonishing myself of any responsibility, but I took the given files and with some messing around, made a working patch
So, you tell me why that file didn't need patching?
..oO(Don't just sit there standing around, pick up a shovel and sweep up!)Oo..