Skip to content

Minor fixes #496

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,386 changes: 707 additions & 679 deletions arduino-ide-extension/arduino-icons.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -79,16 +79,6 @@ export class EditContributions extends Contribution {
{ execute: () => this.run('editor.action.formatDocument') }
);
registry.registerCommand(EditContributions.Commands.COPY_FOR_FORUM, {
execute: async () => {
const value = await this.currentValue();
if (value !== undefined) {
this.clipboardService.writeText(`[code]
${value}
[/code]`);
}
},
});
registry.registerCommand(EditContributions.Commands.COPY_FOR_GITHUB, {
execute: async () => {
const value = await this.currentValue();
if (value !== undefined) {
Expand All @@ -111,26 +101,21 @@ ${value}
});
registry.registerMenuAction(ArduinoMenus.EDIT__TEXT_CONTROL_GROUP, {
commandId: EditContributions.Commands.COPY_FOR_FORUM.id,
label: 'Copy for Forum',
label: 'Copy for Forum (Markdown)',
order: '2',
});
registry.registerMenuAction(ArduinoMenus.EDIT__TEXT_CONTROL_GROUP, {
commandId: EditContributions.Commands.COPY_FOR_GITHUB.id,
label: 'Copy for GitHub',
order: '3',
});
registry.registerMenuAction(ArduinoMenus.EDIT__TEXT_CONTROL_GROUP, {
commandId: CommonCommands.PASTE.id,
order: '4',
order: '3',
});
registry.registerMenuAction(ArduinoMenus.EDIT__TEXT_CONTROL_GROUP, {
commandId: CommonCommands.SELECT_ALL.id,
order: '5',
order: '4',
});
registry.registerMenuAction(ArduinoMenus.EDIT__TEXT_CONTROL_GROUP, {
commandId: EditContributions.Commands.GO_TO_LINE.id,
label: 'Go to Line...',
order: '6',
order: '5',
});

registry.registerMenuAction(ArduinoMenus.EDIT__CODE_CONTROL_GROUP, {
Expand Down Expand Up @@ -195,11 +180,6 @@ ${value}
keybinding: 'CtrlCmd+Shift+C',
when: 'editorFocus',
});
registry.registerKeybinding({
command: EditContributions.Commands.COPY_FOR_GITHUB.id,
keybinding: 'CtrlCmd+Alt+C',
when: 'editorFocus',
});
registry.registerKeybinding({
command: EditContributions.Commands.GO_TO_LINE.id,
keybinding: 'CtrlCmd+L',
Expand Down Expand Up @@ -280,9 +260,6 @@ export namespace EditContributions {
export const COPY_FOR_FORUM: Command = {
id: 'arduino-copy-for-forum',
};
export const COPY_FOR_GITHUB: Command = {
id: 'arduino-copy-for-github',
};
export const GO_TO_LINE: Command = {
id: 'arduino-go-to-line',
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export class VerifySketch extends SketchContribution {
});
registry.registerMenuAction(ArduinoMenus.SKETCH__MAIN_GROUP, {
commandId: VerifySketch.Commands.EXPORT_BINARIES.id,
label: 'Export compiled Binary',
label: 'Export Compiled Binary',
order: '3',
});
}
Expand Down
3 changes: 3 additions & 0 deletions arduino-ide-extension/src/browser/style/fonts.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ i {
-moz-osx-font-smoothing: grayscale;
}

.fa-reload:before {
content: "\e900";
}
.fa-asterisk:before {
content: "\f069";
}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified arduino-ide-extension/src/browser/style/fonts/FontAwesome.ttf
Binary file not shown.
Binary file modified arduino-ide-extension/src/browser/style/fonts/FontAwesome.woff
Binary file not shown.
4 changes: 4 additions & 0 deletions arduino-ide-extension/src/browser/style/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,7 @@ button.theia-button.main {
align-items: center;
white-space: nowrap;
}

.fa-reload {
font-size: 14px;
}
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export class UserStatus extends React.Component<
</div>
<div className="actions item flex-line">
<div
className={`refresh-icon ${
className={`fa fa-reload ${
(this.state.refreshing && 'rotating') || ''
}`}
style={{ cursor: 'pointer' }}
Expand Down