From 6304bf5564bc91695e01ad9695dee17fc3f552e0 Mon Sep 17 00:00:00 2001 From: Jan Prochazka Date: Thu, 25 Nov 2021 19:02:52 +0100 Subject: [PATCH] statusbar styling --- packages/web/public/dimensions.css | 2 +- packages/web/src/icons/FontIcon.svelte | 15 ++++++++-- packages/web/src/plugins/ThemeDark.svelte | 5 ++-- packages/web/src/plugins/ThemeLight.svelte | 5 ++-- packages/web/src/widgets/StatusBar.svelte | 32 ++++++++++++---------- 5 files changed, 37 insertions(+), 22 deletions(-) diff --git a/packages/web/public/dimensions.css b/packages/web/public/dimensions.css index cef75b50..e4eec0b6 100644 --- a/packages/web/public/dimensions.css +++ b/packages/web/public/dimensions.css @@ -1,6 +1,6 @@ :root { --dim-widget-icon-size: 60px; - --dim-statusbar-height: 20px; + --dim-statusbar-height: 22px; --dim-left-panel-width: 300px; --dim-tabs-panel-height: 53px; --dim-tabs-height: 33px; diff --git a/packages/web/src/icons/FontIcon.svelte b/packages/web/src/icons/FontIcon.svelte index 53c645a0..2be8b9c6 100644 --- a/packages/web/src/icons/FontIcon.svelte +++ b/packages/web/src/icons/FontIcon.svelte @@ -1,6 +1,8 @@ - + + + diff --git a/packages/web/src/plugins/ThemeDark.svelte b/packages/web/src/plugins/ThemeDark.svelte index d1ade8e4..76f5ab66 100644 --- a/packages/web/src/plugins/ThemeDark.svelte +++ b/packages/web/src/plugins/ThemeDark.svelte @@ -37,6 +37,7 @@ --theme-bg-magenta: #551c3b; /* magenta-3 */ --theme-font-inv-1: #ffffff; + --theme-font-inv-15: #dedede; --theme-font-inv-2: #b3b3b3; --theme-font-inv-3: #808080; --theme-font-inv-4: #4d4d4d; @@ -52,8 +53,8 @@ --theme-bg-selected: #15395b; /* blue-3 */ --theme-bg-selected-point: #1765ad; /* blue-5 */ - --theme-bg-statusbar-inv: blue; - --theme-bg-statusbar-inv-hover: #4040FF; + --theme-bg-statusbar-inv: #0050b3; + --theme-bg-statusbar-inv-hover: #096dd9; --theme-bg-modalheader: rgb(43, 60, 61); --theme-bg-button-inv: #004488; diff --git a/packages/web/src/plugins/ThemeLight.svelte b/packages/web/src/plugins/ThemeLight.svelte index 2ded7ab5..e31f4d2b 100644 --- a/packages/web/src/plugins/ThemeLight.svelte +++ b/packages/web/src/plugins/ThemeLight.svelte @@ -30,6 +30,7 @@ --theme-bg-magenta: #ffadd2; /* magenta-3 */ --theme-font-inv-1: #ffffff; + --theme-font-inv-15: #dedede; --theme-font-inv-2: #b3b3b3; --theme-font-inv-3: #808080; --theme-font-inv-4: #4d4d4d; @@ -46,8 +47,8 @@ --theme-bg-selected-point: #40a9ff; /* blue-5 */ - --theme-bg-statusbar-inv: blue; - --theme-bg-statusbar-inv-hover: #4040FF; + --theme-bg-statusbar-inv: #0050b3; + --theme-bg-statusbar-inv-hover: #096dd9; --theme-bg-modalheader: #eff; --theme-bg-button-inv: #337ab7; diff --git a/packages/web/src/widgets/StatusBar.svelte b/packages/web/src/widgets/StatusBar.svelte index fde50b11..17420c8b 100644 --- a/packages/web/src/widgets/StatusBar.svelte +++ b/packages/web/src/widgets/StatusBar.svelte @@ -65,46 +65,46 @@
{#if databaseName}
- + {databaseName}
{/if} {#if connectionLabel}
- + {connectionLabel}
{/if} {#if connection && connection.user}
- + {connection.user}
{/if} {#if connection && $status}
visibleCommandPalette.set(findCommand('database.changeState'))}> {#if $status.name == 'pending'} - Loading + Loading {:else if $status.name == 'checkStructure'} - Checking model + Checking model {:else if $status.name == 'loadStructure'} - Loading model + Loading model {:else if $status.name == 'ok'} - Connected + Connected {:else if $status.name == 'error'} - Error + Error {/if}
{/if} {#if !connection}
- Not connected + Not connected
{/if} {#if $serverVersion}
- -
+ +
{$serverVersion.versionText || $serverVersion.version}
@@ -117,7 +117,7 @@ )}\nClick for refresh DB model`} on:click={handleSyncModel} > - +
{moment($status?.analysedTime).fromNow() + (timerValue ? '' : '')}
@@ -128,7 +128,7 @@ {#each contextItems || [] as item}
{#if item.icon} - + {/if} {item.text}
@@ -139,7 +139,7 @@