2019-06-03 18:26:16 +03:00
|
|
|
|
using Bit.App.Resources;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using Xamarin.Forms;
|
|
|
|
|
|
|
|
|
|
namespace Bit.App.Pages
|
2019-05-14 18:53:41 +03:00
|
|
|
|
{
|
|
|
|
|
public class SettingsPageListItem
|
|
|
|
|
{
|
|
|
|
|
public string Icon { get; set; }
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
public string SubLabel { get; set; }
|
2019-06-03 18:26:16 +03:00
|
|
|
|
public bool SubLabelTextEnabled => SubLabel == AppResources.Enabled;
|
|
|
|
|
public Color SubLabelColor => SubLabelTextEnabled ?
|
|
|
|
|
(Color)Application.Current.Resources["SuccessColor"] :
|
|
|
|
|
(Color)Application.Current.Resources["MutedColor"];
|
2019-05-14 18:53:41 +03:00
|
|
|
|
}
|
|
|
|
|
}
|