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:
@@ -42,7 +42,12 @@ namespace Wino.Core.UWP.Services
|
||||
}
|
||||
|
||||
public MailRenderingOptions GetRenderingOptions()
|
||||
=> new MailRenderingOptions() { LoadImages = RenderImages, LoadStyles = RenderStyles };
|
||||
=> new MailRenderingOptions()
|
||||
{
|
||||
LoadImages = RenderImages,
|
||||
LoadStyles = RenderStyles,
|
||||
RenderPlaintextLinks = RenderPlaintextLinks
|
||||
};
|
||||
|
||||
public MailListDisplayMode MailItemDisplayMode
|
||||
{
|
||||
@@ -92,6 +97,12 @@ namespace Wino.Core.UWP.Services
|
||||
set => SetPropertyAndSave(nameof(RenderStyles), value);
|
||||
}
|
||||
|
||||
public bool RenderPlaintextLinks
|
||||
{
|
||||
get => _configurationService.Get(nameof(RenderPlaintextLinks), true);
|
||||
set => SetPropertyAndSave(nameof(RenderPlaintextLinks), value);
|
||||
}
|
||||
|
||||
public bool RenderImages
|
||||
{
|
||||
get => _configurationService.Get(nameof(RenderImages), true);
|
||||
|
||||
Reference in New Issue
Block a user