From 8ef407f44e79d1d6e031de31859a8a0aed947899 Mon Sep 17 00:00:00 2001 From: pngwn Date: Mon, 20 Jan 2020 16:47:35 +0000 Subject: [PATCH] Basic implementation of sidebar design. --- packages/builder/src/global.css | 5 +- .../userInterface/ComponentsHierarchy.svelte | 60 ++++++++++--------- .../userInterface/UserInterfaceRoot.svelte | 39 +++++++++--- 3 files changed, 66 insertions(+), 38 deletions(-) diff --git a/packages/builder/src/global.css b/packages/builder/src/global.css index b790c1f242..2418fffa21 100644 --- a/packages/builder/src/global.css +++ b/packages/builder/src/global.css @@ -7,7 +7,7 @@ --primary5: #454ca00c; --primarydark: #3F448A; - --secondary100: #162B4DFF; + --secondary100:#828fa5; --secondary75: #162B4DBF; --secondary50: #162B4D80; --secondary25: #162B4D40; @@ -52,6 +52,9 @@ --heavybodytext: var(--fontbold) "regular" var(--secondary100) 16pt; --quotation: var(--fontnormal) "italics" var(--darkslate) 16pt; --smallheavybodytext: var(--fontbold) "regular" var(--secondary100) 14pt; + + --background-button: #e6eeff; + --button-text: #0055ff; } html, body { diff --git a/packages/builder/src/userInterface/ComponentsHierarchy.svelte b/packages/builder/src/userInterface/ComponentsHierarchy.svelte index add1165f60..6afcd68477 100644 --- a/packages/builder/src/userInterface/ComponentsHierarchy.svelte +++ b/packages/builder/src/userInterface/ComponentsHierarchy.svelte @@ -1,9 +1,9 @@ -
- +
+ {#each subfolders as folder}
expandFolder(folder)}> {@html getIcon(folder.isExpanded ? "chevron-down" : "chevron-right", "16")} {folder.name} {#if folder.isExpanded} - {/if}
@@ -137,7 +137,7 @@ $: { {#each componentsThisLevel as component}
store.setCurrentScreen(component.component.name)}> - {@html getIcon("circle", "7")} + {component.title}
{/each} @@ -147,31 +147,33 @@ $: { \ No newline at end of file + diff --git a/packages/builder/src/userInterface/UserInterfaceRoot.svelte b/packages/builder/src/userInterface/UserInterfaceRoot.svelte index 3c9896a022..deadd829e6 100644 --- a/packages/builder/src/userInterface/UserInterfaceRoot.svelte +++ b/packages/builder/src/userInterface/UserInterfaceRoot.svelte @@ -41,14 +41,15 @@ const settings = () => {