61 lines
2.6 KiB
C#
61 lines
2.6 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using Xamarin.Forms;
|
|
|
|
namespace Sarand.LogisticsMgr.Mobile.Core.App
|
|
{
|
|
//=======================================================================
|
|
// Colour references:
|
|
// http://www.html-color-names.com/skyblue.php
|
|
// http://www.html-color-names.com/lightsteelblue.php
|
|
//=======================================================================
|
|
public static class SlmMobile
|
|
{
|
|
//-------------------------------------------------------------------
|
|
// Definitions.
|
|
public enum Platform
|
|
{
|
|
Unknown = 0,
|
|
Android,
|
|
IOS,
|
|
Windows
|
|
}
|
|
public static String AppTitle { get; } = "Sarand LogisticsMgr";
|
|
// Utilities.
|
|
public static Random Random { get; } = new Random();
|
|
//-------------------------------------------------------------------
|
|
// Application styling.
|
|
public static double ApplicationBarHeight = 28;
|
|
public static Color ApplicationBarBackgroundColor = Color.FromHex("#558395");
|
|
public static Color ApplicationBarTextColor = Color.FromHex("#f8f8f8");
|
|
public static double ApplicationBarTextSizeRatio = 1.5;
|
|
public static Color ApplicationBarBorderColor = Color.DarkSlateBlue;
|
|
public static double ApplicationBarBorderBottom = 1.0;
|
|
public static Color MenuBorderColor = Color.DarkSlateBlue;
|
|
public static double MenuBorder = 1.0;
|
|
// Pages.
|
|
public static Color PageCaptionBackgroundColor = Color.FromHex("#558395");
|
|
public static double PageCaptionPaddingHorizontal = 4.0;
|
|
public static double PageCaptionPaddingVertical = 8.0;
|
|
public static Color PageCaptionTextColor = Color.FromHex("#f8f8f8");
|
|
public static double PageCaptionTextSizeRatio = 1.25;
|
|
public static Color PageBaseColor = Color.FromHex("#c8e8f5");
|
|
public static Color PageBackgroundColor = Color.FromHex("#e9f6fb");
|
|
public static double PageBodyPaddingVerticalMin = 4.0;
|
|
public static double PageBodyPaddingHorizontalMin = 4.0;
|
|
public static double PageNavigationBorderTopWidth = 0.75;
|
|
public static double PageNavigationPaddingVertical = 4.0;
|
|
public static Color PageNavigationBorderColor = Color.FromHex("#808080");
|
|
public static Color PageNavigationBackgroundColor = Color.FromHex("#e9f6fb");
|
|
// Controls.
|
|
public static Color ControlBackgroundColor = Color.FromHex("#f8f8f8");
|
|
public static Color ControlBorderColor = Color.FromHex("#f8f8f8");
|
|
public static double ControlBorderWidth = 0.5;
|
|
public static Thickness LabelMargin { get; } = new Thickness(4.0, 8.0, 0, 0);
|
|
|
|
//-------------------------------------------------------------------
|
|
}
|
|
//=======================================================================
|
|
}
|