|
2 | 2 | // https://github.com/vincevargadev/kolors_flutter |
3 | 3 |
|
4 | 4 | import 'dart:ui'; |
| 5 | +import 'package:flutter/foundation.dart'; |
5 | 6 |
|
6 | 7 | /// All the named web colors. |
7 | 8 | class WebColors { |
@@ -146,6 +147,7 @@ class WebColors { |
146 | 147 | static const slateGray = Color(0xFF708090); |
147 | 148 | static const darkSlateGray = Color(0xFF2F4F4F); |
148 | 149 | static const black = Color(0xFF000000); |
| 150 | + static const transparent = Color(0); |
149 | 151 |
|
150 | 152 | static const values = [ |
151 | 153 | indianRed, |
@@ -437,5 +439,40 @@ class WebColors { |
437 | 439 | 'slategray': slateGray, |
438 | 440 | 'darkslategray': darkSlateGray, |
439 | 441 | 'black': black, |
| 442 | + |
| 443 | + // the follow colors were part of the CSS2 standard, but have since been removed. |
| 444 | + // however these names tend to show up when copy/pasting from Microsoft products |
| 445 | + // into Quill on web. W3C recommends using a default color for these. |
| 446 | + // |
| 447 | + // For more info, see here |
| 448 | + // http://w3.org/TR/CSS2/ui.html#system-colors |
| 449 | + 'activeborder': black, |
| 450 | + 'activecaption': black, |
| 451 | + 'appworkspace': transparent, |
| 452 | + 'background': transparent, |
| 453 | + 'buttonface': transparent, |
| 454 | + 'buttonhighlight': transparent, |
| 455 | + 'buttonshadow': transparent, |
| 456 | + 'buttontext': black, |
| 457 | + 'captiontext': black, |
| 458 | + 'graytext': gray, |
| 459 | + 'highlight': gray, |
| 460 | + 'highlighttext': black, |
| 461 | + 'inactiveborder': black, |
| 462 | + 'inactivecaption': black, |
| 463 | + 'inactivecaptiontext': black, |
| 464 | + 'infobackground': transparent, |
| 465 | + 'infotext': black, |
| 466 | + 'menu': transparent, |
| 467 | + 'menutext': black, |
| 468 | + 'scrollbar': transparent, |
| 469 | + 'threeddarkshadow': transparent, |
| 470 | + 'threedface': transparent, |
| 471 | + 'threedhighlight': transparent, |
| 472 | + 'threedlightshadow': transparent, |
| 473 | + 'threedshadow': transparent, |
| 474 | + 'window': transparent, |
| 475 | + 'windowframe': black, |
| 476 | + 'windowtext': black, |
440 | 477 | }; |
441 | 478 | } |
0 commit comments