Fix html labels colors issue (#1516) (#1603)

This commit is contained in:
Federico Maccaroni 2021-10-25 16:28:14 -03:00 committed by GitHub
parent 99ccd62bcd
commit a07ef1a1d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 12 additions and 8 deletions

View file

@ -68,8 +68,7 @@
<controls:MonoLabel LineBreakMode="CharacterWrap"
Grid.Column="0"
Grid.Row="0"
StyleClass="list-title, list-title-platform"
TextType="Html"
StyleClass="list-title, list-title-platform, text-html"
Text="{Binding Password, Mode=OneWay, Converter={StaticResource coloredPassword}}" />
<Label LineBreakMode="TailTruncation"
Grid.Column="0"

View file

@ -63,10 +63,9 @@
</Frame>
</Grid>
<controls:MonoLabel
StyleClass="text-lg, text-html"
Text="{Binding ColoredPassword, Mode=OneWay}"
TextType="Html"
Margin="0, 20"
StyleClass="text-lg"
HorizontalTextAlignment="Center"
HorizontalOptions="CenterAndExpand"
LineBreakMode="CharacterWrap" />

View file

@ -59,8 +59,7 @@
<controls:MonoLabel LineBreakMode="CharacterWrap"
Grid.Column="0"
Grid.Row="0"
StyleClass="list-title, list-title-platform"
TextType="Html"
StyleClass="list-title, list-title-platform, text-html"
Text="{Binding Password, Mode=OneWay, Converter={StaticResource coloredPassword}}" />
<Label LineBreakMode="TailTruncation"
Grid.Column="0"

View file

@ -120,8 +120,7 @@
IsVisible="{Binding ShowPassword, Converter={StaticResource inverseBool}}" />
<controls:MonoLabel
Text="{Binding ColoredPassword, Mode=OneWay}"
TextType="Html"
StyleClass="box-value"
StyleClass="box-value, text-html"
Grid.Row="1"
Grid.Column="0"
LineBreakMode="CharacterWrap"

View file

@ -59,6 +59,14 @@
<Setter Property="FontAttributes"
Value="Bold" />
</Style>
<Style TargetType="Label"
Class="text-html"
ApplyToDerivedTypes="True">
<Setter Property="TextColor"
Value="Default" />
<Setter Property="TextType"
Value="Html" />
</Style>
<!-- Pages -->
<Style TargetType="TabbedPage"