From 0444a20bd4526f1c4035e41e1ac160280c55ce5f Mon Sep 17 00:00:00 2001
From: braks <78412429+bcakmakoglu@users.noreply.github.com>
Date: Fri, 19 Aug 2022 14:46:21 +0200
Subject: [PATCH] refactor(gui-v2): replace `pink-500` with `accent` color
---
packages/nc-gui-v2/assets/style.scss | 8 ++---
.../components/cell/attachment/Carousel.vue | 4 +--
.../components/cell/attachment/Modal.vue | 12 ++++----
.../components/cell/attachment/index.vue | 8 ++---
.../components/dashboard/TreeView.vue | 12 ++++----
.../components/general/MiniSidebar.vue | 10 +++----
.../components/general/PreviewAs.vue | 4 +--
.../smartsheet-header/VirtualCellIcon.vue | 6 ++--
.../nc-gui-v2/components/smartsheet/Grid.vue | 2 +-
.../nc-gui-v2/components/template/Editor.vue | 8 ++---
packages/nc-gui-v2/layouts/base.vue | 14 ++++-----
.../pages/[projectType]/[projectId]/index.vue | 30 +++++++++----------
.../[projectId]/index/index/index.vue | 2 +-
packages/nc-gui-v2/pages/index/index.vue | 12 ++++----
14 files changed, 66 insertions(+), 66 deletions(-)
diff --git a/packages/nc-gui-v2/assets/style.scss b/packages/nc-gui-v2/assets/style.scss
index af194fe601..8da9a28bda 100644
--- a/packages/nc-gui-v2/assets/style.scss
+++ b/packages/nc-gui-v2/assets/style.scss
@@ -49,7 +49,7 @@ a {
&:hover {
.nc-icon {
- @apply text-pink-500;
+ @apply text-accent;
}
}
}
@@ -191,11 +191,11 @@ a {
}
&:hover::after {
- @apply transform scale-110 ring ring-pink-500;
+ @apply transform scale-110 ring ring-accent;
}
&:active::after {
- @apply ring ring-pink-500;
+ @apply ring ring-accent;
}
}
@@ -232,7 +232,7 @@ a {
}
.ant-dropdown-menu-item, .ant-menu-item {
- @apply !py-0 active:(ring ring-pink-500);
+ @apply !py-0 active:(ring ring-accent);
}
.ant-dropdown-menu-title-content,
diff --git a/packages/nc-gui-v2/components/cell/attachment/Carousel.vue b/packages/nc-gui-v2/components/cell/attachment/Carousel.vue
index e57c41520a..74fcf8deb9 100644
--- a/packages/nc-gui-v2/components/cell/attachment/Carousel.vue
+++ b/packages/nc-gui-v2/components/cell/attachment/Carousel.vue
@@ -55,7 +55,7 @@ onClickOutside(carouselRef, () => {
{{ selectedImage && selectedImage.title }}
@@ -133,7 +133,7 @@ onClickOutside(carouselRef, () => {
}
.ant-carousel :deep(.slick-arrow.custom-slick-arrow) {
- @apply text-4xl text-white hover:text-primary active:text-pink-500 opacity-100 cursor-pointer z-1;
+ @apply text-4xl text-white hover:text-primary active:text-accent opacity-100 cursor-pointer z-1;
}
.ant-carousel :deep(.custom-slick-arrow:before) {
display: none;
diff --git a/packages/nc-gui-v2/components/cell/attachment/Modal.vue b/packages/nc-gui-v2/components/cell/attachment/Modal.vue
index 3cf78de1ce..8b754b4bfd 100644
--- a/packages/nc-gui-v2/components/cell/attachment/Modal.vue
+++ b/packages/nc-gui-v2/components/cell/attachment/Modal.vue
@@ -66,7 +66,7 @@ function onClick(item: Record) {
class="nc-attach-file group"
@click="open"
>
-
+
Attach File
@@ -83,9 +83,9 @@ function onClick(item: Record) {
-
+
Drop here
@@ -155,7 +155,7 @@ function onClick(item: Record) {
.nc-attach-file {
@apply select-none cursor-pointer color-transition flex items-center gap-1 border-1 p-2 rounded
@apply hover:(bg-primary bg-opacity-10 text-primary ring);
- @apply active:(ring-pink-500 bg-primary bg-opacity-20);
+ @apply active:(ring-accent bg-primary bg-opacity-20);
}
.nc-attachment-item {
@@ -176,7 +176,7 @@ function onClick(item: Record) {
}
&:active::after {
- @apply ring ring-pink-500 shadow transform scale-103;
+ @apply ring ring-accent shadow transform scale-103;
}
}
}
@@ -185,7 +185,7 @@ function onClick(item: Record) {
@apply bg-white absolute bottom-2 right-2;
@apply transition-opacity duration-150 ease-in opacity-0 hover:ring;
@apply cursor-pointer rounded shadow flex items-center p-1 border-1;
- @apply active:(ring border-0 ring-pink-500);
+ @apply active:(ring border-0 ring-accent);
}
.nc-attachment-remove {
diff --git a/packages/nc-gui-v2/components/cell/attachment/index.vue b/packages/nc-gui-v2/components/cell/attachment/index.vue
index 1dcabe7faf..7d534b761a 100644
--- a/packages/nc-gui-v2/components/cell/attachment/index.vue
+++ b/packages/nc-gui-v2/components/cell/attachment/index.vue
@@ -100,9 +100,9 @@ const { isSharedForm } = useSmartsheetStoreOrThrow()
v-model="isOverDropZone"
inline
:target="currentCellRef"
- class="text-white text-lg ring ring-pink-500 bg-gray-700/75 flex items-center justify-center gap-2 backdrop-blur-xl"
+ class="text-white text-lg ring ring-accent bg-gray-700/75 flex items-center justify-center gap-2 backdrop-blur-xl"
>
- Drop here
+ Drop here
@@ -118,7 +118,7 @@ const { isSharedForm } = useSmartsheetStoreOrThrow()
Click or drop a file into cell
@@ -167,7 +167,7 @@ const { isSharedForm } = useSmartsheetStoreOrThrow()
View attachments
diff --git a/packages/nc-gui-v2/components/dashboard/TreeView.vue b/packages/nc-gui-v2/components/dashboard/TreeView.vue
index 793ce5b03f..33d08071a3 100644
--- a/packages/nc-gui-v2/components/dashboard/TreeView.vue
+++ b/packages/nc-gui-v2/components/dashboard/TreeView.vue
@@ -250,7 +250,7 @@ function openTableCreateDialog() {
@click="openAirtableImportDialog"
>
@@ -258,7 +258,7 @@ function openTableCreateDialog() {
@@ -266,7 +266,7 @@ function openTableCreateDialog() {
@@ -278,7 +278,7 @@ function openTableCreateDialog() {
@click="openQuickImportDialog('excel')"
>
@@ -294,7 +294,7 @@ function openTableCreateDialog() {
target="_blank"
class="prose-sm hover:(!text-primary !opacity-100) color-transition nc-project-menu-item group after:(!rounded-b)"
>
-
+
Request a data source you need?
@@ -505,7 +505,7 @@ function openTableCreateDialog() {
}
:deep(.ant-dropdown-menu-item) {
- @apply !py-0 active:(ring ring-pink-500);
+ @apply !py-0 active:(ring ring-accent);
}
:deep(.ant-dropdown-menu-title-content) {
diff --git a/packages/nc-gui-v2/components/general/MiniSidebar.vue b/packages/nc-gui-v2/components/general/MiniSidebar.vue
index 06753cf2ce..8237b9c85f 100644
--- a/packages/nc-gui-v2/components/general/MiniSidebar.vue
+++ b/packages/nc-gui-v2/components/general/MiniSidebar.vue
@@ -74,24 +74,24 @@ const logout = () => {
-
+
-
+
{{ $t('activity.createProject') }}
-
+
@@ -125,7 +125,7 @@ const logout = () => {
@apply flex w-full justify-center items-center h-12 group p-2;
&.active {
- @apply bg-pink-500 border-t-1 border-b-1;
+ @apply bg-accent border-t-1 border-b-1;
}
}
}
diff --git a/packages/nc-gui-v2/components/general/PreviewAs.vue b/packages/nc-gui-v2/components/general/PreviewAs.vue
index 4fc6413ac0..2470447fd2 100644
--- a/packages/nc-gui-v2/components/general/PreviewAs.vue
+++ b/packages/nc-gui-v2/components/general/PreviewAs.vue
@@ -80,7 +80,7 @@ watch(previewAs, () => window.location.reload())
@@ -260,13 +260,13 @@ const copyAuthToken = async () => {
@@ -279,12 +279,12 @@ const copyAuthToken = async () => {