features:
- launcher logo - tab bar tint color - favorites logic udpated
This commit is contained in:
@ -92,12 +92,13 @@ namespace Pixiview.iOS.Renderers
|
||||
tabBar.UnselectedItemTintColor = _defaultUnselectedTint;
|
||||
}
|
||||
|
||||
[SuppressMessage("Code Notifications", "XI0002:Notifies you from using newer Apple APIs when targeting an older OS version", Justification = "<Pending>")]
|
||||
public void SetAppearance(UITabBarController controller, ShellAppearance appearance)
|
||||
{
|
||||
IShellAppearanceElement appearanceElement = appearance;
|
||||
//var backgroundColor = appearanceElement.EffectiveTabBarBackgroundColor;
|
||||
var unselectedColor = appearanceElement.EffectiveTabBarUnselectedColor;
|
||||
var titleColor = appearanceElement.EffectiveTabBarTitleColor;
|
||||
var tintColor = appearanceElement.EffectiveTabBarForegroundColor; // appearanceElement.EffectiveTabBarTitleColor;
|
||||
|
||||
var tabBar = controller.TabBar;
|
||||
//bool operatingSystemSupportsUnselectedTint = Forms.IsiOS10OrNewer;
|
||||
@ -115,12 +116,16 @@ namespace Pixiview.iOS.Renderers
|
||||
|
||||
//if (!backgroundColor.IsDefault)
|
||||
// tabBar.BarTintColor = backgroundColor.ToUIColor();
|
||||
if (!UIDevice.CurrentDevice.CheckSystemVersion(13, 0))
|
||||
{
|
||||
if (!titleColor.IsDefault)
|
||||
tabBar.TintColor = titleColor.ToUIColor();
|
||||
|
||||
//if (operatingSystemSupportsUnselectedTint)
|
||||
if (!tintColor.IsDefault)
|
||||
tabBar.TintColor = tintColor.ToUIColor();
|
||||
//if (operatingSystemSupportsUnselectedTint)
|
||||
{
|
||||
if (UIDevice.CurrentDevice.CheckSystemVersion(13, 0))
|
||||
{
|
||||
//tabBar.UnselectedItemTintColor = UIColor.TertiaryLabelColor;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!unselectedColor.IsDefault)
|
||||
tabBar.UnselectedItemTintColor = unselectedColor.ToUIColor();
|
||||
|
@ -1,7 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Specialized;
|
||||
using System.ComponentModel;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using CoreGraphics;
|
||||
using Foundation;
|
||||
using UIKit;
|
||||
|
Reference in New Issue
Block a user