Remove selection color test buttons
There's too many theme colors, we'll leave it to the console
This commit is contained in:
@@ -120,8 +120,6 @@ const actionElements = {
|
|||||||
findResults: document.querySelector('#find-results')
|
findResults: document.querySelector('#find-results')
|
||||||
};
|
};
|
||||||
const paddingElement = document.getElementById('padding') as HTMLInputElement;
|
const paddingElement = document.getElementById('padding') as HTMLInputElement;
|
||||||
const selectionBackgroundElement = document.getElementById('selectionBackground') as HTMLInputElement;
|
|
||||||
const selectionInactiveBackgroundElement = document.getElementById('selectionInactiveBackground') as HTMLInputElement;
|
|
||||||
|
|
||||||
const xtermjsTheme = {
|
const xtermjsTheme = {
|
||||||
foreground: '#F8F8F8',
|
foreground: '#F8F8F8',
|
||||||
@@ -149,18 +147,6 @@ function setPadding(): void {
|
|||||||
addons.fit.instance.fit();
|
addons.fit.instance.fit();
|
||||||
}
|
}
|
||||||
|
|
||||||
function setSelectionInactiveBackground(): void {
|
|
||||||
const theme = { ...term.options.theme };
|
|
||||||
theme.selectionInactiveBackground = selectionInactiveBackgroundElement.value;
|
|
||||||
term.options.theme = theme;
|
|
||||||
}
|
|
||||||
|
|
||||||
function setSelectionBackground(): void {
|
|
||||||
const theme = { ...term.options.theme };
|
|
||||||
theme.selectionBackground = selectionBackgroundElement.value;
|
|
||||||
term.options.theme = theme;
|
|
||||||
}
|
|
||||||
|
|
||||||
function getSearchOptions(): ISearchOptions {
|
function getSearchOptions(): ISearchOptions {
|
||||||
return {
|
return {
|
||||||
regex: (document.getElementById('regex') as HTMLInputElement).checked,
|
regex: (document.getElementById('regex') as HTMLInputElement).checked,
|
||||||
@@ -349,8 +335,6 @@ function createTerminal(): void {
|
|||||||
resizeObserver.observe(terminalContainer);
|
resizeObserver.observe(terminalContainer);
|
||||||
|
|
||||||
addDomListener(paddingElement, 'change', setPadding);
|
addDomListener(paddingElement, 'change', setPadding);
|
||||||
addDomListener(selectionInactiveBackgroundElement, 'change', setSelectionInactiveBackground);
|
|
||||||
addDomListener(selectionBackgroundElement, 'change', setSelectionBackground);
|
|
||||||
|
|
||||||
addDomListener(actionElements.findNext, 'keydown', (e) => {
|
addDomListener(actionElements.findNext, 'keydown', (e) => {
|
||||||
if (e.key === 'Enter') {
|
if (e.key === 'Enter') {
|
||||||
|
|||||||
@@ -75,14 +75,6 @@
|
|||||||
<label for="padding">Padding</label>
|
<label for="padding">Padding</label>
|
||||||
<input type="number" id="padding" />
|
<input type="number" id="padding" />
|
||||||
</div>
|
</div>
|
||||||
<div style="display: inline-block; margin-right: 16px;">
|
|
||||||
<label for="selectionBackground">SelectionBackground</label>
|
|
||||||
<input type="text" id="selectionBackground" />
|
|
||||||
</div>
|
|
||||||
<div style="display: inline-block; margin-right: 16px;">
|
|
||||||
<label for="selectionInactiveBackground">SelectionInactiveBackground</label>
|
|
||||||
<input type="text" id="selectionInactiveBackground" />
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div id="test" class="tabContent">
|
<div id="test" class="tabContent">
|
||||||
<h3>Test</h3>
|
<h3>Test</h3>
|
||||||
|
|||||||
Reference in New Issue
Block a user