This commit is contained in:
parent
db24b893eb
commit
e502feb3a6
28 changed files with 329 additions and 14 deletions
|
|
@ -240,3 +240,7 @@ html[data-design='material3'] .app-tooltip {
|
|||
opacity var(--md-sys-motion-duration-short2) var(--md-sys-motion-easing-standard),
|
||||
transform var(--md-sys-motion-duration-short3) var(--md-sys-motion-easing-emphasized-decelerate);
|
||||
}
|
||||
|
||||
html[data-design='material3'] .app-tooltip {
|
||||
transition-timing-function: var(--md-sys-motion-easing-emphasized-decelerate);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -177,8 +177,8 @@ html[data-design='material3'] {
|
|||
--accent-text: var(--md-sys-color-on-primary);
|
||||
|
||||
--danger: var(--md-sys-color-error);
|
||||
--warning: #f0a500;
|
||||
--success: #4ade80;
|
||||
--warning: var(--md-sys-color-warning);
|
||||
--success: var(--md-sys-color-success);
|
||||
|
||||
--radius-xs: var(--md-sys-shape-corner-extra-small);
|
||||
--radius-sm: var(--md-sys-shape-corner-small);
|
||||
|
|
|
|||
|
|
@ -449,4 +449,15 @@ html[data-design='material3'] .cp-hex-input:focus {
|
|||
border-color: var(--md-sys-color-primary);
|
||||
box-shadow: 0 0 0 1px var(--md-sys-color-primary);
|
||||
}
|
||||
|
||||
/* Типографика M3: sentence case, без отрицательного трекинга, веса 400-500 */
|
||||
html[data-design='material3'] .cp-hex-label {
|
||||
letter-spacing: var(--md-sys-typescale-label-medium-tracking);
|
||||
}
|
||||
|
||||
html[data-design='material3'] .cp-hex-input {
|
||||
font-weight: var(--md-sys-typescale-label-medium-weight);
|
||||
letter-spacing: var(--md-sys-typescale-label-medium-tracking);
|
||||
text-transform: none;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
<script setup lang="ts">
|
||||
import { useUpdaterStore } from '../stores/updater.store'
|
||||
import AppIcon from './AppIcon.vue'
|
||||
|
||||
const updater = useUpdaterStore()
|
||||
</script>
|
||||
|
|
@ -39,7 +40,7 @@ const updater = useUpdaterStore()
|
|||
v-if="!updater.downloading"
|
||||
class="btn-dismiss"
|
||||
@click="updater.dismiss()"
|
||||
>✕</button>
|
||||
><AppIcon name="close" :size="16" /></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -226,4 +227,13 @@ html[data-design='material3'] .btn-dismiss:hover {
|
|||
background: color-mix(in srgb, var(--md-sys-color-on-primary-container) 12%, transparent);
|
||||
color: var(--md-sys-color-on-primary-container);
|
||||
}
|
||||
|
||||
html[data-design='material3'] .btn-dismiss {
|
||||
display: inline-flex;
|
||||
}
|
||||
|
||||
/* Типографика M3: sentence case, без отрицательного трекинга, веса 400-500 */
|
||||
html[data-design='material3'] .banner-icon {
|
||||
font-weight: 500;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ import { ref, computed, onMounted } from 'vue'
|
|||
import { AccountType } from '@shared/types/account'
|
||||
import type { AccountConfig, ImapCredentials } from '@shared/types/account'
|
||||
import { useAccountsStore } from '../../stores/accounts.store'
|
||||
import AppIcon from '../AppIcon.vue'
|
||||
import { useIpc } from '../../composables/useIpc'
|
||||
|
||||
const emit = defineEmits<{ close: [] }>()
|
||||
|
|
@ -295,8 +296,8 @@ const providerName = computed(() => detectedPreset.value?.name ?? 'IMAP')
|
|||
<div class="check-row" :class="imapCheck">
|
||||
<div class="check-icon">
|
||||
<span v-if="imapCheck === 'checking'" class="check-spinner" />
|
||||
<span v-else-if="imapCheck === 'ok'" class="check-ok">✓</span>
|
||||
<span v-else-if="imapCheck === 'error'" class="check-err">✗</span>
|
||||
<span v-else-if="imapCheck === 'ok'" class="check-ok"><AppIcon name="check" :size="16" /></span>
|
||||
<span v-else-if="imapCheck === 'error'" class="check-err"><AppIcon name="close" :size="16" /></span>
|
||||
<span v-else class="check-idle" />
|
||||
</div>
|
||||
<div class="check-text">
|
||||
|
|
@ -307,8 +308,8 @@ const providerName = computed(() => detectedPreset.value?.name ?? 'IMAP')
|
|||
<div class="check-row" :class="smtpCheck">
|
||||
<div class="check-icon">
|
||||
<span v-if="smtpCheck === 'checking'" class="check-spinner" />
|
||||
<span v-else-if="smtpCheck === 'ok'" class="check-ok">✓</span>
|
||||
<span v-else-if="smtpCheck === 'error'" class="check-err">✗</span>
|
||||
<span v-else-if="smtpCheck === 'ok'" class="check-ok"><AppIcon name="check" :size="16" /></span>
|
||||
<span v-else-if="smtpCheck === 'error'" class="check-err"><AppIcon name="close" :size="16" /></span>
|
||||
<span v-else class="check-idle" />
|
||||
</div>
|
||||
<div class="check-text">
|
||||
|
|
@ -323,7 +324,7 @@ const providerName = computed(() => detectedPreset.value?.name ?? 'IMAP')
|
|||
<!-- ── Success step ──────────────────────────────────── -->
|
||||
<template v-if="step === 'success'">
|
||||
<div class="dialog-body success-body">
|
||||
<div class="success-check">✓</div>
|
||||
<div class="success-check"><AppIcon name="check" :size="28" /></div>
|
||||
<h3 class="success-title">Аккаунт добавлен</h3>
|
||||
<div class="success-account">
|
||||
<div class="success-avatar">{{ avatarLetter }}</div>
|
||||
|
|
@ -1132,4 +1133,31 @@ html[data-design='material3'] .success-avatar {
|
|||
border: none;
|
||||
color: var(--md-sys-color-on-primary-container);
|
||||
}
|
||||
|
||||
/* Статусы проверки: иконки в семантических ролях M3 */
|
||||
html[data-design='material3'] .check-ok,
|
||||
html[data-design='material3'] .check-err {
|
||||
display: inline-flex;
|
||||
}
|
||||
|
||||
html[data-design='material3'] .check-ok {
|
||||
color: var(--md-sys-color-success);
|
||||
}
|
||||
|
||||
/* Типографика M3: sentence case, без отрицательного трекинга, веса 400-500 */
|
||||
html[data-design='material3'] .header-avatar,
|
||||
html[data-design='material3'] .check-ok,
|
||||
html[data-design='material3'] .check-err,
|
||||
html[data-design='material3'] .success-avatar {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
/* Движение M3: emphasized-decelerate вместо пружины с овершутом */
|
||||
html[data-design='material3'] .dialog {
|
||||
animation-timing-function: var(--md-sys-motion-easing-emphasized-decelerate);
|
||||
}
|
||||
|
||||
html[data-design='material3'] .success-check {
|
||||
animation-timing-function: var(--md-sys-motion-easing-emphasized-decelerate);
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ import { ref, computed } from 'vue'
|
|||
import { AccountType } from '@shared/types/account'
|
||||
import type { AccountConfig, ImapCredentials } from '@shared/types/account'
|
||||
import { useAccountsStore } from '../../stores/accounts.store'
|
||||
import AppIcon from '../AppIcon.vue'
|
||||
|
||||
const props = defineProps<{ account: AccountConfig }>()
|
||||
const emit = defineEmits<{ close: [] }>()
|
||||
|
|
@ -223,8 +224,8 @@ const isFormValid = computed(() => email.value.trim() && imapHost.value && smtpH
|
|||
<div class="check-row" :class="imapCheck">
|
||||
<div class="check-icon">
|
||||
<span v-if="imapCheck === 'checking'" class="check-spinner" />
|
||||
<span v-else-if="imapCheck === 'ok'" class="check-ok">✓</span>
|
||||
<span v-else-if="imapCheck === 'error'" class="check-err">✗</span>
|
||||
<span v-else-if="imapCheck === 'ok'" class="check-ok"><AppIcon name="check" :size="16" /></span>
|
||||
<span v-else-if="imapCheck === 'error'" class="check-err"><AppIcon name="close" :size="16" /></span>
|
||||
<span v-else class="check-idle" />
|
||||
</div>
|
||||
<div class="check-text">
|
||||
|
|
@ -235,8 +236,8 @@ const isFormValid = computed(() => email.value.trim() && imapHost.value && smtpH
|
|||
<div class="check-row" :class="smtpCheck">
|
||||
<div class="check-icon">
|
||||
<span v-if="smtpCheck === 'checking'" class="check-spinner" />
|
||||
<span v-else-if="smtpCheck === 'ok'" class="check-ok">✓</span>
|
||||
<span v-else-if="smtpCheck === 'error'" class="check-err">✗</span>
|
||||
<span v-else-if="smtpCheck === 'ok'" class="check-ok"><AppIcon name="check" :size="16" /></span>
|
||||
<span v-else-if="smtpCheck === 'error'" class="check-err"><AppIcon name="close" :size="16" /></span>
|
||||
<span v-else class="check-idle" />
|
||||
</div>
|
||||
<div class="check-text">
|
||||
|
|
@ -910,4 +911,26 @@ html[data-design='material3'] .check-spinner {
|
|||
html[data-design='material3'] .check-idle {
|
||||
background: var(--md-sys-color-outline-variant);
|
||||
}
|
||||
|
||||
/* Статусы проверки: иконки в семантических ролях M3 */
|
||||
html[data-design='material3'] .check-ok,
|
||||
html[data-design='material3'] .check-err {
|
||||
display: inline-flex;
|
||||
}
|
||||
|
||||
html[data-design='material3'] .check-ok {
|
||||
color: var(--md-sys-color-success);
|
||||
}
|
||||
|
||||
/* Типографика M3: sentence case, без отрицательного трекинга, веса 400-500 */
|
||||
html[data-design='material3'] .header-avatar,
|
||||
html[data-design='material3'] .check-ok,
|
||||
html[data-design='material3'] .check-err {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
/* Движение M3: emphasized-decelerate вместо пружины с овершутом */
|
||||
html[data-design='material3'] .dialog {
|
||||
animation-timing-function: var(--md-sys-motion-easing-emphasized-decelerate);
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -250,4 +250,9 @@ html[data-design='material3'] .ev-time {
|
|||
html[data-design='material3'] .ev-location {
|
||||
color: var(--md-sys-color-on-surface-variant);
|
||||
}
|
||||
|
||||
/* Цифры одной ширины: счётчики и время не «пляшут» */
|
||||
html[data-design='material3'] .ev-time {
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -766,4 +766,28 @@ html[data-design='material3'] .desc-text {
|
|||
line-height: var(--md-sys-typescale-body-medium-line);
|
||||
color: var(--md-sys-color-on-surface-variant);
|
||||
}
|
||||
|
||||
/* Типографика M3: sentence case, без отрицательного трекинга, веса 400-500 */
|
||||
html[data-design='material3'] .row-label,
|
||||
html[data-design='material3'] .pgroup-head {
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
html[data-design='material3'] .ava {
|
||||
font-weight: 500;
|
||||
letter-spacing: var(--md-sys-typescale-label-medium-tracking);
|
||||
}
|
||||
|
||||
html[data-design='material3'] .stack-more {
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
/* Движение M3: emphasized-decelerate вместо пружины с овершутом */
|
||||
html[data-design='material3'] .popup {
|
||||
animation-timing-function: var(--md-sys-motion-easing-emphasized-decelerate);
|
||||
}
|
||||
|
||||
html[data-design='material3'] .chevron-btn > :deep(svg) {
|
||||
transition-timing-function: var(--md-sys-motion-easing-emphasized-decelerate);
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -488,4 +488,9 @@ html[data-design='material3'] .day-cell.is-today.range-start .day-inner,
|
|||
html[data-design='material3'] .day-cell.is-today.range-end .day-inner {
|
||||
box-shadow: inset 0 0 0 2px var(--md-sys-color-outline);
|
||||
}
|
||||
|
||||
/* Типографика M3: sentence case, без отрицательного трекинга, веса 400-500 */
|
||||
html[data-design='material3'] .dow {
|
||||
text-transform: none;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -890,4 +890,25 @@ html[data-design='material3'] .loading-ring {
|
|||
border-top-color: var(--md-sys-color-primary);
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
/* Типографика M3: sentence case, без отрицательного трекинга, веса 400-500 */
|
||||
html[data-design='material3'] .corner-badge {
|
||||
font-weight: 500;
|
||||
letter-spacing: var(--md-sys-typescale-label-medium-tracking);
|
||||
}
|
||||
|
||||
html[data-design='material3'] .summary-hrs {
|
||||
letter-spacing: var(--md-sys-typescale-label-medium-tracking);
|
||||
}
|
||||
|
||||
html[data-design='material3'] .allday-label {
|
||||
font-weight: var(--md-sys-typescale-label-medium-weight);
|
||||
letter-spacing: var(--md-sys-typescale-label-medium-tracking);
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
/* Цифры одной ширины: счётчики и время не «пляшут» */
|
||||
html[data-design='material3'] .time-gutter {
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -1578,4 +1578,24 @@ html[data-design='material3'] .search-result-folder {
|
|||
background: var(--md-sys-color-primary-container);
|
||||
border: 1px solid transparent;
|
||||
}
|
||||
|
||||
/* Типографика M3: sentence case, без отрицательного трекинга, веса 400-500 */
|
||||
html[data-design='material3'] .message-count {
|
||||
font-weight: 500;
|
||||
letter-spacing: var(--md-sys-typescale-label-medium-tracking);
|
||||
}
|
||||
|
||||
html[data-design='material3'] .bulk-count-num {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
html[data-design='material3'] .pull-indicator,
|
||||
html[data-design='material3'] .search-results-count {
|
||||
letter-spacing: var(--md-sys-typescale-label-medium-tracking);
|
||||
}
|
||||
|
||||
/* Движение M3: emphasized-decelerate вместо пружины с овершутом */
|
||||
html[data-design='material3'] .search-pill {
|
||||
transition-timing-function: var(--md-sys-motion-easing-emphasized-decelerate);
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -582,4 +582,9 @@ html[data-design='material3'] .snippet {
|
|||
font-size: var(--md-sys-typescale-body-small-size);
|
||||
line-height: var(--md-sys-typescale-body-small-line);
|
||||
}
|
||||
|
||||
/* Цифры одной ширины: счётчики и время не «пляшут» */
|
||||
html[data-design='material3'] .date {
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -139,4 +139,9 @@ html[data-design='material3'] .menu-item:hover {
|
|||
html[data-design='material3'] .menu-item:active {
|
||||
background: color-mix(in srgb, var(--md-sys-color-on-surface) 10%, transparent);
|
||||
}
|
||||
|
||||
/* Движение M3: emphasized-decelerate вместо пружины с овершутом */
|
||||
html[data-design='material3'] .context-menu {
|
||||
animation-timing-function: var(--md-sys-motion-easing-emphasized-decelerate);
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -526,4 +526,10 @@ html[data-design='material3'] .thread-card.expanded {
|
|||
background: var(--md-sys-color-surface-container);
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
/* Цифры одной ширины: счётчики и время не «пляшут» */
|
||||
html[data-design='material3'] .thread-date,
|
||||
html[data-design='material3'] .thread-count {
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -148,4 +148,13 @@ html[data-design='material3'] .toast-leave-active {
|
|||
opacity var(--md-sys-motion-duration-medium2) var(--md-sys-motion-easing-emphasized-decelerate),
|
||||
transform var(--md-sys-motion-duration-medium2) var(--md-sys-motion-easing-emphasized-decelerate);
|
||||
}
|
||||
|
||||
/* Движение M3: emphasized-decelerate вместо пружины с овершутом */
|
||||
html[data-design='material3'] .toast-enter-active {
|
||||
transition-timing-function: var(--md-sys-motion-easing-emphasized-decelerate);
|
||||
}
|
||||
|
||||
html[data-design='material3'] .toast-leave-active {
|
||||
transition-timing-function: var(--md-sys-motion-easing-emphasized-decelerate);
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -194,4 +194,9 @@ html[data-design='material3'] .toast-close:hover {
|
|||
background: color-mix(in srgb, var(--md-sys-color-inverse-on-surface) 12%, transparent);
|
||||
color: var(--md-sys-color-inverse-on-surface);
|
||||
}
|
||||
|
||||
/* Движение M3: emphasized-decelerate вместо пружины с овершутом */
|
||||
html[data-design='material3'] .toast {
|
||||
transition-timing-function: var(--md-sys-motion-easing-emphasized-decelerate);
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -386,4 +386,11 @@ html[data-design='material3'] .att-name {
|
|||
html[data-design='material3'] .att-size {
|
||||
font-size: var(--md-sys-typescale-label-small-size);
|
||||
}
|
||||
|
||||
/* Типографика M3: sentence case, без отрицательного трекинга, веса 400-500 */
|
||||
html[data-design='material3'] .strip-label {
|
||||
font-weight: var(--md-sys-typescale-label-medium-weight);
|
||||
letter-spacing: var(--md-sys-typescale-label-medium-tracking);
|
||||
text-transform: none;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -786,4 +786,16 @@ html[data-design='material3'] .popup-leave-active {
|
|||
opacity var(--md-sys-motion-duration-short2) var(--md-sys-motion-easing-standard),
|
||||
transform var(--md-sys-motion-duration-short2) var(--md-sys-motion-easing-emphasized-accelerate);
|
||||
}
|
||||
|
||||
/* Типографика M3: sentence case, без отрицательного трекинга, веса 400-500 */
|
||||
html[data-design='material3'] .label {
|
||||
font-weight: var(--md-sys-typescale-label-medium-weight);
|
||||
letter-spacing: var(--md-sys-typescale-label-medium-tracking);
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
/* Движение M3: emphasized-decelerate вместо пружины с овершутом */
|
||||
html[data-design='material3'] .popup-enter-active {
|
||||
transition-timing-function: var(--md-sys-motion-easing-emphasized-decelerate);
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -233,4 +233,9 @@ html[data-design='material3'] .nav-btn.nav-active {
|
|||
html[data-design='material3'] .nav-btn.nav-active .nav-icon {
|
||||
color: var(--md-sys-color-on-secondary-container);
|
||||
}
|
||||
|
||||
/* Типографика M3: sentence case, без отрицательного трекинга, веса 400-500 */
|
||||
html[data-design='material3'] .account-avatar {
|
||||
font-weight: 500;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -265,4 +265,13 @@ html[data-design='material3'] .menu-item:active {
|
|||
html[data-design='material3'] .menu-divider {
|
||||
background: var(--md-sys-color-outline-variant);
|
||||
}
|
||||
|
||||
/* Движение M3: emphasized-decelerate вместо пружины с овершутом */
|
||||
html[data-design='material3'] .context-menu {
|
||||
animation-timing-function: var(--md-sys-motion-easing-emphasized-decelerate);
|
||||
}
|
||||
|
||||
html[data-design='material3'] .submenu {
|
||||
animation-timing-function: var(--md-sys-motion-easing-emphasized-decelerate);
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -102,4 +102,9 @@ html[data-design='material3'] .empty {
|
|||
font-size: var(--md-sys-typescale-body-medium-size);
|
||||
color: var(--md-sys-color-on-surface-variant);
|
||||
}
|
||||
|
||||
/* Типографика M3: sentence case, без отрицательного трекинга, веса 400-500 */
|
||||
html[data-design='material3'] .folder-header {
|
||||
text-transform: none;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -453,4 +453,9 @@ html[data-design='material3'] .muted-icon {
|
|||
color: var(--md-sys-color-on-surface-variant);
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
/* Цифры одной ширины: счётчики и время не «пляшут» */
|
||||
html[data-design='material3'] .unread-badge {
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -392,4 +392,9 @@ html[data-design='material3'] .submit-btn {
|
|||
html[data-design='material3'] .submit-btn:hover:not(:disabled) {
|
||||
box-shadow: var(--md-sys-elevation-1);
|
||||
}
|
||||
|
||||
/* Движение M3: emphasized-decelerate вместо пружины с овершутом */
|
||||
html[data-design='material3'] .dialog {
|
||||
animation-timing-function: var(--md-sys-motion-easing-emphasized-decelerate);
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
import {
|
||||
Blend,
|
||||
Hct,
|
||||
SchemeTonalSpot,
|
||||
TonalPalette,
|
||||
MaterialDynamicColors,
|
||||
hexFromArgb,
|
||||
argbFromHex,
|
||||
|
|
@ -52,6 +54,25 @@ const ROLE_GETTERS: Record<string, (scheme: DynamicScheme) => number> = {
|
|||
|
||||
export type Material3Tokens = Record<string, string>
|
||||
|
||||
// M3 «custom colors»: семантические цвета гармонизируются с seed, чтобы не выбиваться из палитры
|
||||
const CUSTOM_COLOR_SOURCES: Record<string, string> = {
|
||||
success: '#3f8f5a',
|
||||
warning: '#b8860b'
|
||||
}
|
||||
|
||||
function generateCustomColorTokens(seedArgb: number): Material3Tokens {
|
||||
const tokens: Material3Tokens = {}
|
||||
for (const name in CUSTOM_COLOR_SOURCES) {
|
||||
const harmonized = Blend.harmonize(argbFromHex(CUSTOM_COLOR_SOURCES[name]), seedArgb)
|
||||
const palette = TonalPalette.fromInt(harmonized)
|
||||
tokens[name] = hexFromArgb(palette.tone(80))
|
||||
tokens[`on-${name}`] = hexFromArgb(palette.tone(20))
|
||||
tokens[`${name}-container`] = hexFromArgb(palette.tone(30))
|
||||
tokens[`on-${name}-container`] = hexFromArgb(palette.tone(90))
|
||||
}
|
||||
return tokens
|
||||
}
|
||||
|
||||
// Генерирует полный набор тёмных M3 color-ролей из seed-цвета (HCT tonal-spot — та же схема, что Material You на Android)
|
||||
export function generateMaterial3DarkTokens(seedHex: string): Material3Tokens {
|
||||
const sourceHct = Hct.fromInt(argbFromHex(seedHex))
|
||||
|
|
@ -61,7 +82,7 @@ export function generateMaterial3DarkTokens(seedHex: string): Material3Tokens {
|
|||
for (const role in ROLE_GETTERS) {
|
||||
tokens[role] = hexFromArgb(ROLE_GETTERS[role](scheme))
|
||||
}
|
||||
return tokens
|
||||
return { ...tokens, ...generateCustomColorTokens(sourceHct.toInt()) }
|
||||
}
|
||||
|
||||
// Применяет сгенерированные роли как CSS custom properties --md-sys-color-*,
|
||||
|
|
|
|||
|
|
@ -931,4 +931,23 @@ html[data-design='material3'] .color-picker-popover {
|
|||
html[data-design='material3'] .color-swatch.selected {
|
||||
border-color: var(--md-sys-color-on-surface);
|
||||
}
|
||||
|
||||
/* Типографика M3: sentence case, без отрицательного трекинга, веса 400-500 */
|
||||
html[data-design='material3'] .cal-list-header {
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
html[data-design='material3'] .today-btn,
|
||||
html[data-design='material3'] .add-btn {
|
||||
letter-spacing: var(--md-sys-typescale-label-medium-tracking);
|
||||
}
|
||||
|
||||
html[data-design='material3'] .empty-content h2 {
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
/* Движение M3: emphasized-decelerate вместо пружины с овершутом */
|
||||
html[data-design='material3'] .color-picker-popover {
|
||||
animation-timing-function: var(--md-sys-motion-easing-emphasized-decelerate);
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -1497,4 +1497,26 @@ html[data-design='material3'] .drag-leave-active {
|
|||
opacity var(--md-sys-motion-duration-short3) var(--md-sys-motion-easing-standard),
|
||||
transform var(--md-sys-motion-duration-short3) var(--md-sys-motion-easing-emphasized-decelerate);
|
||||
}
|
||||
|
||||
/* Типографика M3: sentence case, без отрицательного трекинга, веса 400-500 */
|
||||
html[data-design='material3'] .drag-title {
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
html[data-design='material3'] .attach-badge {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
html[data-design='material3'] .shortcut-hint {
|
||||
letter-spacing: var(--md-sys-typescale-label-medium-tracking);
|
||||
}
|
||||
|
||||
/* Движение M3: emphasized-decelerate вместо пружины с овершутом */
|
||||
html[data-design='material3'] .drag-enter-active {
|
||||
transition-timing-function: var(--md-sys-motion-easing-emphasized-decelerate);
|
||||
}
|
||||
|
||||
html[data-design='material3'] .drag-leave-active {
|
||||
transition-timing-function: var(--md-sys-motion-easing-emphasized-decelerate);
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -291,4 +291,9 @@ html[data-design='material3'] .action-btn.primary {
|
|||
background: var(--md-sys-color-primary);
|
||||
color: var(--md-sys-color-on-primary);
|
||||
}
|
||||
|
||||
/* Типографика M3: sentence case, без отрицательного трекинга, веса 400-500 */
|
||||
html[data-design='material3'] .card-badge {
|
||||
font-weight: 500;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -285,7 +285,7 @@ function folderDisplayName(path: string): string {
|
|||
<span class="ver-chip">v{{ appVersion }}</span>
|
||||
<Transition name="status-fade" mode="out-in">
|
||||
<span v-if="updaterStore.upToDate && !updaterStore.available" key="ok" class="status-chip status-ok">
|
||||
✓ актуальная
|
||||
<AppIcon name="check" :size="14" /> актуальная
|
||||
</span>
|
||||
<span v-else-if="updaterStore.available" key="new" class="status-chip status-new">
|
||||
↑ {{ updaterStore.version }}
|
||||
|
|
@ -1203,4 +1203,23 @@ html[data-design='material3'] .update-progress-track {
|
|||
html[data-design='material3'] .update-error {
|
||||
color: var(--md-sys-color-error);
|
||||
}
|
||||
|
||||
html[data-design='material3'] .status-chip {
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
/* Типографика M3: sentence case, без отрицательного трекинга, веса 400-500 */
|
||||
html[data-design='material3'] .account-avatar {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
html[data-design='material3'] .account-type {
|
||||
font-weight: var(--md-sys-typescale-label-medium-weight);
|
||||
letter-spacing: var(--md-sys-typescale-label-medium-tracking);
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
html[data-design='material3'] .status-chip {
|
||||
letter-spacing: var(--md-sys-typescale-label-medium-tracking);
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
Loading…
Reference in a new issue