Skip to content

Commit d3b2410

Browse files
Ajuste de colores.
1 parent c3d7af9 commit d3b2410

10 files changed

Lines changed: 36 additions & 33 deletions

File tree

UI/AppShell.xaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,13 @@
88
xmlns:helpers="clr-namespace:UI.Resources.Helpers"
99
Title="Tandil Bank"
1010
Shell.TabBarBackgroundColor="{AppThemeBinding Light=#FFFFFF, Dark=#1E1E1E}"
11-
Shell.TabBarTitleColor="#004a94"
12-
Shell.TabBarForegroundColor="#004a94"
11+
Shell.TabBarTitleColor="{StaticResource Primary}"
12+
Shell.TabBarForegroundColor="{StaticResource Primary}"
1313
Shell.TabBarUnselectedColor="Gray">
1414
<Shell.Resources>
1515
<ResourceDictionary>
16-
<Color x:Key="PrimaryColor">#005fb8</Color>
1716
<Style TargetType="Element" x:Key="BaseStyle">
18-
<Setter Property="Shell.BackgroundColor" Value="{StaticResource PrimaryColor}" />
17+
<Setter Property="Shell.BackgroundColor" Value="{StaticResource Primary}" />
1918
<Setter Property="Shell.ForegroundColor" Value="White" />
2019
<Setter Property="Shell.TitleColor" Value="White" />
2120
<Setter Property="Shell.DisabledColor" Value="#B4FFFFFF" />
@@ -26,7 +25,7 @@
2625
</Shell.Resources>
2726

2827
<Shell.FlyoutHeader>
29-
<Grid HeightRequest="150" BackgroundColor="#004a94" Padding="20">
28+
<Grid HeightRequest="150" BackgroundColor="{StaticResource Primary}" Padding="20">
3029
<VerticalStackLayout VerticalOptions="End" Spacing="5">
3130
<Image Source="logo_tandilbank.png" HeightRequest="60" HorizontalOptions="Start" />
3231
<Label Text="Tandil Bank" TextColor="White" FontAttributes="Bold" FontSize="18" />

UI/Resources/Styles/Colors.xaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@
55

66
<!-- Note: For Android please see also Platforms\Android\Resources\values\colors.xml -->
77

8-
<Color x:Key="Primary">#512BD4</Color>
8+
<Color x:Key="Primary">#004a94</Color>
99
<Color x:Key="PrimaryDark">#ac99ea</Color>
1010
<Color x:Key="PrimaryDarkText">#242424</Color>
11-
<Color x:Key="Secondary">#DFD8F7</Color>
11+
<Color x:Key="Secondary">#005fb8</Color>
1212
<Color x:Key="SecondaryDarkText">#9880e5</Color>
1313
<Color x:Key="Tertiary">#2B0B98</Color>
14-
14+
<Color x:Key="Acent">#0052CC</Color>
15+
1516
<Color x:Key="White">White</Color>
1617
<Color x:Key="Black">Black</Color>
1718
<Color x:Key="Magenta">#D600AA</Color>

UI/Views/Components/FloatingChatView.xaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@
1111
VerticalOptions="End"
1212
BackgroundColor="{AppThemeBinding Light=#F3F3F3, Dark=#1E1E1E}"
1313
StrokeShape="RoundRectangle 15"
14-
Stroke="#0052CC"
14+
Stroke="{StaticResource Acent}"
1515
StrokeThickness="2">
1616

1717
<Border.Shadow>
1818
<Shadow Brush="Black" Offset="0,10" Radius="20" Opacity="0.2"/>
1919
</Border.Shadow>
2020

2121
<Grid RowDefinitions="Auto, *, Auto">
22-
<Grid Grid.Row="0" BackgroundColor="#0052CC" Padding="15,5" ColumnDefinitions="*, Auto">
22+
<Grid Grid.Row="0" BackgroundColor="{StaticResource Acent}" Padding="15,5" ColumnDefinitions="*, Auto">
2323

2424
<Label Grid.Column="0"
2525
Text="🤖 Asistente Tandil Bank"
@@ -113,7 +113,7 @@
113113
Text=""
114114
Command="{Binding EnviarMensajeCommand}"
115115
BackgroundColor="Transparent"
116-
TextColor="#0052CC"
116+
TextColor="{StaticResource Primary}"
117117
FontAttributes="Bold"
118118
VerticalOptions="Center"/>
119119
</Grid>
@@ -123,10 +123,10 @@
123123

