mirror of
https://github.com/bitwarden/android.git
synced 2024-12-25 02:18:27 +03:00
nord theme toast for ios
This commit is contained in:
parent
88b8a192b5
commit
c9d1e8dc65
1 changed files with 10 additions and 1 deletions
|
@ -1,6 +1,8 @@
|
||||||
using Foundation;
|
using Foundation;
|
||||||
using System;
|
using System;
|
||||||
using UIKit;
|
using UIKit;
|
||||||
|
using Xamarin.Forms;
|
||||||
|
using Xamarin.Forms.Platform.iOS;
|
||||||
|
|
||||||
namespace Bit.iOS.Core.Views
|
namespace Bit.iOS.Core.Views
|
||||||
{
|
{
|
||||||
|
@ -16,7 +18,14 @@ namespace Bit.iOS.Core.Views
|
||||||
: base(CoreGraphics.CGRect.FromLTRB(0, 0, 320, 38))
|
: base(CoreGraphics.CGRect.FromLTRB(0, 0, 320, 38))
|
||||||
{
|
{
|
||||||
TranslatesAutoresizingMaskIntoConstraints = false;
|
TranslatesAutoresizingMaskIntoConstraints = false;
|
||||||
BackgroundColor = UIColor.DarkGray.ColorWithAlpha(0.9f);
|
var bgColor = UIColor.DarkGray;
|
||||||
|
var nordTheme = Application.Current?.Resources != null &&
|
||||||
|
((Color)Application.Current.Resources["BackgroundColor"]) == Color.FromHex("#3b4252");
|
||||||
|
if(nordTheme)
|
||||||
|
{
|
||||||
|
bgColor = Color.FromHex("#4c566a").ToUIColor();
|
||||||
|
}
|
||||||
|
BackgroundColor = bgColor.ColorWithAlpha(0.9f);
|
||||||
Layer.CornerRadius = 15;
|
Layer.CornerRadius = 15;
|
||||||
Layer.MasksToBounds = true;
|
Layer.MasksToBounds = true;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue