mirror of
https://github.com/Hofknecht/SystemTrayMenu.git
synced 2024-09-28 07:11:28 +12:00
45da1c222c
[Feature] Take RowHeight from main menu #116 [Feature] Show icon in taskbar when application is running #115 [Feature] Add outer frame to selection #114 [Bug] Screen Changes #79
36 lines
No EOL
1.7 KiB
C#
36 lines
No EOL
1.7 KiB
C#
using System.Drawing;
|
|
using System.Reflection;
|
|
|
|
namespace SystemTrayMenu
|
|
{
|
|
internal static class MenuDefines
|
|
{
|
|
internal static string NotifyIconText = Assembly.GetExecutingAssembly().GetCustomAttribute<AssemblyTitleAttribute>().Title;
|
|
internal static readonly Color File = Color.White;
|
|
internal static readonly Color Folder = Color.White;
|
|
internal static readonly Color ColorSelectedItem = AppColors.Blue;
|
|
internal static readonly Color ColorSelectedItemBorder = AppColors.BlueBorder;
|
|
internal static readonly Color ColorOpenFolder = AppColors.Green;
|
|
internal static readonly Color ColorOpenFolderBorder = AppColors.GreenBorder;
|
|
internal static readonly Color ColorTitleWarning = AppColors.Red;
|
|
internal static readonly Color ColorTitleSelected = AppColors.Yellow;
|
|
internal static readonly Color ColorTitleBackground = AppColors.Azure;
|
|
internal const int KeySearchInterval = 1000;
|
|
internal const int Scrollspeed = 4;
|
|
internal const int TimeUntilClose = 1000;
|
|
internal const int MenusMax = 50;
|
|
internal const int LengthMax = 37;
|
|
internal static float MaxMenuWidth = 300;
|
|
}
|
|
|
|
internal static class AppColors
|
|
{
|
|
internal static readonly Color Blue = Color.FromArgb(204, 232, 255);
|
|
internal static readonly Color BlueBorder = Color.FromArgb(153, 209, 255);
|
|
internal static readonly Color Green = Color.FromArgb(194, 245, 222);
|
|
internal static readonly Color GreenBorder = Color.FromArgb(153, 255, 165);
|
|
internal static readonly Color Red = Color.FromArgb(255, 204, 232);
|
|
internal static readonly Color Yellow = Color.LightYellow;
|
|
internal static readonly Color Azure = Color.Azure;
|
|
}
|
|
} |