Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

fix(nc-gui): update modal content color

Ramesh Maneca0c6031d0b2
diff --git a/packages/nc-gui/components/dlg/Table/Create.vue b/packages/nc-gui/components/dlg/Table/Create.vue
index 03a467a04c..bf35365fb1 100644
--- a/packages/nc-gui/components/dlg/Table/Create.vue
+++ b/packages/nc-gui/components/dlg/Table/Create.vue
@@ -451,8 +451,8 @@ watch(_baseId, () => {
>
<div class="py-5 flex flex-col gap-5" @dblclick.stop="fullAuto">
<div class="px-5 flex justify-between w-full items-center">
- <div class="flex flex-row items-center gap-x-2 text-base font-semibold text-gray-800">
- <GeneralIcon icon="table" class="!text-gray-600 w-5 h-5" />
+ <div class="flex flex-row items-center gap-x-2 text-base font-semibold text-nc-content-gray">
+ <GeneralIcon icon="table" class="!text-nc-content-gray-subtle2 w-5 h-5" />
{{ aiMode ? $t('activity.createTable(s)') : $t('activity.createTable') }}
</div>
<AiToggleButton
@@ -718,19 +718,19 @@ watch(_baseId, () => {
v-bind="validateInfos.description"
:class="{ '!mb-1': isSnowflake(customSourceId), '!mb-0': !isSnowflake(customSourceId) }"
>
- <div class="flex gap-3 text-gray-800 h-7 mb-1 items-center justify-between">
+ <div class="flex gap-3 text-nc-content-gray h-7 mb-1 items-center justify-between">
<span>
{{ $t('labels.description') }}
</span>
<NcButton type="text" class="!h-6 !w-5" size="xsmall" @click="removeDescription">
- <GeneralIcon icon="delete" class="text-gray-700 w-3.5 h-3.5" />
+ <GeneralIcon icon="delete" class="text-nc-content-gray-subtle w-3.5 h-3.5" />
</NcButton>
</div>
<a-textarea
ref="inputEl"
v-model:value="table.description"
- class="nc-input-sm nc-input-text-area nc-input-shadow px-3 !text-gray-800 max-h-[150px] min-h-[100px]"
+ class="nc-input-sm nc-input-text-area nc-input-shadow px-3 !text-nc-content-gray max-h-[150px] min-h-[100px]"
hide-details
data-testid="create-table-title-input"
:placeholder="$t('msg.info.enterTableDescription')"
@@ -776,7 +776,7 @@ watch(_baseId, () => {
}"
>
<NcButton v-if="!enableDescription && !aiMode" size="small" type="text" @click.stop="toggleDescription">
- <div class="flex !text-gray-700 items-center gap-2">
+ <div class="flex !text-nc-content-gray-subtle items-center gap-2">
<GeneralIcon icon="plus" class="h-4 w-4" />
<span class="first-letter:capitalize">
diff --git a/packages/nc-gui/components/dlg/View/Create.vue b/packages/nc-gui/components/dlg/View/Create.vue
index 599e3bf22a..3639383798 100644
--- a/packages/nc-gui/components/dlg/View/Create.vue
+++ b/packages/nc-gui/components/dlg/View/Create.vue
@@ -1017,7 +1017,7 @@ watch(activeBaseId, () => {
class="flex flex-col w-full gap-6"
>
<div class="w-full space-y-2">
- <div class="text-nc-content-gray-subtle">
+ <div class="text-nc-content-gray">
{{ $t('labels.organiseBy') }}
</div>
@@ -1031,7 +1031,7 @@ watch(activeBaseId, () => {
@click.stop
@change="onValueChange"
>
- <template #suffixIcon><GeneralIcon icon="arrowDown" class="text-gray-700" /></template>
+ <template #suffixIcon><GeneralIcon icon="arrowDown" class="text-nc-content-gray-subtle" /></template>
<a-select-option
v-for="(option, id) in [...viewSelectFieldOptions!].filter((f) => {
// If the fk_from_column_id of first range is Date, then all the other ranges should be Date
@@ -1116,7 +1116,7 @@ watch(activeBaseId, () => {
dropdown-class-name="!rounded-lg"
@click.stop
>
- <template #suffixIcon><GeneralIcon icon="arrowDown" class="text-gray-700" /></template>
+ <template #suffixIcon><GeneralIcon icon="arrowDown" class="text-nc-content-gray-subtle" /></template>
<a-select-option
v-for="(option, id) in [...viewSelectFieldOptions].filter((f) => {
@@ -1437,9 +1437,9 @@ watch(activeBaseId, () => {
</template>
</a-form>
<div v-else-if="!isNecessaryColumnsPresent" class="px-5">
- <div class="flex flex-row p-4 border-gray-200 border-1 gap-x-4 rounded-lg w-full">
- <div class="text-gray-500 flex gap-4">
- <GeneralIcon class="min-w-6 h-6 text-orange-500" icon="alertTriangle" />
+ <div class="flex flex-row p-4 border-nc-border-gray-medium border-1 gap-x-4 rounded-lg w-full">
+ <div class="text-nc-content-gray-subtle flex gap-4">
+ <GeneralIcon class="min-w-6 h-6 text-nc-content-orange-medium" icon="alertTriangle" />
<div class="flex flex-col gap-1">
<h2 class="font-semibold text-sm mb-0 text-nc-content-gray">Suitable fields not present</h2>
<span class="text-gray-500 font-default text-sm"> {{ errorMessages[form.type] }}</span>
diff --git a/packages/nc-gui/components/workspace/CreateProjectDlg.vue b/packages/nc-gui/components/workspace/CreateProjectDlg.vue
index 3fc08a0bd9..f23223ae35 100644
--- a/packages/nc-gui/components/workspace/CreateProjectDlg.vue
+++ b/packages/nc-gui/components/workspace/CreateProjectDlg.vue
@@ -192,7 +192,7 @@ if (props.isCreateNewActionMenu) {
>
<template v-if="aiMode === false" #header>
<!-- Create A New Table -->
- <div class="flex flex-row items-center text-base text-gray-800">
+ <div class="flex flex-row items-center text-base text-nc-content-gray">
<GeneralProjectIcon :color="formState.meta.iconColor" class="mr-2.5" />
{{
$t('general.createEntity', {