diff --git a/packages/presentation/lang/en.json b/packages/presentation/lang/en.json
index 1172d3b51b..8c6b78c720 100644
--- a/packages/presentation/lang/en.json
+++ b/packages/presentation/lang/en.json
@@ -5,6 +5,7 @@
"Ok": "Ok",
"Save": "Save",
"Download": "Download",
+ "Delete": "Delete",
"Close": "Close",
"NotSelected": "Not selected",
"Deselect": "Deselect",
diff --git a/packages/presentation/lang/ru.json b/packages/presentation/lang/ru.json
index f872d6329a..3b9393f8f3 100644
--- a/packages/presentation/lang/ru.json
+++ b/packages/presentation/lang/ru.json
@@ -5,6 +5,7 @@
"Ok": "Ок",
"Save": "Сохранить",
"Download": "Скачать",
+ "Delete": "Удалить",
"Close": "Закрыть",
"NotSelected": "Не выбрано",
"Deselect": "Снять выделение",
diff --git a/packages/presentation/src/components/PDFViewer.svelte b/packages/presentation/src/components/PDFViewer.svelte
index 8924a0462a..a793158be9 100644
--- a/packages/presentation/src/components/PDFViewer.svelte
+++ b/packages/presentation/src/components/PDFViewer.svelte
@@ -96,8 +96,8 @@
height: 2rem;
font-weight: 500;
font-size: 0.625rem;
- color: var(--white-color);
- background-color: var(--primary-bg-color);
+ color: var(--primary-button-color);
+ background-color: var(--primary-button-enabled);
border: 1px solid rgba(0, 0, 0, 0.1);
border-radius: 0.5rem;
cursor: pointer;
@@ -107,7 +107,7 @@
overflow: auto;
border-style: none;
border-radius: 0.5rem;
- background-color: var(--board-bg-color);
+ background-color: var(--theme-bg-color);
&.img {
display: flex;
diff --git a/packages/presentation/src/plugin.ts b/packages/presentation/src/plugin.ts
index bce8e4bbee..b3e9f9e7ae 100644
--- a/packages/presentation/src/plugin.ts
+++ b/packages/presentation/src/plugin.ts
@@ -34,6 +34,7 @@ export default plugin(presentationId, {
Ok: '' as IntlString,
Save: '' as IntlString,
Download: '' as IntlString,
+ Delete: '' as IntlString,
Close: '' as IntlString,
NotSelected: '' as IntlString,
Deselect: '' as IntlString,
diff --git a/packages/theme/styles/_colors.scss b/packages/theme/styles/_colors.scss
index 400b0374ae..1b65242af1 100644
--- a/packages/theme/styles/_colors.scss
+++ b/packages/theme/styles/_colors.scss
@@ -121,6 +121,7 @@
--theme-checkbox-disabled: #999;
--theme-progress-color: #FFFFFF;
--theme-popup-color: #292938;
+ --theme-popup-hover: #32323F;
--theme-popup-divider: rgba(255, 255, 255, .1);
--theme-popup-shadow: 0px 4px 4px rgba(0, 0, 0, 0.1); // Light
--theme-panel-color: #1A1A28;
@@ -131,6 +132,10 @@
--theme-calendar-holiday-bgcolor: rgba(235, 87, 87, .1);
--theme-calendar-weekend-bgcolor: rgba(242, 153, 74, .05);
+ --theme-error-color: #eb5757;
+ --theme-lost-color: #eb5757;
+ --theme-won-color: #34DB80;
+
--body-color: #1f2023;
--body-accent: #222326;
--board-bg-color: #1c1d1f;
@@ -145,9 +150,9 @@
--highlight-select-border: #44506b;
--highlight-select-hover: #2c3346;
- --scrollbar-bar-color: #303236;
- --scrollbar-bar-hover: #8a8f98;
- --scrollbar-track-color: #303236;
+ --scrollbar-bar-color: #35354a;
+ --scrollbar-bar-hover: #8a8aa5;
+ --scrollbar-track-color: #35354a;
--trans-color: rgba(255, 255, 255, .3);
--darker-color: rgba(255, 255, 255, .4);
@@ -159,9 +164,6 @@
--white-color: #fff;
--caret-color: #6e5ed2;
--warning-color: #f2994a;
- --error-color: #eb5757;
- --lost-color: #eb5757;
- --won-color: #34DB80;
--divider-color: #303236;
--divider-trans-color: rgba(255, 255, 255, .12);
@@ -281,7 +283,8 @@
--theme-checkbox-border: rgba(0, 0, 0, .12);
--theme-checkbox-disabled: #999;
--theme-progress-color: rgba(0, 0, 0, .5);
- --theme-popup-color: #F1F1F4;
+ --theme-popup-color: #FFFFFF;
+ --theme-popup-hover: #F5F5F5;
--theme-popup-divider: rgba(0, 0, 0, .1);
--theme-popup-shadow: 0px 4px 4px rgba(0, 0, 0, 0.1);
--theme-panel-color: #FFFFFF;
@@ -292,6 +295,10 @@
--theme-calendar-holiday-bgcolor: rgba(235, 87, 87, .1);
--theme-calendar-weekend-bgcolor: rgba(242, 153, 74, .1);
+ --theme-error-color: #eb5757; // Dark
+ --theme-lost-color: #eb5757; // Dark
+ --theme-won-color: #34DB80; // Dark
+
--body-color: #fff;
--body-accent: #fafafa; // HZ
--board-bg-color: #f4f5f8;
@@ -320,9 +327,6 @@
--white-color: #fff;
--caret-color: #6e5ed2;
--warning-color: #f2994a; // Dark
- --error-color: #eb5757; // Dark
- --lost-color: #eb5757; // Dark
- --won-color: #34DB80; // Dark
--divider-color: #e0e0e0;
--divider-trans-color: rgba(0, 0, 0, .12);
diff --git a/packages/theme/styles/_layouts.scss b/packages/theme/styles/_layouts.scss
index 806d2a45ac..2581432962 100644
--- a/packages/theme/styles/_layouts.scss
+++ b/packages/theme/styles/_layouts.scss
@@ -46,6 +46,7 @@ button {
align-items: center;
margin: 0;
padding: 0;
+ font-family: inherit;
font-size: inherit;
background-color: transparent;
border: 1px solid transparent;
@@ -492,6 +493,7 @@ input.search {
.my-4 { margin: 1rem 0; }
.my-5 { margin: 1.25rem 0; }
+.m--1 { margin: -.25rem; }
.m-0-5 { margin: .125rem; }
.m-1 { margin: .25rem; }
@@ -853,7 +855,7 @@ a.no-line {
.caption-color { color: var(--caption-color); }
.red-color { color: var(--highlight-red); }
-.error-color { color: var(--error-color); }
+.error-color { color: var(--theme-error-color); }
.border-radius-4 { border-radius: 1rem; }
.border-radius-3 { border-radius: 0.75rem; }
diff --git a/packages/theme/styles/common.scss b/packages/theme/styles/common.scss
index 0f618eb073..c9edb07227 100644
--- a/packages/theme/styles/common.scss
+++ b/packages/theme/styles/common.scss
@@ -365,21 +365,21 @@
padding: .3125rem .5rem;
min-width: 0;
font-size: .875rem;
- background-color: var(--accent-bg-color);
- color: var(--dark-color);
- border: 1px solid var(--divider-color);
+ background-color: var(--theme-button-enabled);
+ color: var(--theme-halfcontent-color);
+ border: 1px solid var(--theme-button-border);
border-radius: .25rem;
.tag-icon {
margin-left: .5rem;
width: 1rem;
height: 1rem;
- color: var(--accent-color);
+ color: var(--theme-content-color);
- &:hover { color: var(--caption-color); }
+ &:hover { color: var(--theme-caption-color); }
}
- &.highlight { color: var(--content-color); }
+ &.highlight { color: var(--theme-content-color); }
}
&__tag + &__tag { margin-left: .375rem; }
}
diff --git a/packages/theme/styles/popups.scss b/packages/theme/styles/popups.scss
index b2a1c8987d..359e4a5863 100644
--- a/packages/theme/styles/popups.scss
+++ b/packages/theme/styles/popups.scss
@@ -22,9 +22,10 @@
min-width: 10rem;
max-width: 15rem;
max-height: 22rem;
- background: var(--popup-bg-color);
+ background: var(--theme-popup-color);
+ // border: 1px solid var(--theme-popup-divider);
border-radius: .5rem;
- box-shadow: var(--popup-shadow);
+ box-shadow: var(--theme-popup-shadow);
&.full-width {
flex-grow: 1;
@@ -48,7 +49,7 @@
max-width: 40rem !important;
}
.header {
- border-bottom: 1px solid var(--popup-divider);
+ border-bottom: 1px solid var(--theme-popup-divider);
&.no-border { border-bottom-color: transparent; }
input {
@@ -72,12 +73,12 @@
}
&.show {
- color: var(--content-color);
- background-color: var(--button-border-color);
+ color: var(--theme-content-color);
+ background-color: var(--theme-button-enabled);
cursor: pointer;
&:hover {
- color: var(--accent-color);
- background-color: var(--button-border-hover);
+ color: var(--theme-caption-color);
+ background-color: var(--theme-button-hovered);
}
}
}
@@ -104,7 +105,7 @@
padding: .25rem .75rem;
min-height: 2rem;
text-align: left;
- color: var(--caption-color);
+ color: var(--theme-content-color);
cursor: pointer;
&.high { height: 3rem; }
@@ -116,7 +117,7 @@
.icon {
width: 1rem;
height: 1rem;
- color: var(--content-color);
+ color: var(--theme-dark-color);
}
.color {
width: .875rem;
@@ -144,12 +145,13 @@
.check-right { margin: 0 0 0 2rem; }
&:focus,
&:hover {
- background-color: var(--popup-bg-hover);
+ color: var(--theme-caption-color);
+ background-color: var(--theme-popup-hover);
- .icon { color: var(--accent-color); }
+ .icon { color: var(--theme-content-color); }
}
- &.no-focus:focus { background-color: transparent; }
- &.no-focus:hover { background-color: var(--popup-bg-hover); }
+ &.no-focus:focus { background-color: var(--theme-popup-hover); }
+ &.no-focus:hover { background-color: var(--theme-popup-hover); }
}
.sticky-wrapper {
display: flex;
@@ -176,8 +178,8 @@
font-weight: 500;
font-size: .75rem;
text-align: left;
- color: var(--accent-color);
- background-color: var(--button-bg-color);
+ color: var(--theme-content-color);
+ background-color: var(--theme-comp-header-color);
cursor: pointer;
.icon {
@@ -187,7 +189,7 @@
transition: transform .15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
&.show .icon { transform: rotate(90deg); }
- &:hover { color: var(--caption-color); }
+ &:hover { color: var(--theme-caption-color); }
&.show + .menu-group { height: auto; }
}
}
@@ -200,9 +202,9 @@
min-height: 0;
min-width: 0;
max-width: 30rem;
- background: var(--popup-bg-color);
+ background: var(--theme-popup-color);
border-radius: .25rem;
- box-shadow: var(--popup-shadow);
+ box-shadow: var(--theme-popup-shadow);
user-select: none;
.ap-space {
@@ -234,21 +236,21 @@
justify-content: flex-start;
padding: 0 .5rem;
height: 2rem;
- color: var(--caption-color);
+ color: var(--theme-content-color);
text-align: left;
cursor: pointer;
&.ap-woScroll { margin: 0 .5rem; }
- &.selected { background: var(--popup-bg-hover); }
+ &.selected { background: var(--theme-popup-hover); }
&.empty {
display: flex;
justify-content: center;
font-style: italic;
- color: var(--dark-color);
+ color: var(--theme-dark-color);
cursor: default;
&:hover {
- color: var(--dark-color);
+ color: var(--theme-content-color);
background-color: transparent;
}
}
@@ -256,13 +258,13 @@
&.withIcon {
margin: 0;
- .icon { color: var(--content-color); }
- &.hover .icon { color: var(--accent-color); }
+ .icon { color: var(--theme-dark-color); }
+ &.hover .icon { color: var(--theme-content-color); }
}
// &:hover { background-color: var(--popup-bg-hover); }
&.hover {
- background-color: var(--popup-bg-hover);
+ background-color: var(--theme-popup-hover);
outline: none;
// box-shadow: inset 0 0 1px 1px var(--primary-edit-border-color);
}
@@ -277,7 +279,7 @@
&.separator {
margin: 0.25rem 0;
height: 1px;
- background-color: var(--popup-divider);
+ background-color: var(--theme-popup-divider);
}
}
.ap-check {
@@ -297,7 +299,7 @@
cursor: pointer;
&:hover {
- background-color: var(--popup-bg-hover);
+ background-color: var(--theme-popup-divider);
outline: none;
}
}
@@ -315,7 +317,7 @@
font-size: .75rem;
font-weight: 600;
text-transform: uppercase;
- color: var(--dark-color);
+ color: var(--theme-dark-color);
}
}
}
@@ -325,7 +327,7 @@
flex-shrink: 0;
margin: 1rem 1rem .25rem;
font-weight: 500;
- color: var(--caption-color);
+ color: var(--theme-caption-color);
}
.ap-header {
margin: .25rem 1rem 0;
@@ -344,14 +346,14 @@
.ap-categoryItem {
margin: .25rem;
- color: var(--dark-color);
+ color: var(--theme-dark-color);
cursor: pointer;
&.selected {
- color: var(--accent-color) !important;
+ color: var(--theme-content-color) !important;
}
&:hover {
- color: var(--accent-color);
+ color: var(--theme-content-color);
}
}
@@ -388,14 +390,14 @@
min-width: 0;
min-height: 2rem;
text-align: left;
- color: var(--caption-color);
+ color: var(--theme-content-color);
cursor: pointer;
- .icon { color: var(--content-color); }
+ .icon { color: var(--theme-dark-color); }
&:focus .icon,
&.withHover:hover .icon,
- &.withIconHover:hover .icon { color: var(--accent-color); }
- &.withHover:hover { background-color: var(--popup-bg-hover); }
+ &.withIconHover:hover .icon { color: var(--theme-caption-color); }
+ &.withHover:hover { background-color: var(--theme-popup-hover); }
}
.antiPopup .ap-menuItem.arrow,
@@ -411,7 +413,7 @@
top: 50%;
right: 0.5rem;
font-size: 0.375rem;
- color: var(--dark-color);
+ color: var(--theme-dark-color);
transform: translateY(-50%);
}
}
@@ -424,7 +426,7 @@
min-height: 22rem;
background: var(--theme-popup-color);
border-radius: .5rem;
- box-shadow: var(--popup-shadow);
+ box-shadow: var(--theme-popup-shadow);
&:not(.min-w-168) { min-width: 22rem; }
diff --git a/packages/ui/src/components/ListView.svelte b/packages/ui/src/components/ListView.svelte
index 7e56b5849e..ede86e047a 100644
--- a/packages/ui/src/components/ListView.svelte
+++ b/packages/ui/src/components/ListView.svelte
@@ -93,7 +93,7 @@
border-radius: 0.25rem;
}
.selection {
- background-color: var(--menu-bg-select);
+ background-color: var(--theme-button-focused);
}
}
diff --git a/packages/ui/src/components/calendar/DatePresenter.svelte b/packages/ui/src/components/calendar/DatePresenter.svelte
index a56bbb9409..fa3506cc07 100644
--- a/packages/ui/src/components/calendar/DatePresenter.svelte
+++ b/packages/ui/src/components/calendar/DatePresenter.svelte
@@ -167,10 +167,10 @@
color: var(--warning-color);
}
&.critical {
- color: var(--error-color);
+ color: var(--theme-error-color);
}
&.overdue {
- color: var(--error-color);
+ color: var(--theme-error-color);
}
}
.not-selected {
@@ -198,10 +198,10 @@
color: var(--warning-color);
}
&.critical {
- color: var(--error-color);
+ color: var(--theme-error-color);
}
&.overdue {
- color: var(--error-color);
+ color: var(--theme-error-color);
}
}
.time-divider {
diff --git a/packages/ui/src/components/calendar/DateRangePresenter.svelte b/packages/ui/src/components/calendar/DateRangePresenter.svelte
index 0a9637bcb0..11dd3a34f8 100644
--- a/packages/ui/src/components/calendar/DateRangePresenter.svelte
+++ b/packages/ui/src/components/calendar/DateRangePresenter.svelte
@@ -462,7 +462,7 @@
color: var(--warning-color);
}
&.overdue {
- color: var(--error-color);
+ color: var(--theme-error-color);
}
}
@@ -510,7 +510,7 @@
color: var(--warning-color);
}
&.overdue {
- color: var(--error-color);
+ color: var(--theme-error-color);
}
}
.time-divider {
diff --git a/packages/ui/src/components/calendar/DueDatePopup.svelte b/packages/ui/src/components/calendar/DueDatePopup.svelte
index 89df17a187..a5a2f7b0a5 100644
--- a/packages/ui/src/components/calendar/DueDatePopup.svelte
+++ b/packages/ui/src/components/calendar/DueDatePopup.svelte
@@ -69,7 +69,7 @@
}
&.mIconContainerCritical {
- color: var(--error-color);
+ color: var(--theme-error-color);
}
}
diff --git a/packages/ui/src/components/internal/Root.svelte b/packages/ui/src/components/internal/Root.svelte
index fc37557b15..8745bb6ff7 100644
--- a/packages/ui/src/components/internal/Root.svelte
+++ b/packages/ui/src/components/internal/Root.svelte
@@ -125,7 +125,7 @@
>