fixed: status bar style issue.
This commit is contained in:
parent
0e16ae32be
commit
45a042adf6
@ -4,10 +4,12 @@
|
||||
xmlns:d="http://xamarin.com/schemas/2014/forms/design"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:u="clr-namespace:Pixiview.UI"
|
||||
xmlns:util="clr-namespace:Pixiview.Utils"
|
||||
mc:Ignorable="d"
|
||||
x:Class="Pixiview.MainPage"
|
||||
BackgroundColor="{DynamicResource WindowColor}"
|
||||
OrientationChanged="Page_OrientationChanged">
|
||||
OrientationChanged="Page_OrientationChanged"
|
||||
util:StatusBar.StatusBarStyle="{DynamicResource StatusBarStyle}">
|
||||
<NavigationPage.TitleView>
|
||||
<u:NavigationTitle Title="Follow"
|
||||
IsLeftButtonVisible="True"
|
||||
|
@ -1,4 +1,5 @@
|
||||
using Xamarin.Forms;
|
||||
using Pixiview.Utils;
|
||||
using Xamarin.Forms;
|
||||
|
||||
namespace Pixiview.UI.Theme
|
||||
{
|
||||
@ -26,6 +27,7 @@ namespace Pixiview.UI.Theme
|
||||
|
||||
private void InitColors()
|
||||
{
|
||||
Add(StatusBarStyle, StatusBarStyles.WhiteText);
|
||||
Add(WindowColor, Color.Black);
|
||||
Add(TextColor, Color.White);
|
||||
Add(SubTextColor, Color.LightGray);
|
||||
|
@ -1,4 +1,5 @@
|
||||
using Xamarin.Forms;
|
||||
using Pixiview.Utils;
|
||||
using Xamarin.Forms;
|
||||
|
||||
namespace Pixiview.UI.Theme
|
||||
{
|
||||
@ -26,12 +27,13 @@ namespace Pixiview.UI.Theme
|
||||
|
||||
private void InitColors()
|
||||
{
|
||||
Add(StatusBarStyle, StatusBarStyles.DarkText);
|
||||
Add(WindowColor, Color.White);
|
||||
Add(TextColor, Color.Black);
|
||||
Add(SubTextColor, Color.DimGray);
|
||||
Add(MainColor, Color.FromRgb(0x7f, 0x99, 0xc6));
|
||||
Add(MainTextColor, Color.White);
|
||||
Add(SubColor, Color.FromRgb(0xfa, 0xfa, 0xf0));
|
||||
Add(MainColor, Color.FromRgb(0xf0, 0xf0, 0xf0)); // Color.FromRgb(0x7f, 0x99, 0xc6)
|
||||
Add(MainTextColor, Color.Black);
|
||||
Add(SubColor, Color.FromRgb(0xf0, 0xf0, 0xf0)); // Color.FromRgb(0xfa, 0xfa, 0xf0)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -7,6 +7,7 @@ namespace Pixiview.UI.Theme
|
||||
public const string TitleButton = nameof(TitleButton);
|
||||
public const string TitleLabel = nameof(TitleLabel);
|
||||
|
||||
public const string StatusBarStyle = nameof(StatusBarStyle);
|
||||
public const string WindowColor = nameof(WindowColor);
|
||||
public const string TextColor = nameof(TextColor);
|
||||
public const string SubTextColor = nameof(SubTextColor);
|
||||
|
Loading…
x
Reference in New Issue
Block a user