mirror of
https://github.com/bitwarden/mobile
synced 2025-12-10 21:33:36 +00:00
* [PS-1707] Changed the callout color to a Theme Color * [PS-1707] Changed color defaults to defined colors * [PS-1707] Added an effect to change the switch hint color to a theme color * [PS-1707] Removed HintColorSwitchEffect and added the content to the CustomSwitchRenderer to affect all switches and update on theme change
26 lines
922 B
C#
26 lines
922 B
C#
using Xamarin.Forms;
|
|
|
|
namespace Bit.App.Controls
|
|
{
|
|
public class ExtendedStepper : Stepper
|
|
{
|
|
public static readonly BindableProperty StepperBackgroundColorProperty = BindableProperty.Create(
|
|
nameof(StepperBackgroundColor), typeof(Color), typeof(ExtendedStepper), Color.White);
|
|
|
|
public static readonly BindableProperty StepperForegroundColorProperty = BindableProperty.Create(
|
|
nameof(StepperForegroundColor), typeof(Color), typeof(ExtendedStepper), Color.Black);
|
|
|
|
public Color StepperBackgroundColor
|
|
{
|
|
get => (Color)GetValue(StepperBackgroundColorProperty);
|
|
set => SetValue(StepperBackgroundColorProperty, value);
|
|
}
|
|
|
|
public Color StepperForegroundColor
|
|
{
|
|
get => (Color)GetValue(StepperForegroundColorProperty);
|
|
set => SetValue(StepperForegroundColorProperty, value);
|
|
}
|
|
}
|
|
}
|