This commit is contained in:
meganrogge 2022-02-11 10:46:07 -06:00
parent 5245ce3866
commit f1bd49efdf
No known key found for this signature in database
GPG key ID: 1367081C49377970
2 changed files with 2 additions and 8 deletions

View file

@ -414,12 +414,6 @@
}
.terminal-command-decoration {
transition: opacity 0.5s;
transition: all .2s ease-in-out;
margin-left: -1%;
width: 50%;
}
.terminal-command-decoration:hover {
transform: scale(2, 1);
}

View file

@ -170,8 +170,8 @@ export class DecorationAddon extends Disposable implements ITerminalAddon {
}
registerThemingParticipant((theme: IColorTheme, collector: ICssStyleCollector) => {
const commandDecorationSuccessColor = theme.getColor(TERMINAL_COMMAND_DECORATION_DEFAULT_BACKGROUND_COLOR);
collector.addRule(`.${DecorationSelector.CommandDecoration} { background-color: ${commandDecorationSuccessColor ? commandDecorationSuccessColor.toString() : ''}; }`);
const commandDecorationDefaultColor = theme.getColor(TERMINAL_COMMAND_DECORATION_DEFAULT_BACKGROUND_COLOR);
collector.addRule(`.${DecorationSelector.CommandDecoration} { background-color: ${commandDecorationDefaultColor ? commandDecorationDefaultColor.toString() : ''}; }`);
const commandDecorationErrorColor = theme.getColor(TERMINAL_COMMAND_DECORATION_ERROR_BACKGROUND_COLOR);
collector.addRule(`.${DecorationSelector.CommandDecoration}.${DecorationSelector.Error} { background-color: ${commandDecorationErrorColor ? commandDecorationErrorColor.toString() : ''}; }`);
});