From 78aa090ef55ebdf30fa079625dd959b1e1d23a20 Mon Sep 17 00:00:00 2001 From: Alexander Platov Date: Mon, 13 Mar 2023 07:19:09 +0300 Subject: [PATCH] Clean theme (#2723) Signed-off-by: Alexander Platov --- .../src/components/AssigneePopup.svelte | 6 +- .../src/components/ObjectPopup.svelte | 6 +- packages/theme/styles/_colors.scss | 152 ------------------ packages/theme/styles/_layouts.scss | 18 +-- packages/ui/src/components/EditBox.svelte | 2 +- packages/ui/src/components/StepsDialog.svelte | 2 +- .../ui/src/components/TextAreaEditor.svelte | 3 +- .../src/components/EditCard.svelte | 2 +- .../src/components/KanbanCard.svelte | 4 +- .../src/components/popups/AddChecklist.svelte | 2 +- .../src/components/CommentPresenter.svelte | 4 +- .../src/components/TagsFilter.svelte | 2 +- .../src/components/Templates.svelte | 2 +- .../src/components/issues/IssuePreview.svelte | 2 +- .../issues/edit/SubIssueSelector.svelte | 12 +- .../src/components/filter/ObjectFilter.svelte | 2 +- .../src/components/filter/ValueFilter.svelte | 2 +- 17 files changed, 31 insertions(+), 192 deletions(-) diff --git a/packages/presentation/src/components/AssigneePopup.svelte b/packages/presentation/src/components/AssigneePopup.svelte index 8eebe86052..9665d7ee28 100644 --- a/packages/presentation/src/components/AssigneePopup.svelte +++ b/packages/presentation/src/components/AssigneePopup.svelte @@ -198,7 +198,7 @@ {#if cHeight === 1} -
+
{/if}
{ handleSelection(undefined, item) @@ -274,7 +274,7 @@
{#if cHeight === -1} -
+
{/if}
diff --git a/packages/presentation/src/components/ObjectPopup.svelte b/packages/presentation/src/components/ObjectPopup.svelte index 1a6b42a2b5..7b64db8c8c 100644 --- a/packages/presentation/src/components/ObjectPopup.svelte +++ b/packages/presentation/src/components/ObjectPopup.svelte @@ -228,7 +228,7 @@ {/if}
{#if cHeight === 1} -
+
{/if}
updateLocation(scrollDiv, selectedDiv, objects, selected)} bind:this={scrollDiv}>
@@ -248,7 +248,7 @@ {@const obj = objects[item]}
{#if cHeight === -1} -
+
{/if}
diff --git a/packages/theme/styles/_colors.scss b/packages/theme/styles/_colors.scss index 7ae264ccbd..ee93d9f751 100644 --- a/packages/theme/styles/_colors.scss +++ b/packages/theme/styles/_colors.scss @@ -127,84 +127,6 @@ --trans-content-05: rgba(138, 143, 152, .05); --trans-content-10: rgba(138, 143, 152, .1); --trans-content-20: rgba(138, 143, 152, .2); - - --theme-bg-color: #18181e; - --theme-bg-selection: #282830; - --theme-bg-checked: #262b39; - --theme-bg-checked-hover: #2d3344; - --theme-menu-color: #111117; - --theme-menu-selection: #1D1D23; - --theme-menu-divider: rgba(255, 255, 255, .05); - // --theme-dialog-bg: rgba(31, 31, 37, .8); - --theme-dialog-accent: rgba(255, 255, 255, .03); - --theme-dialog-divider: rgba(255, 255, 255, .1); - --theme-dialog-spec: rgba(47, 47, 53, .6); - --theme-dialog-shadow: 0px 44px 154px rgba(0, 0, 0, 0.75); - --theme-border-modal: rgba(0, 0, 0, .2); - --theme-chat-selection: radial-gradient(135.96% 3333.35% at -2.36% -27.63%, rgba(210, 183, 156, 0.11) 0%, rgba(204, 196, 184, 0.0785128) 20.8%, rgba(104, 104, 114, 0.11) 100%); - --theme-chat-divider: rgb(36, 36, 41); - - --theme-card-bg: #282830; - --theme-card-bg-dark: rgba(222, 222, 240, .1); - --theme-card-divider: rgba(255, 255, 255, .1); - --theme-card-shadow: 0px 15px 60px rgba(24, 25, 28, .8); - --theme-msgbox-bg: #26262B; - --theme-msgbox-shadow: 0px 20px 70px rgba(0, 0, 0, .4); - --theme-zone-bg: rgba(255, 255, 255, .05); - --theme-zone-border: rgba(255, 255, 255, .2); - --theme-zone-border-lite: rgba(255, 255, 255, .16); - - --theme-bg-accent-normal: #1f1f25; - --theme-bg-accent-color: rgba(255, 255, 255, .03); - --theme-bg-accent-hover: rgba(255, 255, 255, .06); - --theme-bg-accent-press: rgba(255, 255, 255, .07); - --theme-bg-focused-color: rgba(255, 255, 255, .1); - --theme-bg-focused-border: rgba(255, 255, 255, .4); - --theme-bg-accent-error: rgba(251, 158, 158, .06); - --theme-on-color: #4474F6; - --theme-off-color: #2A2A30; - --theme-bg-check: #F2F2F2; - --theme-tooltip-color: #2F2F34; - --theme-showmore-color: #484850; - - --theme-button-bg-enabled: #1F1F25; - --theme-button-bg-hovered: #26262B; - --theme-button-bg-pressed: #2A2A30; - --theme-button-bg-disabled: #212127; - --theme-button-bg-focused: #2F2F34; - --theme-button-bg-error: #262026; - --theme-button-border-enabled: rgba(255, 255, 255, .06); - --theme-button-border-hovered: rgba(255, 255, 255, .08); - --theme-button-border-pressed: rgba(255, 255, 255, .12); - --theme-button-border-disabled: rgba(255, 255, 255, .06); - --theme-button-border-focused: rgba(255, 255, 255, .4); - --theme-button-border-error: rgba(205, 104, 104, .1); - --theme-button-trans-primary-disabled: rgba(255, 255, 255, .1); - --theme-circle-select: #1F1F25; - --theme-circle-trans: rgba(31, 31, 37, .3); - --theme-circle-border: rgba(255, 255, 255, .2); - - --theme-table-bg-color: rgba(255, 255, 255, .02); - --theme-table-bg-hover: rgba(255, 255, 255, .04); - - --theme-popup-bg: rgba(222, 222, 240, .2); - --theme-popup-bg-hover: rgba(37, 37, 42, .4); - --theme-popup-border: transparent; - --theme-popup-shadow: 0px 10px 20px rgba(0, 0, 0, .2); - - --theme-caption-color: #fff; - --theme-content-accent-color: rgba(255, 255, 255, 0.8); - --theme-content-color: rgba(255, 255, 255, 0.6); - --theme-content-dark-color: rgba(255, 255, 255, 0.4); - --theme-content-trans-color: rgba(255, 255, 255, 0.3); - - --theme-userlink-color: #b92d52; - --theme-userlink-hover: #b92d52; - --theme-doclink-color: #2d6ab9; - --theme-doclink-hover: #2d6ab9; - --theme-status-online: #6cd871; - --theme-shadow: 0px 4px 8px rgba(15, 15, 15, 0.5); - --theme-text-shadow: 0px 0px 8px rgba(255, 255, 255, 0.25); } /* Light Theme */ @@ -284,78 +206,4 @@ --trans-content-05: rgba(60, 65, 73, .05); --trans-content-10: rgba(60, 65, 73, .1); --trans-content-20: rgba(60, 65, 73, .2); - - --theme-bg-color: #FFFFFF; - --theme-bg-selection: #F1F1F4; - --theme-menu-color: #E7E7E7; - --theme-menu-selection: #DBDBDB; - --theme-menu-divider: rgba(0, 0, 0, .08); - // --theme-dialog-bg: rgba(255, 255, 255, .4); - --theme-dialog-accent: rgba(31, 33, 43, .03); - --theme-dialog-divider: rgba(31, 33, 43, .06); - --theme-dialog-spec: rgba(47, 47, 53, .6); - --theme-dialog-shadow: 0px 44px 154px rgba(0, 0, 0, 0.75); - --theme-border-modal: rgba(0, 0, 0, .2); - --theme-chat-selection: radial-gradient(135.96% 3333.35% at -2.36% -27.63%, rgba(210, 183, 156, 0.11) 0%, rgba(204, 196, 184, 0.0785128) 20.8%, rgba(104, 104, 114, 0.11) 100%); - --theme-chat-divider: rgb(233, 233, 233); - - --theme-card-bg: #FFF; - --theme-card-bg-dark: rgba(255, 255, 255, .3); - --theme-card-divider: rgba(0, 0, 0, .1); - --theme-card-shadow: 0px 15px 60px rgba(24, 25, 28, .2); - --theme-msgbox-bg: #F2F2F2; - --theme-msgbox-shadow: 0px 20px 70px rgba(0, 0, 0, .2); - --theme-zone-bg: rgba(0, 0, 0, .05); - --theme-zone-border: rgba(0, 0, 0, .2); - --theme-zone-border-lite: rgba(0, 0, 0, .16); - - --theme-bg-accent-color: rgba(0, 0, 0, .03); - --theme-bg-accent-hover: rgba(0, 0, 0, .05); - --theme-bg-accent-press: rgba(0, 0, 0, .07); - --theme-bg-focused-color: rgba(0, 0, 0, .03); - --theme-bg-focused-border: rgba(0, 0, 0, .4); - --theme-bg-accent-error: rgba(251, 158, 158, .06); - --theme-on-color: #4474F6; - --theme-off-color: #DBDBDB; - --theme-bg-check: #45444F; - --theme-tooltip-color: #F1F1F4; - --theme-showmore-color: #484850; - - --theme-button-bg-enabled: #F7F7F7; - --theme-button-bg-hovered: #F2F2F2; - --theme-button-bg-pressed: #EDEDED; - --theme-button-bg-disabled: #F7F7F7; - --theme-button-bg-focused: #F7F7F7; - --theme-button-bg-error: #FEF2F2; - --theme-button-border-enabled: rgba(0, 0, 0, .06); - --theme-button-border-hovered: rgba(0, 0, 0, .06); - --theme-button-border-pressed: rgba(255, 255, 255, .06); - --theme-button-border-disabled: rgba(255, 255, 255, .06); - --theme-button-border-focused: rgba(255, 255, 255, .4); - --theme-button-border-error: rgba(205, 104, 104, .1); - --theme-button-trans-primary-disabled: #E7E7E7; - --theme-circle-select: #F7F7F7; - --theme-circle-trans: #F7F7F7; - --theme-circle-border: rgba(31, 33, 43, .2); - - --theme-table-bg-color: rgba(0, 0, 0, .02); - --theme-table-bg-hover: rgba(0, 0, 0, .04); - - --theme-popup-bg: #fff; - --theme-popup-bg-hover: #F2F2F2; - --theme-popup-border: 1px solid rgba(0, 0, 0, .06); - --theme-popup-shadow: 0px 10px 20px rgba(0, 0, 0, .2); - - --theme-caption-color: #1F212B; - --theme-content-accent-color: rgba(31, 33, 43, .8); - --theme-content-color: rgba(31, 33, 43, .6); - --theme-content-dark-color: rgba(31, 33, 43, .4); - --theme-content-trans-color: rgba(31, 33, 43, 0.3); - - --theme-userlink-color: #b92d52; - --theme-userlink-hover: #b92d52; - --theme-doclink-color: #2d6ab9; - --theme-doclink-hover: #2d6ab9; - --theme-status-online: #4ebc53; - --theme-shadow: 0px 4px 8px rgba(155, 155, 155, 0.5); } diff --git a/packages/theme/styles/_layouts.scss b/packages/theme/styles/_layouts.scss index 29860c0005..dcf47ef8b2 100644 --- a/packages/theme/styles/_layouts.scss +++ b/packages/theme/styles/_layouts.scss @@ -769,25 +769,16 @@ a.no-line { .background-body-color { background-color: var(--body-color); } .background-accent-bg-color { background-color: var(--accent-bg-color); } .background-highlight-select { background-color: var(--highlight-select); } - -.background-theme-content-accent { background-color: var(--theme-content-accent-color); } -.background-theme-bg-color { background-color: var(--theme-bg-color); } .background-highlight-red { background-color: var(--highlight-red); } .background-button-bg-color { background-color: var(--button-bg-color); } -.background-button-bg-enabled { background-color: var(--theme-button-bg-enabled); } .background-button-noborder-bg-hover { background-color: var(--noborder-bg-hover); } -.background-menu-divider { background-color: var(--theme-menu-divider); } -.background-card-divider { background-color: var(--theme-card-divider); } .background-primary-color { background-color: var(--primary-button-enabled); } -.background-bg-accent { background-color: var(--theme-bg-accent-color); } -.background-bg-focused {background-color: var(--theme-bg-focused-color); } -.background-bg-accent-normal { background-color: var(--theme-bg-accent-normal); } +.background-content-accent-color { background-color: var(--accent-color); } -.dark-color { color: var(--dark-color); } +.dark-color, +.content-dark-color { color: var(--dark-color); } .content-color { color: var(--content-color); } -.content-trans-color { color: var(--theme-content-trans-color); } .content-accent-color { color: var(--accent-color); } -.content-dark-color { color: var(--theme-content-dark-color); } .caption-color { color: var(--caption-color); } .red-color { color: var(--highlight-red); } @@ -800,9 +791,8 @@ a.no-line { .border-radius-left-1 { border-top-left-radius: 0.25rem; border-bottom-left-radius: 0.25rem; } .border-radius-right-1 { border-top-right-radius: 0.25rem; border-bottom-right-radius: 0.25rem; } .border-radius-top-1 { border-top-right-radius: 0.25rem; border-top-left-radius: 0.25rem; } -.border-bg-accent {border: 1px solid var(--theme-bg-accent-color);} +.border-divider-color {border: 1px solid var(--divider-color);} .border-primary-button { border-color: var(--primary-button-border); } -.border-button-enabled { border: 1px solid var(--theme-button-border-enabled); } .top-divider { border-top: 1px solid var(--divider-color); } .bottom-divider { border-bottom: 1px solid var(--divider-color); } diff --git a/packages/ui/src/components/EditBox.svelte b/packages/ui/src/components/EditBox.svelte index c868795cd2..74a46f781c 100644 --- a/packages/ui/src/components/EditBox.svelte +++ b/packages/ui/src/components/EditBox.svelte @@ -140,7 +140,7 @@ {/if}
{#if icon} -
+
{/if} diff --git a/packages/ui/src/components/StepsDialog.svelte b/packages/ui/src/components/StepsDialog.svelte index 003e37d181..359da2562a 100644 --- a/packages/ui/src/components/StepsDialog.svelte +++ b/packages/ui/src/components/StepsDialog.svelte @@ -159,7 +159,7 @@ {/each} {#if stepsDescription} - + {/if}
diff --git a/packages/ui/src/components/TextAreaEditor.svelte b/packages/ui/src/components/TextAreaEditor.svelte index 108e356d60..a11da62fe7 100644 --- a/packages/ui/src/components/TextAreaEditor.svelte +++ b/packages/ui/src/components/TextAreaEditor.svelte @@ -51,7 +51,7 @@