status bar color in red for android
This commit is contained in:
parent
0071017fcf
commit
59ee70105c
@ -5,19 +5,24 @@
|
|||||||
x:Class="RBLNews.Maui.App">
|
x:Class="RBLNews.Maui.App">
|
||||||
<Application.Resources>
|
<Application.Resources>
|
||||||
<ResourceDictionary>
|
<ResourceDictionary>
|
||||||
|
<Color x:Key="PageBackgroundColor">#DD0741</Color>
|
||||||
<Color x:Key="PageBackgroundColor">#512bdf</Color>
|
|
||||||
<Color x:Key="PrimaryTextColor">White</Color>
|
<Color x:Key="PrimaryTextColor">White</Color>
|
||||||
|
|
||||||
|
<!--<Style TargetType="NavigationPage">
|
||||||
|
<Setter Property="BarBackgroundColor" Value="{AppThemeBinding Light={StaticResource PageBackgroundColor}, Dark={StaticResource PageBackgroundColor}}" />
|
||||||
|
<Setter Property="BarTextColor" Value="{AppThemeBinding Light={StaticResource PrimaryTextColor}, Dark={StaticResource PrimaryTextColor}}" />
|
||||||
|
<Setter Property="IconColor" Value="{AppThemeBinding Light={StaticResource PrimaryTextColor}, Dark={StaticResource PrimaryTextColor}}" />
|
||||||
|
</Style>-->
|
||||||
|
|
||||||
<Style TargetType="Label">
|
<Style TargetType="Label">
|
||||||
<Setter Property="TextColor" Value="{DynamicResource PrimaryTextColor}" />
|
<Setter Property="TextColor" Value="{DynamicResource PrimaryTextColor}" />
|
||||||
<Setter Property="FontFamily" Value="OpenSansRegular" />
|
<Setter Property="FontFamily" Value="NanumMyeongjoRegular" />
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<Style TargetType="Button">
|
<Style TargetType="Button">
|
||||||
<Setter Property="TextColor" Value="{DynamicResource PrimaryTextColor}" />
|
<Setter Property="TextColor" Value="{DynamicResource PrimaryTextColor}" />
|
||||||
<Setter Property="FontFamily" Value="OpenSansRegular" />
|
<Setter Property="FontFamily" Value="NanumMyeongjoRegular" />
|
||||||
<Setter Property="BackgroundColor" Value="#2b0b98" />
|
<Setter Property="BackgroundColor" Value="#DD0741" />
|
||||||
<Setter Property="Padding" Value="14,10" />
|
<Setter Property="Padding" Value="14,10" />
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
using RBLNews.Shared.Services;
|
using Microsoft.Maui.Controls.PlatformConfiguration;
|
||||||
|
using RBLNews.Shared.Services;
|
||||||
|
|
||||||
namespace RBLNews.Maui
|
namespace RBLNews.Maui
|
||||||
{
|
{
|
||||||
@ -27,6 +28,7 @@ namespace RBLNews.Maui
|
|||||||
_appLifecycleService.Resumed();
|
_appLifecycleService.Resumed();
|
||||||
// take actions here...
|
// take actions here...
|
||||||
};
|
};
|
||||||
|
|
||||||
return window;
|
return window;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4,6 +4,7 @@
|
|||||||
xmlns:local="clr-namespace:RBLNews.Maui"
|
xmlns:local="clr-namespace:RBLNews.Maui"
|
||||||
xmlns:shared="clr-namespace:RBLNews.Shared;assembly=RBLNews.Shared"
|
xmlns:shared="clr-namespace:RBLNews.Shared;assembly=RBLNews.Shared"
|
||||||
x:Class="RBLNews.Maui.MainPage"
|
x:Class="RBLNews.Maui.MainPage"
|
||||||
|
|
||||||
BackgroundColor="{DynamicResource PageBackgroundColor}">
|
BackgroundColor="{DynamicResource PageBackgroundColor}">
|
||||||
<RefreshView x:Name="RefreshView" Refreshing="RefreshView_Refreshing">
|
<RefreshView x:Name="RefreshView" Refreshing="RefreshView_Refreshing">
|
||||||
<BlazorWebView x:Name="blazorWebView" HostPage="wwwroot/index.html">
|
<BlazorWebView x:Name="blazorWebView" HostPage="wwwroot/index.html">
|
||||||
|
|||||||
@ -13,7 +13,8 @@ namespace RBLNews.Maui
|
|||||||
.UseMauiApp<App>()
|
.UseMauiApp<App>()
|
||||||
.ConfigureFonts(fonts =>
|
.ConfigureFonts(fonts =>
|
||||||
{
|
{
|
||||||
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
|
//fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
|
||||||
|
fonts.AddFont("NanumMyeongjo-Regular.ttf", "NanumMyeongjoRegular");
|
||||||
});
|
});
|
||||||
|
|
||||||
builder.Services.AddMauiBlazorWebView();
|
builder.Services.AddMauiBlazorWebView();
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
<color name="colorPrimary">#512BD4</color>
|
<color name="colorPrimary">#DD0741</color>
|
||||||
<color name="colorPrimaryDark">#2B0B98</color>
|
<color name="colorPrimaryDark">#DD0741</color>
|
||||||
<color name="colorAccent">#2B0B98</color>
|
<color name="colorAccent">#DD0741</color>
|
||||||
</resources>
|
</resources>
|
||||||
@ -46,6 +46,10 @@
|
|||||||
<EmbedAssembliesIntoApk>True</EmbedAssembliesIntoApk>
|
<EmbedAssembliesIntoApk>True</EmbedAssembliesIntoApk>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net8.0-windows10.0.26100.0</TargetFrameworks>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<!-- App Icon -->
|
<!-- App Icon -->
|
||||||
<MauiIcon Include="Resources\AppIcon\appicon.svg" ForegroundFile="Resources\AppIcon\appiconfg.svg" Color="#512BD4" />
|
<MauiIcon Include="Resources\AppIcon\appicon.svg" ForegroundFile="Resources\AppIcon\appiconfg.svg" Color="#512BD4" />
|
||||||
@ -64,6 +68,10 @@
|
|||||||
<MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" />
|
<MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<None Remove="Resources\Fonts\NanumMyeongjo-Regular.ttf" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Blazor.Bootstrap" Version="3.0.0" />
|
<PackageReference Include="Blazor.Bootstrap" Version="3.0.0" />
|
||||||
<PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" />
|
<PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" />
|
||||||
|
|||||||
BIN
RBLNews.Maui/Resources/Fonts/NanumMyeongjo-Regular.ttf
Normal file
BIN
RBLNews.Maui/Resources/Fonts/NanumMyeongjo-Regular.ttf
Normal file
Binary file not shown.
@ -1,4 +1,10 @@
|
|||||||
|
@font-face {
|
||||||
|
font-family: "Nanum Myeongjo", serif !important;
|
||||||
|
font-weight: 400;
|
||||||
|
font-style: normal;
|
||||||
|
src: url('../fonts/NanumMyeongjo-Regular.ttf');
|
||||||
|
}
|
||||||
|
|
||||||
nav .container-fluid {
|
nav .container-fluid {
|
||||||
padding-right: 0px !important;
|
padding-right: 0px !important;
|
||||||
padding-left: 0px !important;
|
padding-left: 0px !important;
|
||||||
|
|||||||
BIN
RBLNews.Shared/wwwroot/fonts/NanumMyeongjo-Bold.ttf
Normal file
BIN
RBLNews.Shared/wwwroot/fonts/NanumMyeongjo-Bold.ttf
Normal file
Binary file not shown.
BIN
RBLNews.Shared/wwwroot/fonts/NanumMyeongjo-ExtraBold.ttf
Normal file
BIN
RBLNews.Shared/wwwroot/fonts/NanumMyeongjo-ExtraBold.ttf
Normal file
Binary file not shown.
BIN
RBLNews.Shared/wwwroot/fonts/NanumMyeongjo-Regular.ttf
Normal file
BIN
RBLNews.Shared/wwwroot/fonts/NanumMyeongjo-Regular.ttf
Normal file
Binary file not shown.
@ -10,12 +10,14 @@
|
|||||||
<ProjectReference Include="..\RBLNews.Shared\RBLNews.Shared.csproj" />
|
<ProjectReference Include="..\RBLNews.Shared\RBLNews.Shared.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
|
||||||
<Folder Include="wwwroot\" />
|
|
||||||
</ItemGroup>
|
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Blazor.Bootstrap" Version="3.0.0" />
|
<PackageReference Include="Blazor.Bootstrap" Version="3.0.0" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<Content Update="wwwroot\fonts\NanumMyeongjo-Regular.ttf">
|
||||||
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
|
</Content>
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
BIN
RBLNews.Web/wwwroot/fonts/NanumMyeongjo-Regular.ttf
Normal file
BIN
RBLNews.Web/wwwroot/fonts/NanumMyeongjo-Regular.ttf
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user