124124
<Button Text="🤖"
125125
Command="{Binding ActivarChatCommand}"
126-
FontSize="Medium"
126+
FontSize="20"
127127
WidthRequest="60" HeightRequest="60"
128128
CornerRadius="30"
129-
BackgroundColor="#0052CC"
129+
BackgroundColor="{StaticResource Primary}"
130130
HorizontalOptions="End"
131131
VerticalOptions="End"
132132
Shadow="{Shadow Brush=Black, Offset='0,4', Radius=5, Opacity=0.3}">

UI/Views/Pages/HomePage.xaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
<RefreshView x:Name="MiRefreshView"
1717
Refreshing="OnRefreshViewRefreshing"
18-
RefreshColor="#004a94"
18+
RefreshColor="{StaticResource Primary}"
1919
AbsoluteLayout.LayoutBounds="0, 0, 1, 1"
2020
AbsoluteLayout.LayoutFlags="All">
2121

@@ -40,7 +40,7 @@
4040

4141
<Border Grid.Column="1"
4242
IsVisible="{Binding IsGiftAvailable}"
43-
BackgroundColor="#005fb8"
43+
BackgroundColor="{StaticResource Secondary}"
4444
StrokeShape="RoundRectangle 8"
4545
Padding="15,8"
4646
VerticalOptions="Center">
@@ -109,8 +109,8 @@
109109
Text="Ver Detalle"
110110
Clicked="OnViewDetailsClicked"
111111
BackgroundColor="Transparent"
112-
TextColor="#005fb8"
113-
BorderColor="#005fb8"
112+
TextColor="{StaticResource Primary}"
113+
BorderColor="{StaticResource Primary}"
114114
BorderWidth="1"
115115
CornerRadius="8"
116116
HeightRequest="35"

UI/Views/Pages/LoadingPage.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
33
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
44
x:Class="UI.Views.Pages.LoadingPage"
5-
BackgroundColor="#004a94">
5+
BackgroundColor="{StaticResource Primary}">
66

77
<VerticalStackLayout HorizontalOptions="Center" VerticalOptions="Center" Spacing="30">
88

UI/Views/Pages/PaymentsPage.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
<Grid Grid.Row="2" Margin="0,5,0,0">
112112

113113
<Button Text="Pagar Ahora"
114-
BackgroundColor="#005fb8"
114+
BackgroundColor="{StaticResource Primary}"
115115
TextColor="White"
116116
FontAttributes="Bold"
117117
CornerRadius="22"

UI/Views/Pages/SettingsPage.xaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
<Border Grid.Column="0" WidthRequest="60" HeightRequest="60"
4242
StrokeShape="RoundRectangle 30"
43-
BackgroundColor="#005fb8"
43+
BackgroundColor="{StaticResource Primary}"
4444
Stroke="Transparent">
4545
<Label Text="{Binding Initials}"
4646
TextColor="White" FontSize="24" FontAttributes="Bold"
@@ -66,8 +66,8 @@
6666
<Button Grid.Column="2"
6767
Text="Editar"
6868
BackgroundColor="Transparent"
69-
TextColor="#005fb8"
70-
BorderColor="#005fb8"
69+
TextColor="{StaticResource Primary}"
70+
BorderColor="{StaticResource Primary}"
7171
BorderWidth="1"
7272
CornerRadius="8"
7373
HeightRequest="40"
@@ -95,7 +95,7 @@
9595
<Label Text="Modo Oscuro" FontAttributes="Bold" TextColor="{AppThemeBinding Light=Black, Dark=White}"/>
9696
<Label Text="Cambiar la apariencia de la aplicación" FontSize="12" TextColor="Gray"/>
9797
</VerticalStackLayout>
98-
<Switch Grid.Column="1" IsToggled="{Binding IsDarkMode}" OnColor="#005fb8" Toggled="OnThemeSwitchToggled"/>
98+
<Switch Grid.Column="1" IsToggled="{Binding IsDarkMode}" OnColor="{StaticResource Primary}" Toggled="OnThemeSwitchToggled"/>
9999
</Grid>
100100

