Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed MAX14720 MAX30205 USBDevice
MaximColor.cs
00001 /******************************************************************************* 00002 * Copyright (C) 2016 Maxim Integrated Products, Inc., All rights Reserved. 00003 * 00004 * This software is protected by copyright laws of the United States and 00005 * of foreign countries. This material may also be protected by patent laws 00006 * and technology transfer regulations of the United States and of foreign 00007 * countries. This software is furnished under a license agreement and/or a 00008 * nondisclosure agreement and may only be used or reproduced in accordance 00009 * with the terms of those agreements. Dissemination of this information to 00010 * any party or parties not specified in the license agreement and/or 00011 * nondisclosure agreement is expressly prohibited. 00012 * 00013 * The above copyright notice and this permission notice shall be included 00014 * in all copies or substantial portions of the Software. 00015 * 00016 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00017 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00018 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 00019 * IN NO EVENT SHALL MAXIM INTEGRATED BE LIABLE FOR ANY CLAIM, DAMAGES 00020 * OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 00021 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 00022 * OTHER DEALINGS IN THE SOFTWARE. 00023 * 00024 * Except as contained in this notice, the name of Maxim Integrated 00025 * Products, Inc. shall not be used except as stated in the Maxim Integrated 00026 * Products, Inc. Branding Policy. 00027 * 00028 * The mere transfer of this software does not imply any licenses 00029 * of trade secrets, proprietary technology, copyrights, patents, 00030 * trademarks, maskwork rights, or any other form of intellectual 00031 * property whatsoever. Maxim Integrated Products, Inc. retains all 00032 * ownership rights. 00033 ******************************************************************************* 00034 */ 00035 00036 using System; 00037 using System.Collections.Generic; 00038 using System.Linq; 00039 using System.Text; 00040 using System.Drawing; 00041 00042 namespace MaximStyle 00043 { 00044 public struct MaximColor 00045 { 00046 static Color teal = Color.FromArgb(0x00, 0xB2, 0xA9); 00047 static Color purple = Color.FromArgb(0x6E, 0x25, 0x85); 00048 static Color green = Color.FromArgb(0x99, 0xC6, 0x4C); 00049 static Color red = Color.FromArgb(0xFF, 0x00, 0x00); 00050 static Color yellow = Color.FromArgb(0xFF, 0xC2, 0x20); 00051 static Color lightBlue = Color.FromArgb(0x93, 0xc3, 0xde); 00052 static Color orange = Color.FromArgb(241, 92, 34); 00053 00054 // Generic Names for Colors 00055 public static Color Teal { get { return teal; } } 00056 public static Color Purple { get { return purple; } } 00057 public static Color Green { get { return green; } } 00058 public static Color Red { get { return red; } } 00059 public static Color Yellow { get { return yellow; } } 00060 public static Color LightBlue { get { return lightBlue; } } 00061 public static Color Orange { get { return orange; } } 00062 00063 // SET Look & Feel Names 00064 public static Color Background 00065 { 00066 get 00067 { 00068 return Color.White; 00069 } 00070 } 00071 public static Color AlternateBackground 00072 { 00073 get 00074 { 00075 return Color.FromArgb(0xdd, 0xdd, 0xdd); 00076 } 00077 } 00078 public static Color Outline 00079 { 00080 get 00081 { 00082 return Color.FromArgb(0xce, 0xce, 0xce); 00083 } 00084 } 00085 public static Color InactiveSection 00086 { 00087 get 00088 { 00089 return Color.FromArgb(0xad, 0xad, 0xad); 00090 } 00091 } 00092 public static Color Borders = Color.FromArgb(0x6c, 0x6f, 0x70); 00093 public static Color MainText = Color.Black; 00094 public Color Links 00095 { 00096 get 00097 { 00098 return teal; 00099 } 00100 } 00101 public static Color MouseoverLinkActiveElements 00102 { 00103 get 00104 { 00105 return purple; 00106 } 00107 } 00108 public static Color FollowedLink 00109 { 00110 get 00111 { 00112 return Color.FromArgb(0x96, 0x96, 0x96); 00113 } 00114 } 00115 public static Color Warning 00116 { 00117 get 00118 { 00119 return yellow; 00120 } 00121 } 00122 public static Color GoOK 00123 { 00124 get 00125 { 00126 return green; 00127 } 00128 } 00129 public static Color Error 00130 { 00131 get 00132 { 00133 return red; 00134 } 00135 } 00136 00137 } 00138 }
Generated on Thu Jul 28 2022 18:07:15 by
 1.7.2