mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-20 00:24:43 +02:00
added the links color wherever possible
This commit is contained in:
@@ -366,6 +366,12 @@ typedef enum : NSUInteger {
|
||||
*/
|
||||
@property (nonatomic) UIColor *sendingTextColor;
|
||||
|
||||
/**
|
||||
Color used to display links and hyperlinks contentt.
|
||||
Default is [UIColor linkColor].
|
||||
*/
|
||||
@property (nonatomic) UIColor *linksColor;
|
||||
|
||||
/**
|
||||
Color used to display error text.
|
||||
Default is red.
|
||||
|
||||
@@ -89,6 +89,7 @@ static NSString *const kHTMLATagRegexPattern = @"<a href=(?:'|\")(.*?)(?:'|\")>(
|
||||
_encryptingTextColor = [UIColor lightGrayColor];
|
||||
_sendingTextColor = [UIColor lightGrayColor];
|
||||
_errorTextColor = [UIColor redColor];
|
||||
_linksColor = [UIColor linkColor];
|
||||
_htmlBlockquoteBorderColor = [MXKTools colorWithRGBValue:0xDDDDDD];
|
||||
|
||||
_defaultTextFont = [UIFont systemFontOfSize:14];
|
||||
@@ -1749,7 +1750,7 @@ static NSString *const kHTMLATagRegexPattern = @"<a href=(?:'|\")(.*?)(?:'|\")>(
|
||||
if (url.URL)
|
||||
{
|
||||
[str addAttribute:NSLinkAttributeName value:url.URL range:matchRange];
|
||||
[str addAttribute:NSForegroundColorAttributeName value:[UIColor linkColor] range:matchRange];
|
||||
[str addAttribute:NSForegroundColorAttributeName value:self.linksColor range:matchRange];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user