2021-02-17 17:46:27 +00:00
|
|
|
<script lang="ts">
|
2021-02-17 19:08:16 +00:00
|
|
|
import WidgetContainer from './widgets/WidgetContainer.svelte';
|
2021-02-17 17:46:27 +00:00
|
|
|
import WidgetIconPanel from './widgets/WidgetIconPanel.svelte';
|
2021-02-17 19:08:16 +00:00
|
|
|
import { leftPanelWidth, selectedWidget } from './stores';
|
2021-02-17 17:46:27 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<div class="theme-dark">
|
|
|
|
<div class="iconbar">
|
|
|
|
<WidgetIconPanel />
|
|
|
|
</div>
|
|
|
|
<div class="statusbar" />
|
2021-02-17 19:08:16 +00:00
|
|
|
{#if $selectedWidget}
|
|
|
|
<div class="leftpanel" style="width: {$leftPanelWidth}px">
|
|
|
|
<WidgetContainer />
|
|
|
|
</div>
|
|
|
|
{/if}
|
2021-02-17 17:46:27 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
:root {
|
|
|
|
--widget-icon-size: 50px;
|
|
|
|
--statusbar-height: 20px;
|
|
|
|
}
|
|
|
|
.iconbar {
|
|
|
|
position: fixed;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
bottom: var(--statusbar-height);
|
|
|
|
width: var(--widget-icon-size);
|
2021-02-17 18:26:48 +00:00
|
|
|
background: var(--theme-widget_background);
|
2021-02-17 17:46:27 +00:00
|
|
|
}
|
|
|
|
.statusbar {
|
|
|
|
position: fixed;
|
2021-02-17 18:26:48 +00:00
|
|
|
background: var(--theme-statusbar_background);
|
2021-02-17 17:46:27 +00:00
|
|
|
height: var(--statusbar-height);
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
}
|
2021-02-17 19:08:16 +00:00
|
|
|
.leftpanel {
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
left: var(--widget-icon-size);
|
|
|
|
bottom: var(--statusbar-height);
|
|
|
|
background-color: var(--theme-left_background);
|
|
|
|
display: flex;
|
|
|
|
}
|
2021-02-17 17:46:27 +00:00
|
|
|
</style>
|