rm files
This commit is contained in:
parent
fdf4c128af
commit
0e16ae32be
@ -1,29 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Application xmlns="http://xamarin.com/schemas/2014/forms"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
xmlns:d="http://xamarin.com/schemas/2014/forms/design"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
mc:Ignorable="d"
|
||||
x:Class="Pixiview.App">
|
||||
<Application.Resources>
|
||||
<Color x:Key="WindowColor">Black</Color>
|
||||
<Color x:Key="TextColor">White</Color>
|
||||
<Color x:Key="SubTextColor">LightGray</Color>
|
||||
<Color x:Key="MainColor">#333333</Color>
|
||||
<Color x:Key="MainTextColor">White</Color>
|
||||
<Style x:Key="TitleLabel" TargetType="Label">
|
||||
<Setter Property="VerticalOptions" Value="Center"/>
|
||||
<Setter Property="HorizontalOptions" Value="Fill"/>
|
||||
<Setter Property="HorizontalTextAlignment" Value="Center"/>
|
||||
<Setter Property="FontSize" Value="{DynamicResource FontSizeTitle}"/>
|
||||
<Setter Property="TextColor" Value="{DynamicResource MainTextColor}"/>
|
||||
</Style>
|
||||
<Style x:Key="TitleButton" TargetType="Button">
|
||||
<Setter Property="BorderWidth" Value="0"/>
|
||||
<Setter Property="BackgroundColor" Value="Transparent"/>
|
||||
<Setter Property="FontFamily" Value="{DynamicResource IconSolidFontFamily}"/>
|
||||
<Setter Property="FontSize" Value="{DynamicResource FontSizeTitleIcon}"/>
|
||||
<Setter Property="TextColor" Value="{DynamicResource MainTextColor}"/>
|
||||
</Style>
|
||||
</Application.Resources>
|
||||
</Application>
|
@ -1,70 +0,0 @@
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using Pixiview.UI;
|
||||
using Pixiview.Utils;
|
||||
using Xamarin.Forms;
|
||||
|
||||
namespace Pixiview
|
||||
{
|
||||
public partial class App : Application
|
||||
{
|
||||
public const string TitleButton = nameof(TitleButton);
|
||||
public const string TitleLabel = nameof(TitleLabel);
|
||||
|
||||
public const string WindowColor = nameof(WindowColor);
|
||||
public const string TextColor = nameof(TextColor);
|
||||
public const string MainColor = nameof(MainColor);
|
||||
public const string MainTextColor = nameof(MainTextColor);
|
||||
|
||||
public const string IconLightFontFamily = nameof(IconLightFontFamily);
|
||||
public const string IconRegularFontFamily = nameof(IconRegularFontFamily);
|
||||
public const string IconSolidFontFamily = nameof(IconSolidFontFamily);
|
||||
public const string IconLeft = nameof(IconLeft);
|
||||
public const string FontSizeTitle = nameof(FontSizeTitle);
|
||||
public const string FontSizeTitleIcon = nameof(FontSizeTitleIcon);
|
||||
//public const string Horizon10 = nameof(Horizon10);
|
||||
|
||||
public App()
|
||||
{
|
||||
InitializeComponent();
|
||||
InitResources();
|
||||
}
|
||||
|
||||
private void InitResources()
|
||||
{
|
||||
var p = DependencyService.Get<IEnvironmentService>().GetEnvironment();
|
||||
|
||||
Resources.Add(IconLightFontFamily, p.IconLightFontFamily);
|
||||
Resources.Add(IconRegularFontFamily, p.IconRegularFontFamily);
|
||||
Resources.Add(IconSolidFontFamily, p.IconSolidFontFamily);
|
||||
|
||||
Resources.Add(IconLeft, p.IconLeft);
|
||||
Resources.Add(FontSizeTitle, StyleDefinition.FontSizeTitle);
|
||||
Resources.Add(FontSizeTitleIcon, StyleDefinition.FontSizeTitleIcon);
|
||||
//Resources.Add(Horizon10, StyleDefinition.Horizon10);
|
||||
}
|
||||
|
||||
protected override void OnStart()
|
||||
{
|
||||
MainPage = UIFactory.CreateNavigationPage(new MainPage());
|
||||
}
|
||||
|
||||
protected override void OnSleep()
|
||||
{
|
||||
}
|
||||
|
||||
protected override void OnResume()
|
||||
{
|
||||
}
|
||||
|
||||
public static void DebugPrint(string message)
|
||||
{
|
||||
Debug.WriteLine("[{0:HH:mm:ss.ffff}] - {1}", DateTime.Now, message);
|
||||
}
|
||||
|
||||
public static void DebugError(string category, string message)
|
||||
{
|
||||
Debug.Fail(string.Format("[{0:HH:mm:ss.ffff}] - {1} - {2}", DateTime.Now, category, message));
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user