You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.2 KiB
46 lines
1.2 KiB
namespace LivreLand.View.ContentViews;
|
|
|
|
public partial class EmpruntsPretsButtonView : ContentView
|
|
{
|
|
public EmpruntsPretsButtonView()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
public void OnPretsClicked(object sender, EventArgs e)
|
|
{
|
|
if (App.Current.PlatformAppTheme == AppTheme.Light)
|
|
{
|
|
pretsClicked.BackgroundColor = Colors.Transparent;
|
|
pretsClicked.IsEnabled = false;
|
|
empruntsButton.BackgroundColor = Colors.White;
|
|
empruntsButton.IsEnabled = true;
|
|
}
|
|
else
|
|
{
|
|
pretsClicked.BackgroundColor = Colors.Transparent;
|
|
pretsClicked.IsEnabled = false;
|
|
empruntsButton.BackgroundColor = Colors.Black;
|
|
empruntsButton.IsEnabled = true;
|
|
}
|
|
}
|
|
|
|
public void OnEmpruntsClicked(object sender, EventArgs e)
|
|
{
|
|
if (App.Current.PlatformAppTheme == AppTheme.Light)
|
|
{
|
|
pretsClicked.BackgroundColor = Colors.White;
|
|
pretsClicked.IsEnabled = true;
|
|
empruntsButton.BackgroundColor = Colors.Transparent;
|
|
empruntsButton.IsEnabled = false;
|
|
}
|
|
else
|
|
{
|
|
pretsClicked.BackgroundColor = Colors.Black;
|
|
pretsClicked.IsEnabled = true;
|
|
empruntsButton.BackgroundColor = Colors.Transparent;
|
|
empruntsButton.IsEnabled = false;
|
|
}
|
|
|
|
}
|
|
} |