2022-12-04 10:41:03 +13:00
|
|
|
|
// <copyright file="AppColors.cs" company="PlaceholderCompany">
|
|
|
|
|
// Copyright (c) PlaceholderCompany. All rights reserved.
|
|
|
|
|
// </copyright>
|
|
|
|
|
|
|
|
|
|
namespace SystemTrayMenu
|
|
|
|
|
{
|
2022-10-23 11:02:31 +13:00
|
|
|
|
using System.Windows.Media;
|
|
|
|
|
using Color = System.Drawing.Color;
|
|
|
|
|
|
2022-12-04 10:41:03 +13:00
|
|
|
|
internal static class AppColors
|
|
|
|
|
{
|
|
|
|
|
public static Color Arrow { get; internal set; }
|
|
|
|
|
|
|
|
|
|
public static Color ArrowHoverBackground { get; internal set; }
|
|
|
|
|
|
|
|
|
|
public static Color ArrowHover { get; internal set; }
|
|
|
|
|
|
|
|
|
|
public static Color ArrowClick { get; internal set; }
|
|
|
|
|
|
|
|
|
|
public static Color ArrowClickBackground { get; internal set; }
|
|
|
|
|
|
|
|
|
|
public static Color SliderArrowsAndTrackHover { get; internal set; }
|
|
|
|
|
|
|
|
|
|
public static Color Slider { get; internal set; }
|
|
|
|
|
|
|
|
|
|
public static Color SliderHover { get; internal set; }
|
|
|
|
|
|
|
|
|
|
public static Color SliderDragging { get; internal set; }
|
|
|
|
|
|
|
|
|
|
public static Color ScrollbarBackground { get; internal set; }
|
|
|
|
|
|
|
|
|
|
public static Color ArrowDarkMode { get; internal set; }
|
|
|
|
|
|
|
|
|
|
public static Color ArrowHoverBackgroundDarkMode { get; internal set; }
|
|
|
|
|
|
|
|
|
|
public static Color ArrowHoverDarkMode { get; internal set; }
|
|
|
|
|
|
|
|
|
|
public static Color ArrowClickDarkMode { get; internal set; }
|
|
|
|
|
|
|
|
|
|
public static Color ArrowClickBackgroundDarkMode { get; internal set; }
|
|
|
|
|
|
|
|
|
|
public static Color SliderArrowsAndTrackHoverDarkMode { get; internal set; }
|
|
|
|
|
|
|
|
|
|
public static Color SliderDarkMode { get; internal set; }
|
|
|
|
|
|
|
|
|
|
public static Color SliderHoverDarkMode { get; internal set; }
|
|
|
|
|
|
|
|
|
|
public static Color SliderDraggingDarkMode { get; internal set; }
|
|
|
|
|
|
|
|
|
|
public static Color ScrollbarBackgroundDarkMode { get; internal set; }
|
|
|
|
|
|
|
|
|
|
public static Color SelectedItem { get; set; }
|
|
|
|
|
|
|
|
|
|
public static Color DarkModeSelecetedItem { get; set; }
|
|
|
|
|
|
|
|
|
|
public static Color SelectedItemBorder { get; set; }
|
|
|
|
|
|
|
|
|
|
public static Color DarkModeSelectedItemBorder { get; set; }
|
|
|
|
|
|
|
|
|
|
public static Color OpenFolder { get; set; }
|
|
|
|
|
|
|
|
|
|
public static Color DarkModeOpenFolder { get; set; }
|
|
|
|
|
|
|
|
|
|
public static Color OpenFolderBorder { get; set; }
|
|
|
|
|
|
|
|
|
|
public static Color DarkModeOpenFolderBorder { get; set; }
|
|
|
|
|
|
|
|
|
|
public static Color Background { get; set; }
|
|
|
|
|
|
|
|
|
|
public static Color DarkModeBackground { get; set; }
|
|
|
|
|
|
|
|
|
|
public static Color BackgroundBorder { get; set; }
|
|
|
|
|
|
|
|
|
|
public static Color DarkModeBackgroundBorder { get; set; }
|
|
|
|
|
|
|
|
|
|
public static Color SearchField { get; set; }
|
|
|
|
|
|
|
|
|
|
public static Color DarkModeSearchField { get; set; }
|
|
|
|
|
|
|
|
|
|
public static Color Icons { get; set; }
|
|
|
|
|
|
2022-10-23 11:02:31 +13:00
|
|
|
|
public static Color DarkModeIcons { get; set; }
|
|
|
|
|
|
2022-11-14 07:58:54 +13:00
|
|
|
|
// TODO: WPF: Remove by not using system drawing colors
|
2022-10-23 11:02:31 +13:00
|
|
|
|
public static SolidColorBrush ToSolidColorBrush(this Color color)
|
|
|
|
|
{
|
|
|
|
|
return new SolidColorBrush(System.Windows.Media.Color.FromArgb(color.A, color.R, color.G, color.B));
|
2022-12-04 10:41:03 +13:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static SolidColorBrush SolidColorBrushFromString(string value)
|
|
|
|
|
{
|
|
|
|
|
return new SolidColorBrush((System.Windows.Media.Color)ColorConverter.ConvertFromString(value));
|
|
|
|
|
}
|
|
|
|
|
}
|
2020-07-08 03:05:19 +12:00
|
|
|
|
}
|