You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.2 KiB
C#

// ***********************************************************************
// Assembly : Construction
// Author : flythink
// Created : 06-05-2020
//
// Last Modified By : flythink
// Last Modified On : 09-01-2020
// ***********************************************************************
// <copyright file="SkinHelper.cs" company="jindongfang">
// Copyright (c) jindongfang. All rights reserved.
// </copyright>
// <summary></summary>
// ***********************************************************************
namespace WellWorkDataUI
{
using DevExpress.LookAndFeel;
using DevExpress.Skins;
using System.Drawing;
/// <summary>
/// Class SkinHelper.
/// </summary>
public static class SkinHelper
{
/// <summary>
/// The current foreground
/// </summary>
public static Color CurrentForeground = CurrentSkin.Colors["ControlText"];
/// <summary>
/// Gets the current background.
/// </summary>
/// <value>The current background.</value>
public static Color CurrentBackground => CurrentSkin.Colors["Control"];
private static Skin CurrentSkin => CommonSkins.GetSkin(UserLookAndFeel.Default.ActiveLookAndFeel);
}
}