diff --git a/packages/text-editor/src/types.ts b/packages/text-editor/src/types.ts index 351a28aef4..71b15f941b 100644 --- a/packages/text-editor/src/types.ts +++ b/packages/text-editor/src/types.ts @@ -47,7 +47,7 @@ export const FORMAT_MODES = [ /** * @public */ -export type FormatMode = typeof FORMAT_MODES[number] +export type FormatMode = (typeof FORMAT_MODES)[number] /** * @public diff --git a/packages/theme/styles/_colors.scss b/packages/theme/styles/_colors.scss index 55517cca08..101d48f802 100644 --- a/packages/theme/styles/_colors.scss +++ b/packages/theme/styles/_colors.scss @@ -119,6 +119,12 @@ --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; + --theme-calendar-today-color: #fff; + --theme-calendar-holiday-color: #eb5757; + --theme-calendar-weekend-color: rgba(242, 153, 74, 1); + --theme-calendar-today-bgcolor: rgba(32, 93, 194, .1); + --theme-calendar-holiday-bgcolor: rgba(235, 87, 87, .1); + --theme-calendar-weekend-bgcolor: rgba(242, 153, 74, .05); --body-color: #1f2023; --body-accent: #222326; @@ -269,6 +275,12 @@ --theme-popup-divider: rgba(0, 0, 0, .1); --theme-popup-shadow: 0px 4px 4px rgba(0, 0, 0, 0.1); --theme-panel-color: #FFFFFF; + --theme-calendar-today-color: #000; + --theme-calendar-holiday-color: #eb5757; + --theme-calendar-weekend-color: rgba(242, 153, 74, 1); + --theme-calendar-today-bgcolor: rgba(43, 81, 144, .1); + --theme-calendar-holiday-bgcolor: rgba(235, 87, 87, .1); + --theme-calendar-weekend-bgcolor: rgba(242, 153, 74, .1); --body-color: #fff; --body-accent: #fafafa; // HZ diff --git a/packages/theme/styles/_layouts.scss b/packages/theme/styles/_layouts.scss index 4ce18415b0..674325596e 100644 --- a/packages/theme/styles/_layouts.scss +++ b/packages/theme/styles/_layouts.scss @@ -186,6 +186,7 @@ input.search { display: flex; justify-content: space-between; align-items: center; + min-width: 0; } .flex-stretch { display: flex; diff --git a/packages/theme/styles/components.scss b/packages/theme/styles/components.scss index 4667a22c1c..47a327d2d6 100644 --- a/packages/theme/styles/components.scss +++ b/packages/theme/styles/components.scss @@ -713,6 +713,7 @@ align-items: center; flex-shrink: 1; min-width: 0; + border-radius: 0 1.49rem 1.49rem 0; .label-wrapper { display: flex; diff --git a/packages/ui/src/components/Scroller.svelte b/packages/ui/src/components/Scroller.svelte index e341a041e2..766c1e9160 100644 --- a/packages/ui/src/components/Scroller.svelte +++ b/packages/ui/src/components/Scroller.svelte @@ -444,6 +444,7 @@ class:buttons={buttons === 'normal'} class:union={buttons === 'union'} class:shrink + style:user-select={isScrolling ? 'none' : 'inherit'} style:--scroller-header-height={`${fade.multipler?.top ?? 0.125}rem`} style:--scroller-footer-height={`${fade.multipler?.bottom ?? 0.125}rem`} > diff --git a/packages/ui/src/components/calendar/DatePresenter.svelte b/packages/ui/src/components/calendar/DatePresenter.svelte index bfd2f602c6..9270ec4f0c 100644 --- a/packages/ui/src/components/calendar/DatePresenter.svelte +++ b/packages/ui/src/components/calendar/DatePresenter.svelte @@ -165,7 +165,7 @@ margin-right: 0; } &.normal { - color: var(--content-color); + color: var(--theme-content-color); } &.warning { color: var(--warning-color); @@ -178,15 +178,15 @@ } } .not-selected { - color: var(--content-color); + color: var(--theme-dark-color); } &:hover { - color: var(--caption-color); + color: var(--theme-caption-color); transition-duration: 0; .not-selected { - color: var(--accent-color); + color: var(--theme-caption-color); } } &.editable { @@ -224,9 +224,9 @@ cursor: default; &:hover { - color: var(--content-color); + color: var(--theme-dark-color); .btn-icon { - color: var(--content-color); + color: var(--theme-dark-color); } } } @@ -240,40 +240,38 @@ margin-right: 0.5rem; } &:hover { - color: var(--caption-color); - background-color: var(--body-color); - border-color: var(--divider-color); + color: var(--theme-caption-color); + background-color: var(--theme-button-hovered); + border-color: var(--theme-divider-color); .btn-icon { - color: var(--content-color); + color: var(--theme-caption-color); } } } &.list { padding: 0 0.625em 0 0.5rem; min-height: 1.75rem; - color: var(--content-color); - background-color: var(--body-color); - border: 1px solid var(--divider-color); + background-color: var(--theme-list-button-color); + border: 1px solid var(--theme-divider-color); border-radius: 3rem; transition-property: border, color, background-color; transition-duration: 0.15s; &:hover { - color: var(--caption-color); - background-color: var(--board-card-bg-color); - border-color: var(--button-border-color); + color: var(--theme-caption-color); + background-color: var(--theme-list-button-color); + border-color: var(--theme-divider-color); } } &.link-bordered { padding: 0 0.375rem; - color: var(--accent-color); - border-color: var(--divider-color); + color: var(--theme-content-color); + border-color: var(--theme-button-border); &:hover { - color: var(--accent-color); - background-color: var(--button-bg-hover); - border-color: var(--button-border-hover); + color: var(--theme-caption-color); + background-color: var(--theme-button-hovered); .btn-icon { - color: var(--accent-color); + color: var(--theme-caption-color); } } } @@ -305,7 +303,7 @@ width: 1px; min-width: 1px; height: 0.75rem; - background-color: var(--button-border-color); + background-color: var(--theme-divider-color); } .separator { margin: 0 0.1rem; diff --git a/plugins/attachment-resources/src/components/FileBrowser.svelte b/plugins/attachment-resources/src/components/FileBrowser.svelte index 3bb64b6b14..9b68a033c7 100644 --- a/plugins/attachment-resources/src/components/FileBrowser.svelte +++ b/plugins/attachment-resources/src/components/FileBrowser.svelte @@ -17,7 +17,7 @@ import contact, { Employee, EmployeeAccount } from '@hcengineering/contact' import core, { Class, getCurrentAccount, Ref, Space } from '@hcengineering/core' import { getClient } from '@hcengineering/presentation' - import { ActionIcon, IconMoreH, Label, Loading, location, navigate, TabList, SearchEdit } from '@hcengineering/ui' + import { Label, Loading, location, navigate, TabList, SearchEdit } from '@hcengineering/ui' import view from '@hcengineering/view' import { get } from 'svelte/store' import { dateFileBrowserFilters, FileBrowserSortMode, fileTypeFileBrowserFilters, sortModeToOptionObject } from '..' @@ -122,7 +122,7 @@