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:
parent
5a141d343e
commit
be952ba2da
37
v2/test/kitchensink/frontend/src/components/FakeTerm.svelte
Normal file
37
v2/test/kitchensink/frontend/src/components/FakeTerm.svelte
Normal 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>
|
Loading…
Reference in New Issue
Block a user