mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-07-08 11:56:36 +00:00
parent
87ebcbe77e
commit
93291b6811
@ -119,30 +119,26 @@ export class LibraryListWidget extends ListWidget<
|
|||||||
message.appendChild(question);
|
message.appendChild(question);
|
||||||
const result = await new MessageBoxDialog({
|
const result = await new MessageBoxDialog({
|
||||||
title: nls.localize(
|
title: nls.localize(
|
||||||
'arduino/library/dependenciesForLibrary',
|
'arduino/library/installLibraryDependencies',
|
||||||
'Dependencies for library {0}:{1}',
|
'Install library dependencies'
|
||||||
item.name,
|
|
||||||
version
|
|
||||||
),
|
),
|
||||||
message,
|
message,
|
||||||
buttons: [
|
buttons: [
|
||||||
nls.localize('vscode/issueMainService/cancel', 'Cancel'),
|
|
||||||
nls.localize(
|
nls.localize(
|
||||||
'arduino/library/installOnly',
|
'arduino/library/installWithoutDependencies',
|
||||||
'Install {0} only',
|
'Install without dependencies'
|
||||||
item.name
|
|
||||||
),
|
),
|
||||||
nls.localize('arduino/library/installAll', 'Install all'),
|
nls.localize('arduino/library/installAll', 'Install All'),
|
||||||
],
|
],
|
||||||
maxWidth: 740, // Aligned with `settings-dialog.css`.
|
maxWidth: 740, // Aligned with `settings-dialog.css`.
|
||||||
}).open();
|
}).open();
|
||||||
|
|
||||||
if (result) {
|
if (result) {
|
||||||
const { response } = result;
|
const { response } = result;
|
||||||
if (response === 1) {
|
if (response === 0) {
|
||||||
// Current only
|
// Current only
|
||||||
installDependencies = false;
|
installDependencies = false;
|
||||||
} else if (response === 2) {
|
} else if (response === 1) {
|
||||||
// All
|
// All
|
||||||
installDependencies = true;
|
installDependencies = true;
|
||||||
}
|
}
|
||||||
@ -203,7 +199,11 @@ class MessageBoxDialog extends AbstractDialog<MessageBoxDialog.Result> {
|
|||||||
const button = this.createButton(text);
|
const button = this.createButton(text);
|
||||||
const isPrimaryButton =
|
const isPrimaryButton =
|
||||||
index === (options.buttons ? options.buttons.length - 1 : 0);
|
index === (options.buttons ? options.buttons.length - 1 : 0);
|
||||||
button.classList.add(isPrimaryButton ? 'main' : 'secondary');
|
button.title = text;
|
||||||
|
button.classList.add(
|
||||||
|
isPrimaryButton ? 'main' : 'secondary',
|
||||||
|
'message-box-dialog-button'
|
||||||
|
);
|
||||||
this.controlPanel.appendChild(button);
|
this.controlPanel.appendChild(button);
|
||||||
this.toDisposeOnDetach.push(
|
this.toDisposeOnDetach.push(
|
||||||
addEventListener(button, 'click', () => {
|
addEventListener(button, 'click', () => {
|
||||||
|
@ -109,6 +109,13 @@ button.secondary[disabled], .theia-button.secondary[disabled] {
|
|||||||
background-color: var(--theia-secondaryButton-background);
|
background-color: var(--theia-secondaryButton-background);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
button.theia-button.message-box-dialog-button {
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
/* To make the progress-bar slightly thicker, and use the color from the status bar */
|
/* To make the progress-bar slightly thicker, and use the color from the status bar */
|
||||||
.theia-progress-bar-container {
|
.theia-progress-bar-container {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
@ -254,12 +254,12 @@
|
|||||||
"addZip": "Add .ZIP Library...",
|
"addZip": "Add .ZIP Library...",
|
||||||
"arduinoLibraries": "Arduino libraries",
|
"arduinoLibraries": "Arduino libraries",
|
||||||
"contributedLibraries": "Contributed libraries",
|
"contributedLibraries": "Contributed libraries",
|
||||||
"dependenciesForLibrary": "Dependencies for library {0}:{1}",
|
|
||||||
"include": "Include Library",
|
"include": "Include Library",
|
||||||
"installAll": "Install all",
|
"installAll": "Install All",
|
||||||
|
"installLibraryDependencies": "Install library dependencies",
|
||||||
"installMissingDependencies": "Would you like to install all the missing dependencies?",
|
"installMissingDependencies": "Would you like to install all the missing dependencies?",
|
||||||
"installOneMissingDependency": "Would you like to install the missing dependency?",
|
"installOneMissingDependency": "Would you like to install the missing dependency?",
|
||||||
"installOnly": "Install {0} only",
|
"installWithoutDependencies": "Install without dependencies",
|
||||||
"installedSuccessfully": "Successfully installed library {0}:{1}",
|
"installedSuccessfully": "Successfully installed library {0}:{1}",
|
||||||
"libraryAlreadyExists": "A library already exists. Do you want to overwrite it?",
|
"libraryAlreadyExists": "A library already exists. Do you want to overwrite it?",
|
||||||
"manageLibraries": "Manage Libraries...",
|
"manageLibraries": "Manage Libraries...",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user