From 1bc25e6d7d04611f22ca30f3b49c264e9b74d5ea Mon Sep 17 00:00:00 2001 From: Elhombretecla Date: Wed, 5 Feb 2025 10:02:42 +0100 Subject: [PATCH] :sparkles: Add new colors --- .../styles/common/refactor/color-defs.scss | 2 +- .../app/main/ui/workspace/left_header.cljs | 1 + .../app/main/ui/workspace/right_header.cljs | 35 ------------------- 3 files changed, 2 insertions(+), 36 deletions(-) diff --git a/frontend/resources/styles/common/refactor/color-defs.scss b/frontend/resources/styles/common/refactor/color-defs.scss index 46e6ba1136..f3f1df5e20 100644 --- a/frontend/resources/styles/common/refactor/color-defs.scss +++ b/frontend/resources/styles/common/refactor/color-defs.scss @@ -35,7 +35,7 @@ --status-color-success-200: #a7e8d9; // Used on Register confirmation text --status-color-success-500: #2d9f8f; // Used on accept icon, and status widget - --status-color-warning-500: #fe4811; // Used on status widget, some buttons and warnings icons and elements + --status-color-warning-500: #f5a91b; // Used on status widget, some buttons and warnings icons and elements --status-color-error-500: #ff3277; // Used on discard icon, some borders and svg, and on status widget diff --git a/frontend/src/app/main/ui/workspace/left_header.cljs b/frontend/src/app/main/ui/workspace/left_header.cljs index 50303ecc00..a7cb383165 100644 --- a/frontend/src/app/main/ui/workspace/left_header.cljs +++ b/frontend/src/app/main/ui/workspace/left_header.cljs @@ -112,6 +112,7 @@ {:class (stl/css :file-name) :title file-name :on-double-click start-editing-name} + ;;-- Persistende state widget [:div {:class (case (mf/deref ref:persistence-status) :pending (stl/css :status-notification :pending-status) :saving (stl/css :status-notification :saving-status) diff --git a/frontend/src/app/main/ui/workspace/right_header.cljs b/frontend/src/app/main/ui/workspace/right_header.cljs index 63af366b85..2f1e78200d 100644 --- a/frontend/src/app/main/ui/workspace/right_header.cljs +++ b/frontend/src/app/main/ui/workspace/right_header.cljs @@ -32,39 +32,6 @@ (def ref:persistence-status (l/derived :status refs/persistence)) -;; --- Persistence state Widget - -(mf/defc persistence-state-widget - {::mf/wrap [mf/memo] - ::mf/wrap-props false} - [] - (let [status (mf/deref ref:persistence-status) - workspace-read-only? (mf/use-ctx ctx/workspace-read-only?)] - (when-not workspace-read-only? - [:div {:class (stl/css :persistence-status-widget)} - (case status - :pending - [:div {:class (stl/css :status-icon :pending-status) - :title (tr "workspace.header.unsaved")} - i/status-alert] - - :saving - [:div {:class (stl/css :status-icon :pending-status) - :title (tr "workspace.header.unsaved")} - i/status-alert] - - :saved - [:div {:class (stl/css :status-icon :saved-status) - :title (tr "workspace.header.saved")} - i/status-tick] - - :error - [:div {:class (stl/css :status-icon :error-status) - :title "There was an error saving the data. Please refresh if this persists."} - i/status-wrong] - - nil)]))) - ;; --- Zoom Widget (mf/defc zoom-widget-workspace @@ -216,8 +183,6 @@ [:div {:class (stl/css :users-section)} [:& active-sessions]] - [:& persistence-state-widget] - [:& export-progress-widget] [:div {:class (stl/css :separator)}]