5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-19 02:19:31 +08:00

Terminal output component

This commit is contained in:
Lea Anthony 2020-10-12 06:56:22 +11:00
parent 5a141d343e
commit be952ba2da
No known key found for this signature in database
GPG Key ID: 33DAF7BB90A58405

View File

@ -0,0 +1,37 @@
<script>
import { darkMode } from '../Store';
$: termClass = $darkMode ? 'faketerm-dark' : 'faketerm-light';
</script>
<div class="common {termClass}">
<pre>
<slot></slot>
</pre>
</div>
<style>
pre {
margin: 0;
padding: 5px;
}
.common {
font-family: 'Courier New', Courier, monospace;
padding: 5px;
white-space: pre-line;
margin-top: 10px;
margin-bottom: 10px;
border: 1px solid #5555;
}
.faketerm-dark {
background-color: black;
color: white;
}
.faketerm-light {
background-color: #ddd;
color: black;
}
</style>