From 636ab296693609b618b04aae4dc791b31512e0e4 Mon Sep 17 00:00:00 2001 From: Aditya Toshniwal Date: Tue, 12 Nov 2019 17:53:52 +0530 Subject: [PATCH] =?UTF-8?q?Further=20changes=20to=20the=20welcome=20dashbo?= =?UTF-8?q?ard=20for=20theme=C2=A0customization.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dashboard/static/scss/_dashboard.scss | 15 ++++- .../dashboard/welcome_dashboard.html | 62 ++++++++++++++++++- .../scss/resources/_default.variables.scss | 4 +- .../scss/resources/dark/_theme.variables.scss | 4 +- 4 files changed, 77 insertions(+), 8 deletions(-) diff --git a/web/pgadmin/dashboard/static/scss/_dashboard.scss b/web/pgadmin/dashboard/static/scss/_dashboard.scss index ba51650b8..9f94b5e70 100644 --- a/web/pgadmin/dashboard/static/scss/_dashboard.scss +++ b/web/pgadmin/dashboard/static/scss/_dashboard.scss @@ -1,5 +1,5 @@ .dashboard-icon { - color: $color-primary; + color: $color-brand; } .dashboard-container { @@ -63,3 +63,16 @@ } } } + +.welcome-logo { + width: 400px; + & .app-name { + fill: $color-brand; + } + & .app-name-underline { + stroke: $color-fg; + } + & .app-tagline { + fill: $color-fg; + } +} diff --git a/web/pgadmin/dashboard/templates/dashboard/welcome_dashboard.html b/web/pgadmin/dashboard/templates/dashboard/welcome_dashboard.html index 35ebba07e..0c9a82749 100644 --- a/web/pgadmin/dashboard/templates/dashboard/welcome_dashboard.html +++ b/web/pgadmin/dashboard/templates/dashboard/welcome_dashboard.html @@ -5,9 +5,65 @@
{{ _('Welcome') }}
- {{ config.APP_NAME }} {{ _('logo') }} +

{{ _('Feature rich') }} | {{ _('Maximises PostgreSQL') }} | {{ _('Open Source') }}

{{ _('pgAdmin is an Open Source administration and management tool for the PostgreSQL database. It includes a graphical administration interface, an SQL query tool, a procedural code debugger and much more. The tool is designed to answer the needs of developers, DBAs and system administrators alike.') }} diff --git a/web/pgadmin/static/scss/resources/_default.variables.scss b/web/pgadmin/static/scss/resources/_default.variables.scss index 29387ddf8..0782022ec 100644 --- a/web/pgadmin/static/scss/resources/_default.variables.scss +++ b/web/pgadmin/static/scss/resources/_default.variables.scss @@ -33,7 +33,7 @@ $color-gray: #bac1cd !default; $color-gray-light: #ebeef3 !default; $color-gray-lighter: #f3f5f9 !default; -$color-brand: $white !default; +$color-brand: $color-primary !default; /* Typography */ @@ -213,7 +213,7 @@ $sql-title-padding: 3px; $sql-title-bg: #5b6d7c; $sql-title-fg: $white; // Toolbar + editor title heights + title bottom border -$sql-editor-panel-top: $title-height + $text-height-calc*16px + $sql-title-padding*2 + $panel-border-width; +$sql-editor-panel-top: $title-height + $text-height-calc*16px + $sql-title-padding*2 + $panel-border-width - 0.5px; $sql-gutters-bg: $negative-bg; $sql-history-detail-bg: $color-gray-lighter; $sql-history-success-bg: $color-primary-light; diff --git a/web/pgadmin/static/scss/resources/dark/_theme.variables.scss b/web/pgadmin/static/scss/resources/dark/_theme.variables.scss index d3cb45238..be5b77185 100644 --- a/web/pgadmin/static/scss/resources/dark/_theme.variables.scss +++ b/web/pgadmin/static/scss/resources/dark/_theme.variables.scss @@ -2,7 +2,7 @@ $white: #fff; $black: #000; $color-bg: #212121; -$color-fg: #ddd; +$color-fg: #d4d4d4; $color-primary: #234d6e; $color-primary-fg: $color-fg; @@ -30,7 +30,7 @@ $color-gray: #2e2e2e; $color-gray-light: #303030; $color-gray-lighter: #424242; -$color-brand: $white; +$color-brand: #1b71b5; $border-color: #4a4a4a; $shadow-base-color: #111111;