microsoft/Terminal

Data URI scheme support for images in settings.json

Open

#6747 aperta il 1 lug 2020

Vedi su GitHub
 (1 commento) (7 reazioni) (0 assegnatari)C++ (3212 fork)batch import
Area-SettingsHelp WantedIssue-TaskPriority-2Product-Terminal

Metriche repository

Star
 (35.764 star)
Metriche merge PR
 (Merge medio 27g 19h) (24 PR mergiate in 30 g)

Descrizione

Description of the new feature/enhancement

It would be great to be able to set image files (like icon or backgroundImage) in settings.json using data URI scheme. This could be useful when making backups or clones of Windows terminal settings, when syncing them with other devices, etc., especially when our custom profiles are concerned.

Proposed technical implementation details

An example fragment from settings.json for a custom icon:

{
    "guid": "{7895828e-1e14-4068-89b4-582567b7495e}",
    "name": "MySQL",
    "commandline": "wsl.exe mysql -u username -p",
    "hidden": false,
    "icon": "data:image/png;base64,iVBORw0KG..............goAJRU5ErkJggg=="
}

Guida contributor