godotengine / godot-vscode-plugin

Godot development tools for VSCode
MIT License
1.59k stars 169 forks source link

Display color picker when editing colors #643

Open WeaverSong opened 7 months ago

WeaverSong commented 7 months ago

Godot version

v4.3.dev5.official [c9c17d6ca]

VS Code version

1.88.0

Godot Tools VS Code extension version

2.0.0

System information

Fedora Linux 39 (KDE Plasma)

Problem statement

It's extremely inconvenient to edit colors manually, and currently the best way to do so seems to be to switch back to Godot every time and find/create a node with a color dialog, or export every color.

Proposed solution

Add/support a simple color picker for Godot's Color format.

Calinou commented 7 months ago

Does VS Code have a built-in color picker control? If not, you may want to check for third-party color picker extensions; some of them might support Godot's Color(R, G, B[, A]) format already.

If there's an extension that works well with GDScript, we could recommend it in the extension's README :slightly_smiling_face:

DaelonSuzuka commented 7 months ago

Well, here's quick proof-of-concept:

Code_nKrSkts838

VSCode's built-in color picker is so bad that I honestly don't see myself using this.

Calinou commented 7 months ago

VSCode's built-in color picker is so bad that I honestly don't see myself using this.

It certainly has room for improvement, but I think many will appreciate the inline color preview next to each Color() declaration.