From: Eunki Hong Date: Mon, 31 Mar 2025 14:01:58 +0000 (+0900) Subject: [NUI.UIColor] Explain more constant colors X-Git-Tag: submit/tizen/20250401.115655~1^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d36223d5362d6ceb46ceeccdc5fc74264e19ebca;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI.UIColor] Explain more constant colors Let we follow all colors from https://www.w3.org/TR/css-color-3 X11 colors. Signed-off-by: Eunki Hong --- diff --git a/src/Tizen.NUI/src/devel/Lite/UIColorConstants.cs b/src/Tizen.NUI/src/devel/Lite/UIColorConstants.cs new file mode 100644 index 000000000..e4c1f694f --- /dev/null +++ b/src/Tizen.NUI/src/devel/Lite/UIColorConstants.cs @@ -0,0 +1,778 @@ +/* + * Copyright(c) 2025 Samsung Electronics Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +using System; +using System.ComponentModel; +using Tizen.NUI.BaseComponents; + +namespace Tizen.NUI +{ + public partial struct UIColor + { + static internal void Preload() + { + // Do nothing. Just call for load static values. + } + + /// + /// The default color. (This is to distinguish from transparent) + /// + public static readonly UIColor Default = new (-1, -1, -1, -1); + + /// + /// The Transparent color. 0x000000 with alpha = 0.0f + /// + public static readonly UIColor Transparent = new (0, 0, 0, 0); + + // Subset of X11 Colors (CSS colors) + // https://www.w3.org/TR/css-color-3 + + /// + /// The AliceBlue color. 0xF0F8FF + /// + public static readonly UIColor AliceBlue = new (240.0f / 255.0f, 248.0f / 255.0f, 1, 1); + + /// + /// The AntiqueWhite color. 0xFAEBD7 + /// + public static readonly UIColor AntiqueWhite = new (250.0f / 255.0f, 235.0f / 255.0f, 215.0f / 255.0f, 1); + + /// + /// The Aqua color. 0x00FFFF + /// + public static readonly UIColor Aqua = new (0, 1, 1, 1); + + /// + /// The AquaMarine color. 0x7FFFD4 + /// + public static readonly UIColor AquaMarine = new (127.0f / 255.0f, 1, 212.0f / 255.0f, 1); + + /// + /// The Azure color. 0xF0FFFF + /// + public static readonly UIColor Azure = new (240.0f / 255.0f, 1, 1, 1); + + /// + /// The Beige color. 0xF5F5DC + /// + public static readonly UIColor Beige = new (245.0f / 255.0f, 245.0f / 255.0f, 220.0f / 255.0f, 1); + + /// + /// The Bisque color. 0xFFE4C4 + /// + public static readonly UIColor Bisque = new (1, 228.0f / 255.0f, 196.0f / 255.0f, 1); + + /// + /// The Black color. 0x000000 + /// + public static readonly UIColor Black = new (0, 0, 0, 1); + + /// + /// The BlancheDalmond color. 0xFFEBCD + /// + public static readonly UIColor BlancheDalmond = new (1, 235.0f / 255.0f, 205.0f / 255.0f, 1); + + /// + /// The Blue color. 0x0000FF + /// + public static readonly UIColor Blue = new (0, 0, 1, 1); + + /// + /// The BlueViolet color. 0x8A2BE2 + /// + public static readonly UIColor BlueViolet = new (138.0f / 255.0f, 43.0f / 255.0f, 226.0f / 255.0f, 1); + + /// + /// The Brown color. 0xA52A2A + /// + public static readonly UIColor Brown = new (165.0f / 255.0f, 42.0f / 255.0f, 42.0f / 255.0f, 1); + + /// + /// The BurlyWood color. 0xDEB887 + /// + public static readonly UIColor BurlyWood = new (222.0f / 255.0f, 184.0f / 255.0f, 135.0f / 255.0f, 1); + + /// + /// The CadetBlue color. 0x5F9EA0 + /// + public static readonly UIColor CadetBlue = new (95.0f / 255.0f, 158.0f / 255.0f, 160.0f / 255.0f, 1); + + /// + /// The Chartreuse color. 0x7FFF00 + /// + public static readonly UIColor Chartreuse = new (127.0f / 255.0f, 1, 0, 1); + + /// + /// The Chocolate color. 0xD2691E + /// + public static readonly UIColor Chocolate = new (210.0f / 255.0f, 105.0f / 255.0f, 30.0f / 255.0f, 1); + + /// + /// The Coral color. 0xFF7F50 + /// + public static readonly UIColor Coral = new (1, 127.0f / 255.0f, 80.0f / 255.0f, 1); + + /// + /// The CornflowerBlue color. 0x6495ED + /// + public static readonly UIColor CornflowerBlue = new (100.0f / 255.0f, 149.0f / 255.0f, 237.0f / 255.0f, 1); + + /// + /// The Cornsilk color. 0xFFF8DC + /// + public static readonly UIColor Cornsilk = new (1, 248.0f / 255.0f, 220.0f / 255.0f, 1); + + /// + /// The Crimson color. 0xDC143C + /// + public static readonly UIColor Crimson = new (220.0f / 255.0f, 20.0f / 255.0f, 60.0f / 255.0f, 1); + + /// + /// The Cyan color. 0x00FFFF + /// + public static readonly UIColor Cyan = new (0, 1, 1, 1); + + /// + /// The DarkBlue color. 0x00008B + /// + public static readonly UIColor DarkBlue = new (0, 0, 139.0f / 255.0f, 1); + + /// + /// The DarkCyan color. 0x008B8B + /// + public static readonly UIColor DarkCyan = new (0, 139.0f / 255.0f, 139.0f / 255.0f, 1); + + /// + /// The DarkGoldenrod color. 0xB8860B + /// + public static readonly UIColor DarkGoldenrod = new (184.0f / 255.0f, 134.0f / 255.0f, 11.0f / 255.0f, 1); + + /// + /// The DarkGray color. 0xA9A9A9 + /// + public static readonly UIColor DarkGray = new (169.0f / 255.0f, 169.0f / 255.0f, 169.0f / 255.0f, 1); + + /// + /// The DarkGreen color. 0x006400 + /// + public static readonly UIColor DarkGreen = new (0, 100.0f / 255.0f, 0, 1); + + /// + /// The DarkGrey color. 0xA9A9A9 + /// + public static readonly UIColor DarkGrey = new (169.0f / 255.0f, 169.0f / 255.0f, 169.0f / 255.0f, 1); + + /// + /// The DarkKhaki color. 0xBDB76B + /// + public static readonly UIColor DarkKhaki = new (189.0f / 255.0f, 183.0f / 255.0f, 107.0f / 255.0f, 1); + + /// + /// The DarkMagenta color. 0x8B008B + /// + public static readonly UIColor DarkMagenta = new (139.0f / 255.0f, 0, 139.0f / 255.0f, 1); + + /// + /// The DarkOliveGreen color. 0x556B2F + /// + public static readonly UIColor DarkOliveGreen = new (85.0f / 255.0f, 107.0f / 255.0f, 47.0f / 255.0f, 1); + + /// + /// The DarkOrange color. 0xFF8C00 + /// + public static readonly UIColor DarkOrange = new (1, 140.0f / 255.0f, 0, 1); + + /// + /// The DarkOrchid color. 0x9932CC + /// + public static readonly UIColor DarkOrchid = new (153.0f / 255.0f, 50.0f / 255.0f, 204.0f / 255.0f, 1); + + /// + /// The DarkRed color. 0x8B0000 + /// + public static readonly UIColor DarkRed = new (139.0f / 255.0f, 0, 0, 1); + + /// + /// The DarkSalmon color. 0xE9967A + /// + public static readonly UIColor DarkSalmon = new (233.0f / 255.0f, 150.0f / 255.0f, 122.0f / 255.0f, 1); + + /// + /// The DarkSeaGreen color. 0x8FBC8F + /// + public static readonly UIColor DarkSeaGreen = new (143.0f / 255.0f, 188.0f / 255.0f, 143.0f / 255.0f, 1); + + /// + /// The DarkSlateBlue color. 0x483D8B + /// + public static readonly UIColor DarkSlateBlue = new (72.0f / 255.0f, 61.0f / 255.0f, 139.0f / 255.0f, 1); + + /// + /// The DarkSlateGray color. 0x2F4F4F + /// + public static readonly UIColor DarkSlateGray = new (47.0f / 255.0f, 79.0f / 255.0f, 79.0f / 255.0f, 1); + + /// + /// The DarkSlateGrey color. 0x2F4F4F + /// + public static readonly UIColor DarkSlateGrey = new (47.0f / 255.0f, 79.0f / 255.0f, 79.0f / 255.0f, 1); + + /// + /// The DarkTurquoise color. 0x00CED1 + /// + public static readonly UIColor DarkTurquoise = new (0, 206.0f / 255.0f, 209.0f / 255.0f, 1); + + /// + /// The DarkViolet color. 0x9400D3 + /// + public static readonly UIColor DarkViolet = new (148.0f / 255.0f, 0, 211.0f / 255.0f, 1); + + /// + /// The DeepPink color. 0xFF1493 + /// + public static readonly UIColor DeepPink = new (1, 20.0f / 255.0f, 147.0f / 255.0f, 1); + + /// + /// The DeepSkyBlue color. 0x00BFFF + /// + public static readonly UIColor DeepSkyBlue = new (0, 191.0f / 255.0f, 1, 1); + + /// + /// The DimGray color. 0x696969 + /// + public static readonly UIColor DimGray = new (105.0f / 255.0f, 105.0f / 255.0f, 105.0f / 255.0f, 1); + + /// + /// The DimGrey color. 0x696969 + /// + public static readonly UIColor DimGrey = new (105.0f / 255.0f, 105.0f / 255.0f, 105.0f / 255.0f, 1); + + /// + /// The DodgerBlue color. 0x1E90FF + /// + public static readonly UIColor DodgerBlue = new (30.0f / 255.0f, 144.0f / 255.0f, 1, 1); + + /// + /// The FireBrick color. 0xB22222 + /// + public static readonly UIColor FireBrick = new (178.0f / 255.0f, 34.0f / 255.0f, 34.0f / 255.0f, 1); + + /// + /// The FloralWhite color. 0xFFFAF0 + /// + public static readonly UIColor FloralWhite = new (1, 250.0f / 255.0f, 240.0f / 255.0f, 1); + + /// + /// The ForestGreen color. 0x228B22 + /// + public static readonly UIColor ForestGreen = new (34.0f / 255.0f, 139.0f / 255.0f, 34.0f / 255.0f, 1); + + /// + /// The Fuchsia color. 0xFF00FF + /// + public static readonly UIColor Fuchsia = new (1, 0, 1, 1); + + /// + /// The Gainsboro color. 0xDCDCDC + /// + public static readonly UIColor Gainsboro = new (220.0f / 255.0f, 220.0f / 255.0f, 220.0f / 255.0f, 1); + + /// + /// The GhostWhite color. 0xF8F8FF + /// + public static readonly UIColor GhostWhite = new (248.0f / 255.0f, 248.0f / 255.0f, 1, 1); + + /// + /// The Gold color. 0xFFD700 + /// + public static readonly UIColor Gold = new (1, 215.0f / 255.0f, 0, 1); + + /// + /// The GoldenRod color. 0xDAA520 + /// + public static readonly UIColor GoldenRod = new (218.0f / 255.0f, 165.0f / 255.0f, 32.0f / 255.0f, 1); + + /// + /// The Gray color. 0xBEBEBE + /// + public static readonly UIColor Gray = new (190.0f / 255.0f, 190.0f / 255.0f, 190.0f / 255.0f, 1); + + /// + /// The Green color. 0x00FF00 + /// + public static readonly UIColor Green = new (0, 1, 0, 1); + + /// + /// The GreenYellow color. 0xADFF2F + /// + public static readonly UIColor GreenYellow = new (173.0f / 255.0f, 1, 47.0f / 255.0f, 1); + + /// + /// The Grey color. 0x808080 + /// + public static readonly UIColor Grey = new (128.0f / 255.0f, 128.0f / 255.0f, 128.0f / 255.0f, 1); + + /// + /// The Honeydew color. 0xF0FFF0 + /// + public static readonly UIColor Honeydew = new (240.0f / 255.0f, 1, 240.0f / 255.0f, 1); + + /// + /// The HotPink color. 0xFF69B4 + /// + public static readonly UIColor HotPink = new (1, 105.0f / 255.0f, 180.0f / 255.0f, 1); + + /// + /// The Indianred color. 0xCD5C5C + /// + public static readonly UIColor Indianred = new (205.0f / 255.0f, 92.0f / 255.0f, 92.0f / 255.0f, 1); + + /// + /// The Indigo color. 0x4B0082 + /// + public static readonly UIColor Indigo = new (75.0f / 255.0f, 0, 130.0f / 255.0f, 1); + + /// + /// The Ivory color. 0xFFFFF0 + /// + public static readonly UIColor Ivory = new (1, 1, 240.0f / 255.0f, 1); + + /// + /// The Khaki color. 0xF0E68C + /// + public static readonly UIColor Khaki = new (240.0f / 255.0f, 230.0f / 255.0f, 140.0f / 255.0f, 1); + + /// + /// The Lavender color. 0xE6E6FA + /// + public static readonly UIColor Lavender = new (230.0f / 255.0f, 230.0f / 255.0f, 250.0f / 255.0f, 1); + + /// + /// The LavenderBlush color. 0xFFF0F5 + /// + public static readonly UIColor LavenderBlush = new (1, 240.0f / 255.0f, 245.0f / 255.0f, 1); + + /// + /// The LawnGreen color. 0x7CFC00 + /// + public static readonly UIColor LawnGreen = new (124.0f / 255.0f, 252.0f / 255.0f, 0, 1); + + /// + /// The LemonChiffon color. 0xFFFACD + /// + public static readonly UIColor LemonChiffon = new (1, 250.0f / 255.0f, 205.0f / 255.0f, 1); + + /// + /// The LightBlue color. 0xADD8E6 + /// + public static readonly UIColor LightBlue = new (173.0f / 255.0f, 216.0f / 255.0f, 230.0f / 255.0f, 1); + + /// + /// The LightCoral color. 0xF08080 + /// + public static readonly UIColor LightCoral = new (240.0f / 255.0f, 128.0f / 255.0f, 128.0f / 255.0f, 1); + + /// + /// The LightCyan color. 0xE0FFFF + /// + public static readonly UIColor LightCyan = new (224.0f / 255.0f, 1, 1, 1); + + /// + /// The LightGoldenRodYellow color. 0xFAFAD2 + /// + public static readonly UIColor LightGoldenRodYellow = new (250.0f / 255.0f, 250.0f / 255.0f, 210.0f / 255.0f, 1); + + /// + /// The LightGray color. 0xD3D3D3 + /// + public static readonly UIColor LightGray = new (211.0f / 255.0f, 211.0f / 255.0f, 211.0f / 255.0f, 1); + + /// + /// The LightGreen color. 0x90EE90 + /// + public static readonly UIColor LightGreen = new (144.0f / 255.0f, 238.0f / 255.0f, 144.0f / 255.0f, 1); + + /// + /// The LightGrey color. 0xD3D3D3 + /// + public static readonly UIColor LightGrey = new (211.0f / 255.0f, 211.0f / 255.0f, 211.0f / 255.0f, 1); + + /// + /// The LightPink color. 0xFFB6C1 + /// + public static readonly UIColor LightPink = new (1, 182.0f / 255.0f, 193.0f / 255.0f, 1); + + /// + /// The LightSalmon color. 0xFFA07A + /// + public static readonly UIColor LightSalmon = new (1, 160.0f / 255.0f, 122.0f / 255.0f, 1); + + /// + /// The LightSeaGreen color. 0x20B2AA + /// + public static readonly UIColor LightSeaGreen = new (32.0f / 255.0f, 178.0f / 255.0f, 170.0f / 255.0f, 1); + + /// + /// The LightSkyBlue color. 0x87CEFA + /// + public static readonly UIColor LightSkyBlue = new (135.0f / 255.0f, 206.0f / 255.0f, 250.0f / 255.0f, 1); + + /// + /// The LightSlateGray color. 0x778899 + /// + public static readonly UIColor LightSlateGray = new (119.0f / 255.0f, 136.0f / 255.0f, 153.0f / 255.0f, 1); + + /// + /// The LightSlateGrey color. 0x778899 + /// + public static readonly UIColor LightSlateGrey = new (119.0f / 255.0f, 136.0f / 255.0f, 153.0f / 255.0f, 1); + + /// + /// The LightSteelBlue color. 0xB0C4DE + /// + public static readonly UIColor LightSteelBlue = new (176.0f / 255.0f, 196.0f / 255.0f, 222.0f / 255.0f, 1); + + /// + /// The LightYellow color. 0xFFFFE0 + /// + public static readonly UIColor LightYellow = new (1, 1, 224.0f / 255.0f, 1); + + /// + /// The Lime color. 0x00FF00 + /// + public static readonly UIColor Lime = new (0, 1, 0, 1); + + /// + /// The LimeGreen color. 0x32CD32 + /// + public static readonly UIColor LimeGreen = new (50.0f / 255.0f, 205.0f / 255.0f, 50.0f / 255.0f, 1); + + /// + /// The Linen color. 0xFAF0E6 + /// + public static readonly UIColor Linen = new (250.0f / 255.0f, 240.0f / 255.0f, 230.0f / 255.0f, 1); + + /// + /// The Magenta color. 0xFF00FF + /// + public static readonly UIColor Magenta = new (1, 0, 1, 1); + + /// + /// The Maroon color. 0xB03060 + /// + public static readonly UIColor Maroon = new (176.0f / 255.0f, 48.0f / 255.0f, 96.0f / 255.0f, 1); + + /// + /// The MediumAquaMarine color. 0x66CDAA + /// + public static readonly UIColor MediumAquaMarine = new (102.0f / 255.0f, 205.0f / 255.0f, 170.0f / 255.0f, 1); + + /// + /// The MediumBlue color. 0x0000CD + /// + public static readonly UIColor MediumBlue = new (0, 0, 205.0f / 255.0f, 1); + + /// + /// The MediumOrchid color. 0xBA55D3 + /// + public static readonly UIColor MediumOrchid = new (186.0f / 255.0f, 85.0f / 255.0f, 211.0f / 255.0f, 1); + + /// + /// The MediumPurple color. 0x9370DB + /// + public static readonly UIColor MediumPurple = new (147.0f / 255.0f, 112.0f / 255.0f, 219.0f / 255.0f, 1); + + /// + /// The MediumSeaGreen color. 0x3CB371 + /// + public static readonly UIColor MediumSeaGreen = new (60.0f / 255.0f, 179.0f / 255.0f, 113.0f / 255.0f, 1); + + /// + /// The MediumSlateBlue color. 0x7B68EE + /// + public static readonly UIColor MediumSlateBlue = new (123.0f / 255.0f, 104.0f / 255.0f, 238.0f / 255.0f, 1); + + /// + /// The MediumSpringGreen color. 0x00FA9A + /// + public static readonly UIColor MediumSpringGreen = new (0, 250.0f / 255.0f, 154.0f / 255.0f, 1); + + /// + /// The MediumTurquoise color. 0x48D1CC + /// + public static readonly UIColor MediumTurquoise = new (72.0f / 255.0f, 209.0f / 255.0f, 204.0f / 255.0f, 1); + + /// + /// The MediumVioletred color. 0xC71585 + /// + public static readonly UIColor MediumVioletred = new (199.0f / 255.0f, 21.0f / 255.0f, 133.0f / 255.0f, 1); + + /// + /// The MidnightBlue color. 0x191970 + /// + public static readonly UIColor MidnightBlue = new (25.0f / 255.0f, 25.0f / 255.0f, 112.0f / 255.0f, 1); + + /// + /// The MintCream color. 0xF5FFFA + /// + public static readonly UIColor MintCream = new (245.0f / 255.0f, 1, 250.0f / 255.0f, 1); + + /// + /// The MistyRose color. 0xFFE4E1 + /// + public static readonly UIColor MistyRose = new (1, 228.0f / 255.0f, 225.0f / 255.0f, 1); + + /// + /// The Moccasin color. 0xFFE4B5 + /// + public static readonly UIColor Moccasin = new (1, 228.0f / 255.0f, 181.0f / 255.0f, 1); + + /// + /// The NavajoWhite color. 0xFFDEAD + /// + public static readonly UIColor NavajoWhite = new (1, 222.0f / 255.0f, 173.0f / 255.0f, 1); + + /// + /// The Navy color. 0x000080 + /// + public static readonly UIColor Navy = new (0, 0, 128.0f / 255.0f, 1); + + /// + /// The OldLace color. 0xFDF5E6 + /// + public static readonly UIColor OldLace = new (253.0f / 255.0f, 245.0f / 255.0f, 230.0f / 255.0f, 1); + + /// + /// The Olive color. 0x808000 + /// + public static readonly UIColor Olive = new (128.0f / 255.0f, 128.0f / 255.0f, 0, 1); + + /// + /// The OliveDrab color. 0x6B8E23 + /// + public static readonly UIColor OliveDrab = new (107.0f / 255.0f, 142.0f / 255.0f, 35.0f / 255.0f, 1); + + /// + /// The Orange color. 0xFFA500 + /// + public static readonly UIColor Orange = new (1, 165.0f / 255.0f, 0, 1); + + /// + /// The OrangeRed color. 0xFF4500 + /// + public static readonly UIColor OrangeRed = new (1, 69.0f / 255.0f, 0, 1); + + /// + /// The Orchid color. 0xDA70D6 + /// + public static readonly UIColor Orchid = new (218.0f / 255.0f, 112.0f / 255.0f, 214.0f / 255.0f, 1); + + /// + /// The PaleGoldenRod color. 0xEEE8AA + /// + public static readonly UIColor PaleGoldenRod = new (238.0f / 255.0f, 232.0f / 255.0f, 170.0f / 255.0f, 1); + + /// + /// The PaleGreen color. 0x98FB98 + /// + public static readonly UIColor PaleGreen = new (152.0f / 255.0f, 251.0f / 255.0f, 152.0f / 255.0f, 1); + + /// + /// The PaleTurquoise color. 0xAFEEEE + /// + public static readonly UIColor PaleTurquoise = new (175.0f / 255.0f, 238.0f / 255.0f, 238.0f / 255.0f, 1); + + /// + /// The PaleVioletRed color. 0xDB7093 + /// + public static readonly UIColor PaleVioletRed = new (219.0f / 255.0f, 112.0f / 255.0f, 147.0f / 255.0f, 1); + + /// + /// The PapayaWhip color. 0xFFEFD5 + /// + public static readonly UIColor PapayaWhip = new (1, 239.0f / 255.0f, 213.0f / 255.0f, 1); + + /// + /// The PeachPuff color. 0xFFDAB9 + /// + public static readonly UIColor PeachPuff = new (1, 218.0f / 255.0f, 185.0f / 255.0f, 1); + + /// + /// The Peru color. 0xCD853F + /// + public static readonly UIColor Peru = new (205.0f / 255.0f, 133.0f / 255.0f, 63.0f / 255.0f, 1); + + /// + /// The Pink color. 0xFFC0CB + /// + public static readonly UIColor Pink = new (1, 192.0f / 255.0f, 203.0f / 255.0f, 1); + + /// + /// The Plum color. 0xDDA0DD + /// + public static readonly UIColor Plum = new (221.0f / 255.0f, 160.0f / 255.0f, 221.0f / 255.0f, 1); + + /// + /// The PowderBlue color. 0xB0E0E6 + /// + public static readonly UIColor PowderBlue = new (176.0f / 255.0f, 224.0f / 255.0f, 230.0f / 255.0f, 1); + + /// + /// The Purple color. 0xA020F0 + /// + public static readonly UIColor Purple = new (160.0f / 255.0f, 32.0f / 255.0f, 240.0f / 255.0f, 1); + + /// + /// The Red color. 0xFF0000 + /// + public static readonly UIColor Red = new (1, 0, 0, 1); + + /// + /// The RosyBrown color. 0xBC8F8F + /// + public static readonly UIColor RosyBrown = new (188.0f / 255.0f, 143.0f / 255.0f, 143.0f / 255.0f, 1); + + /// + /// The RoyalBlue color. 0x4169E1 + /// + public static readonly UIColor RoyalBlue = new (65.0f / 255.0f, 105.0f / 255.0f, 225.0f / 255.0f, 1); + + /// + /// The SaddleBrown color. 0x8B4513 + /// + public static readonly UIColor SaddleBrown = new (139.0f / 255.0f, 69.0f / 255.0f, 19.0f / 255.0f, 1); + + /// + /// The Salmon color. 0xFA8072 + /// + public static readonly UIColor Salmon = new (250.0f / 255.0f, 128.0f / 255.0f, 114.0f / 255.0f, 1); + + /// + /// The SandyBrown color. 0xF4A460 + /// + public static readonly UIColor SandyBrown = new (244.0f / 255.0f, 164.0f / 255.0f, 96.0f / 255.0f, 1); + + /// + /// The SeaGreen color. 0x2E8B57 + /// + public static readonly UIColor SeaGreen = new (46.0f / 255.0f, 139.0f / 255.0f, 87.0f / 255.0f, 1); + + /// + /// The SeaShell color. 0xFFF5EE + /// + public static readonly UIColor SeaShell = new (1, 245.0f / 255.0f, 238.0f / 255.0f, 1); + + /// + /// The Sienna color. 0xA0522D + /// + public static readonly UIColor Sienna = new (160.0f / 255.0f, 82.0f / 255.0f, 45.0f / 255.0f, 1); + + /// + /// The Silver color. 0xC0C0C0 + /// + public static readonly UIColor Silver = new (192.0f / 255.0f, 192.0f / 255.0f, 192.0f / 255.0f, 1); + + /// + /// The SkyBlue color. 0x87CEEB + /// + public static readonly UIColor SkyBlue = new (135.0f / 255.0f, 206.0f / 255.0f, 235.0f / 255.0f, 1); + + /// + /// The SlateBlue color. 0x6A5ACD + /// + public static readonly UIColor SlateBlue = new (106.0f / 255.0f, 90.0f / 255.0f, 205.0f / 255.0f, 1); + + /// + /// The SlateGray color. 0x708090 + /// + public static readonly UIColor SlateGray = new (112.0f / 255.0f, 128.0f / 255.0f, 144.0f / 255.0f, 1); + + /// + /// The SlateGrey color. 0x708090 + /// + public static readonly UIColor SlateGrey = new (112.0f / 255.0f, 128.0f / 255.0f, 144.0f / 255.0f, 1); + + /// + /// The Snow color. 0xFFFAFA + /// + public static readonly UIColor Snow = new (1, 250.0f / 255.0f, 250.0f / 255.0f, 1); + + /// + /// The SpringGreen color. 0x00FF7F + /// + public static readonly UIColor SpringGreen = new (0, 1, 127.0f / 255.0f, 1); + + /// + /// The SteelBlue color. 0x4682B4 + /// + public static readonly UIColor SteelBlue = new (70.0f / 255.0f, 130.0f / 255.0f, 180.0f / 255.0f, 1); + + /// + /// The Tan color. 0xD2B48C + /// + public static readonly UIColor Tan = new (210.0f / 255.0f, 180.0f / 255.0f, 140.0f / 255.0f, 1); + + /// + /// The Teal color. 0x008080 + /// + public static readonly UIColor Teal = new (0, 128.0f / 255.0f, 128.0f / 255.0f, 1); + + /// + /// The Thistle color. 0xD8BFD8 + /// + public static readonly UIColor Thistle = new (216.0f / 255.0f, 191.0f / 255.0f, 216.0f / 255.0f, 1); + + /// + /// The Tomato color. 0xFF6347 + /// + public static readonly UIColor Tomato = new (1, 99.0f / 255.0f, 71.0f / 255.0f, 1); + + /// + /// The Turquoise color. 0x40E0D0 + /// + public static readonly UIColor Turquoise = new (64.0f / 255.0f, 224.0f / 255.0f, 208.0f / 255.0f, 1); + + /// + /// The Violet color. 0xEE82EE + /// + public static readonly UIColor Violet = new (238.0f / 255.0f, 130.0f / 255.0f, 238.0f / 255.0f, 1); + + /// + /// The Wheat color. 0xF5DEB3 + /// + public static readonly UIColor Wheat = new (245.0f / 255.0f, 222.0f / 255.0f, 179.0f / 255.0f, 1); + + /// + /// The White color. 0xFFFFFF + /// + public static readonly UIColor White = new (1, 1, 1, 1); + + /// + /// The WhiteSmoke color. 0xF5F5F5 + /// + public static readonly UIColor WhiteSmoke = new (245.0f / 255.0f, 245.0f / 255.0f, 245.0f / 255.0f, 1); + + /// + /// The Yellow color. 0xFFFF00 + /// + public static readonly UIColor Yellow = new (1, 1, 0, 1); + + /// + /// The YellowGreen color. 0x9ACD32 + /// + public static readonly UIColor YellowGreen = new (154.0f / 255.0f, 205.0f / 255.0f, 50.0f / 255.0f, 1); + } +} diff --git a/src/Tizen.NUI/src/devel/Lite/UIColorCosntants.cs b/src/Tizen.NUI/src/devel/Lite/UIColorCosntants.cs deleted file mode 100644 index 8b6c24b44..000000000 --- a/src/Tizen.NUI/src/devel/Lite/UIColorCosntants.cs +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Copyright(c) 2025 Samsung Electronics Co., Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -using System; -using System.ComponentModel; -using Tizen.NUI.BaseComponents; - -namespace Tizen.NUI -{ - public partial struct UIColor - { - /// - /// The default color. (This is to distinguish from transparent) - /// - public static readonly UIColor Default = new (-1, -1, -1, -1); - - /// - /// The transparent color. - /// - public static readonly UIColor Transparent = new (0, 0, 0, 0); - - /// - /// The transparent color. - /// - public static readonly UIColor Black = new (0, 0, 0, 1); - - /// - /// The white color. - /// - public static readonly UIColor White = new (1, 1, 1, 1); - - /// - /// The gray color. - /// - public static readonly UIColor Gray = new (0.5f, 0.5f, 0.5f, 1); - - /// - /// The red color. - /// - public static readonly UIColor Red = new (1, 0, 0, 1); - - /// - /// The green color. - /// - public static readonly UIColor Green = new (0, 1, 0, 1); - - /// - /// The blue color. - /// - public static readonly UIColor Blue = new (0, 0, 1, 1); - - /// - /// The yellow color. - /// - public static readonly UIColor Yellow = new (1, 1, 0, 1); - - /// - /// The cyan color. - /// - public static readonly UIColor Cyan = new (0, 1, 1, 1); - - /// - /// The magenta color. - /// - public static readonly UIColor Magenta = new (1, 0, 1, 1); - } -} diff --git a/src/Tizen.NUI/src/public/Common/Color.cs b/src/Tizen.NUI/src/public/Common/Color.cs index 666609b75..258efbfc3 100755 --- a/src/Tizen.NUI/src/public/Common/Color.cs +++ b/src/Tizen.NUI/src/public/Common/Color.cs @@ -921,6 +921,7 @@ namespace Tizen.NUI internal static new void Preload() { // Do nothing. Just call for load static values. + UIColor.Preload(); } ///