mirror of
https://github.com/bitwarden/mobile.git
synced 2025-02-28 03:12:31 +01:00
PM-3349 Fix for HTML Label on Android. Color hex doesn't need to be cropped anymore.
This commit is contained in:
parent
363da063fa
commit
0e75f3f5c8
@ -27,11 +27,9 @@ namespace Bit.App.Utilities
|
|||||||
return string.Empty;
|
return string.Empty;
|
||||||
}
|
}
|
||||||
|
|
||||||
// First two digits of returned hex code contains the alpha,
|
var normalColor = $"<span style=\"color:{ThemeManager.GetResourceColor("TextColor").ToHex()}\">";
|
||||||
// which is not supported in HTML color, so we need to cut those out.
|
var numberColor = $"<span style=\"color:{ThemeManager.GetResourceColor("PasswordNumberColor").ToHex()}\">";
|
||||||
var normalColor = $"<span style=\"color:#{ThemeManager.GetResourceColor("TextColor").ToHex().Substring(3)}\">";
|
var specialColor = $"<span style=\"color:{ThemeManager.GetResourceColor("PasswordSpecialColor").ToHex()}\">";
|
||||||
var numberColor = $"<span style=\"color:#{ThemeManager.GetResourceColor("PasswordNumberColor").ToHex().Substring(3)}\">";
|
|
||||||
var specialColor = $"<span style=\"color:#{ThemeManager.GetResourceColor("PasswordSpecialColor").ToHex().Substring(3)}\">";
|
|
||||||
var result = string.Empty;
|
var result = string.Empty;
|
||||||
|
|
||||||
// iOS won't hide the zero-width space char without these div attrs, but Android won't respect
|
// iOS won't hide the zero-width space char without these div attrs, but Android won't respect
|
||||||
|
Loading…
Reference in New Issue
Block a user