1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

Change Color HTML conversion from ARGB to RGBA

Also add support for 3 and 4 digit values in C#. Now it actually matches the HTML/CSS spec.
This commit is contained in:
Aaron Franke
2020-09-01 02:03:30 -04:00
parent 2cfc5b8680
commit ecd6a893b4
5 changed files with 114 additions and 114 deletions

View File

@@ -206,8 +206,8 @@ void ThemeEditor::_save_template_cbk(String fname) {
file->store_line("; [value] examples:");
file->store_line("; ");
file->store_line("; Type.item = 6 ; numeric constant. ");
file->store_line("; Type.item = #FF00FF ; HTML color ");
file->store_line("; Type.item = #55FF00FF ; HTML color with alpha 55.");
file->store_line("; Type.item = #FF00FF ; HTML color (magenta).");
file->store_line("; Type.item = #FF00FF55 ; HTML color (magenta with alpha 0x55).");
file->store_line("; Type.item = icon(image.png) ; icon in a png file (relative to theme file).");
file->store_line("; Type.item = font(font.xres) ; font in a resource (relative to theme file).");
file->store_line("; Type.item = sbox(stylebox.xres) ; stylebox in a resource (relative to theme file).");