Implement clickable plaintext links and dark mode fix (#488)
* Plaintext links are now clickable and fixes dark mode. - Change `AppxPackageDir` path from `C:\Users\bkaan\Desktop\Packages\` to `$(USERPROFILE)\Desktop\Packages\`, fixes error when building release. - Plaintext links are now clickable, and match the same subtle style as Windows Mail. - Remove `!important` from inline styles to allow Dark Reader to properly recolor the element. * Implement setting for clickable plaintext link
This commit is contained in:
@@ -93,6 +93,11 @@ namespace Wino.Core.Domain.Interfaces
|
||||
/// </summary>
|
||||
bool RenderStyles { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Setting: Set whether plaintext links should be automatically converted to clickable links.
|
||||
/// </summary>
|
||||
bool RenderPlaintextLinks { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the preferred rendering options for HTML rendering.
|
||||
/// </summary>
|
||||
|
||||
@@ -7,9 +7,11 @@
|
||||
{
|
||||
private const bool DefaultLoadImageValue = true;
|
||||
private const bool DefaultLoadStylesValue = true;
|
||||
private const bool DefaultRenderPlaintextLinksValue = true;
|
||||
|
||||
public bool LoadImages { get; set; } = DefaultLoadImageValue;
|
||||
public bool LoadStyles { get; set; } = DefaultLoadStylesValue;
|
||||
public bool RenderPlaintextLinks { get; set; } = DefaultRenderPlaintextLinksValue;
|
||||
|
||||
// HtmlDocument.Load call is redundant if all the settings are in default values.
|
||||
// Therefore we will purify the HTML only if needed.
|
||||
|
||||
@@ -484,6 +484,7 @@
|
||||
"SettingsLinkedAccountsSave_Title": "Save Changes",
|
||||
"SettingsLoadImages_Title": "Load images automatically",
|
||||
"SettingsLoadStyles_Title": "Load styles automatically",
|
||||
"SettingsLoadPlaintextLinks_Title": "Convert plaintext links to clickable links",
|
||||
"SettingsMailSpacing_Description": "Adjust the spacing for listing mails.",
|
||||
"SettingsMailSpacing_Title": "Mail Spacing",
|
||||
"SettingsFolderMenuStyle_Title": "Create Nested Folders",
|
||||
|
||||
Reference in New Issue
Block a user