101101
<BoxView HeightRequest="1" Color="{AppThemeBinding Light=#E5E5E5, Dark=#333333}" />
@@ -105,7 +105,7 @@
105105
<Label Text="Notificaciones" FontAttributes="Bold" TextColor="{AppThemeBinding Light=Black, Dark=White}"/>
106106
<Label Text="Recibir alertas de transferencias y pagos" FontSize="12" TextColor="Gray"/>
107107
</VerticalStackLayout>
108-
<Switch Grid.Column="1" IsToggled="{Binding NotificationsEnabled}" OnColor="#005fb8"/>
108+
<Switch Grid.Column="1" IsToggled="{Binding NotificationsEnabled}" OnColor="{StaticResource Primary}"/>
109109
</Grid>
110110

111111
</VerticalStackLayout>

UI/Views/Pages/TransferPage.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
<HorizontalStackLayout Spacing="15" Margin="0,0,0,15" HorizontalOptions="Center">
4343
<Border WidthRequest="50" HeightRequest="50" StrokeShape="RoundRectangle 25"
4444
BackgroundColor="#EDF2FA" Stroke="Transparent">
45-
<Label Text="" TextColor="#005fb8" FontSize="24"
45+
<Label Text="" TextColor="{StaticResource Primary}" FontSize="24"
4646
HorizontalOptions="Center" VerticalOptions="Center" FontAttributes="Bold"/>
4747
</Border>
4848
<VerticalStackLayout VerticalOptions="Center">

UI/Views/SignInPage.xaml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
<Button Text="Ingresar de forma segura"
6565
Command="{Binding SignInCommand}"
6666
CommandParameter="{Binding Source={x:Reference TxtPasswordLogin}, Path=Text}"
67-
BackgroundColor="#005fb8"
67+
BackgroundColor="{StaticResource Primary}"
6868
TextColor="White"
6969
FontAttributes="Bold"
7070
CornerRadius="8"
@@ -74,16 +74,19 @@
7474
<Button Text="Entrar con Huella"
7575
Command="{Binding BiometricLoginCommand}"
7676
BackgroundColor="Transparent"
77-
TextColor="#003a94"
77+
TextColor="{StaticResource Primary}"
7878
FontAttributes="Bold"
79+
BorderColor="{StaticResource Secondary}"
80+
BorderWidth="1"
7981
Margin="0,10,0,0"
82+
CornerRadius="8"
8083
IsEnabled="{Binding ShowWelcomeMessage}"
81-
IsVisible="{OnPlatform WinUI=False, Default=True}"/>
84+
IsVisible="{OnIdiom Desktop=False, Default=True}"/>
8285

8386
<Button Text="Quiero registrarme"
8487
Command="{Binding NavigateToSignUpCommand}"
8588
BackgroundColor="Transparent"
86-
TextColor="#005fb8"
89+
TextColor="{StaticResource Secondary}"
8790
FontAttributes="Bold"
8891
Margin="0,8,0,0"/>
8992

@@ -109,7 +112,7 @@
109112
<VerticalStackLayout HorizontalOptions="Center" VerticalOptions="Center" Spacing="15">
110113

111114
<ActivityIndicator IsRunning="{Binding IsBusy}"
112-
Color="#005fb8"
115+
Color="{StaticResource Primary}"
113116
WidthRequest="60"
114117
HeightRequest="60" />
115118

UI/Views/SignUpPage.xaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
<Button Text="Crear mi cuenta"
6363
Command="{Binding RegisterCommand}"
6464
CommandParameter="{Binding Source={x:Reference TxtPasswordRegister}, Path=Text}"
65-
BackgroundColor="#005fb8"
65+
BackgroundColor="{StaticResource Primary}"
6666
TextColor="White"
6767
FontAttributes="Bold"
6868
CornerRadius="8"
@@ -72,7 +72,7 @@
7272
<Button Text="¿Ya tenés cuenta? Iniciá sesión acá"
7373
Command="{Binding NavigateToSignInCommand}"
7474
BackgroundColor="Transparent"
75-
TextColor="#005fb8"
75+
TextColor="{StaticResource Secondary}"
7676
FontAttributes="Bold"
7777
Margin="0,8,0,0"/>
7878

@@ -89,7 +89,7 @@
8989
<VerticalStackLayout HorizontalOptions="Center" VerticalOptions="Center" Spacing="15">
9090

9191
<ActivityIndicator IsRunning="{Binding IsBusy}"
92-
Color="#005fb8"
92+
Color="{StaticResource Primary}"
9393
WidthRequest="60"
9494
HeightRequest="60" />
9595

0 commit comments

Comments
 (0)