From c952d721f2850466c89563877d75c5bcca0f6d30 Mon Sep 17 00:00:00 2001 From: Bastian Allgeier Date: Thu, 28 Nov 2024 22:12:22 +0100 Subject: [PATCH] Additional dark mode changes --- panel/src/components/Collection/Item.vue | 2 +- panel/src/components/Dialogs/Elements/Search.vue | 2 +- panel/src/components/Drawers/Elements/Header.vue | 2 +- panel/src/components/Forms/Blocks/Block.vue | 2 +- panel/src/components/Forms/Blocks/BlockSelector.vue | 2 +- panel/src/components/Forms/Blocks/Elements/BlockFigure.vue | 2 +- panel/src/components/Forms/Previews/UrlFieldPreview.vue | 2 +- panel/src/components/Layout/Stat.vue | 2 +- panel/src/components/Layout/Table.vue | 6 +++--- panel/src/components/Navigation/Button.vue | 2 ++ panel/src/components/Navigation/ButtonGroup.vue | 4 ++-- panel/src/components/Navigation/Tag.vue | 2 +- panel/src/components/Text/Label.vue | 2 +- panel/src/components/Text/Text.vue | 4 ++++ panel/src/components/Views/Login/LoginView.vue | 4 ++-- panel/src/components/Views/PreviewView.vue | 2 +- panel/src/styles/config/shadow.css | 6 +++++- panel/src/styles/utilities/theme.css | 7 ++++--- 18 files changed, 33 insertions(+), 22 deletions(-) diff --git a/panel/src/components/Collection/Item.vue b/panel/src/components/Collection/Item.vue index 4ae3425864..4835b21d8c 100644 --- a/panel/src/components/Collection/Item.vue +++ b/panel/src/components/Collection/Item.vue @@ -140,7 +140,7 @@ export default { :root { --item-button-height: var(--height-md); --item-button-width: var(--height-md); - --item-color-back: light-dark(var(--color-white), var(--color-gray-950)); + --item-color-back: light-dark(var(--color-white), var(--color-gray-850)); --item-height: auto; --item-height-cardlet: calc(var(--height-md) * 3); } diff --git a/panel/src/components/Dialogs/Elements/Search.vue b/panel/src/components/Dialogs/Elements/Search.vue index f55c23b235..c5993d09ec 100644 --- a/panel/src/components/Dialogs/Elements/Search.vue +++ b/panel/src/components/Dialogs/Elements/Search.vue @@ -37,6 +37,6 @@ export default { .k-dialog-search { margin-bottom: 0.75rem; --input-color-border: transparent; - --input-color-back: var(--color-gray-300); + --input-color-back: light-dark(var(--color-gray-300), var(--color-gray-950)); } diff --git a/panel/src/components/Drawers/Elements/Header.vue b/panel/src/components/Drawers/Elements/Header.vue index 97cdd858d8..8d57627a57 100644 --- a/panel/src/components/Drawers/Elements/Header.vue +++ b/panel/src/components/Drawers/Elements/Header.vue @@ -68,7 +68,7 @@ export default { align-items: center; line-height: 1; justify-content: space-between; - background: var(--color-white); + background: light-dark(var(--color-white), var(--color-gray-850)); font-size: var(--text-sm); } diff --git a/panel/src/components/Forms/Blocks/Block.vue b/panel/src/components/Forms/Blocks/Block.vue index 11daefecf1..f3bdb36b2f 100644 --- a/panel/src/components/Forms/Blocks/Block.vue +++ b/panel/src/components/Forms/Blocks/Block.vue @@ -366,7 +366,7 @@ export default { border-radius: var(--rounded); } .k-block-container:not(:last-of-type) { - border-bottom: 1px dashed var(--color-border-dimmed); + border-bottom: 1px dashed var(--panel-color-back); } .k-block-container:focus { outline: 0; diff --git a/panel/src/components/Forms/Blocks/BlockSelector.vue b/panel/src/components/Forms/Blocks/BlockSelector.vue index b42cc5c0e7..40bc8cd8ce 100644 --- a/panel/src/components/Forms/Blocks/BlockSelector.vue +++ b/panel/src/components/Forms/Blocks/BlockSelector.vue @@ -157,7 +157,7 @@ export default { } .k-block-types .k-button { --button-color-icon: var(--color-text); - --button-color-back: var(--color-white); + --button-color-back: light-dark(var(--color-white), var(--color-gray-850)); --button-padding: var(--spacing-3); width: 100%; justify-content: start; diff --git a/panel/src/components/Forms/Blocks/Elements/BlockFigure.vue b/panel/src/components/Forms/Blocks/Elements/BlockFigure.vue index e35483fcd3..c67b912b7e 100644 --- a/panel/src/components/Forms/Blocks/Elements/BlockFigure.vue +++ b/panel/src/components/Forms/Blocks/Elements/BlockFigure.vue @@ -52,7 +52,7 @@ export default { diff --git a/panel/src/components/Layout/Stat.vue b/panel/src/components/Layout/Stat.vue index df424656a1..cd21873b96 100644 --- a/panel/src/components/Layout/Stat.vue +++ b/panel/src/components/Layout/Stat.vue @@ -83,7 +83,7 @@ export default {