From a28f7dbfebd2e79715110185a4c13906a33e34d5 Mon Sep 17 00:00:00 2001 From: Egorov Aleksey Date: Mon, 20 Nov 2023 15:44:28 +0300 Subject: [PATCH] added token --- .../__snapshots__/snapthots.test.ts.snap | 58 +++++++++++++++++++ src/interfaces/themes/calendar/index.ts | 1 + .../themes/calendar/index.ts | 1 + 3 files changed, 60 insertions(+) diff --git a/src/build/__snapshots__/snapthots.test.ts.snap b/src/build/__snapshots__/snapthots.test.ts.snap index f1cd97ba..21753ba3 100644 --- a/src/build/__snapshots__/snapthots.test.ts.snap +++ b/src/build/__snapshots__/snapthots.test.ts.snap @@ -1348,6 +1348,20 @@ exports[`shapshots calendar theme should match cssVars snapshot 1`] = ` "value": "var(--vkui--calendar_color_headeron_widget_alpha, rgba(0, 95, 249, 1))", }, }, + "calendarColorIconAppointment": { + "active": { + "name": "--vkui--calendar_color_icon_appointment--active", + "value": "var(--vkui--calendar_color_icon_appointment--active, #E4AC09)", + }, + "hover": { + "name": "--vkui--calendar_color_icon_appointment--hover", + "value": "var(--vkui--calendar_color_icon_appointment--hover, #EEB306)", + }, + "normal": { + "name": "--vkui--calendar_color_icon_appointment", + "value": "var(--vkui--calendar_color_icon_appointment, #F8BA04)", + }, + }, "calendarColorIconEvent": { "active": { "name": "--vkui--calendar_color_icon_event--active", @@ -6781,6 +6795,11 @@ exports[`shapshots calendar theme should match pixelify theme snapshot 1`] = ` "hover": "#005CF1", "normal": "rgba(0, 95, 249, 1)", }, + "calendarColorIconAppointment": { + "active": "#E4AC09", + "hover": "#EEB306", + "normal": "#F8BA04", + }, "calendarColorIconEvent": { "active": "#089AEB", "hover": "#09A0F2", @@ -8762,6 +8781,11 @@ exports[`shapshots calendar theme should match pseudo theme from CssVars 1`] = ` "hover": "var(--vkui--calendar_color_headeron_widget_alpha--hover, #005CF1)", "normal": "var(--vkui--calendar_color_headeron_widget_alpha, rgba(0, 95, 249, 1))", }, + "calendarColorIconAppointment": { + "active": "var(--vkui--calendar_color_icon_appointment--active, #E4AC09)", + "hover": "var(--vkui--calendar_color_icon_appointment--hover, #EEB306)", + "normal": "var(--vkui--calendar_color_icon_appointment, #F8BA04)", + }, "calendarColorIconEvent": { "active": "var(--vkui--calendar_color_icon_event--active, #089AEB)", "hover": "var(--vkui--calendar_color_icon_event--hover, #09A0F2)", @@ -10743,6 +10767,11 @@ exports[`shapshots calendar theme should match root theme snapshot 1`] = ` "hover": "#005CF1", "normal": "rgba(0, 95, 249, 1)", }, + "calendarColorIconAppointment": { + "active": "#E4AC09", + "hover": "#EEB306", + "normal": "#F8BA04", + }, "calendarColorIconEvent": { "active": "#089AEB", "hover": "#09A0F2", @@ -13585,6 +13614,20 @@ exports[`shapshots calendarDark theme should match cssVars snapshot 1`] = ` "value": "var(--vkui--calendar_color_headeron_widget_alpha, rgba(255, 255, 255, 0.3))", }, }, + "calendarColorIconAppointment": { + "active": { + "name": "--vkui--calendar_color_icon_appointment--active", + "value": "var(--vkui--calendar_color_icon_appointment--active, #F9C018)", + }, + "hover": { + "name": "--vkui--calendar_color_icon_appointment--hover", + "value": "var(--vkui--calendar_color_icon_appointment--hover, #F8BD0E)", + }, + "normal": { + "name": "--vkui--calendar_color_icon_appointment", + "value": "var(--vkui--calendar_color_icon_appointment, #F8BA04)", + }, + }, "calendarColorIconEvent": { "active": { "name": "--vkui--calendar_color_icon_event--active", @@ -19018,6 +19061,11 @@ exports[`shapshots calendarDark theme should match pixelify theme snapshot 1`] = "hover": "rgba(255, 255, 255, 0.34)", "normal": "rgba(255, 255, 255, 0.3)", }, + "calendarColorIconAppointment": { + "active": "#F9C018", + "hover": "#F8BD0E", + "normal": "#F8BA04", + }, "calendarColorIconEvent": { "active": "#4BC0FE", "hover": "#43BDFE", @@ -20999,6 +21047,11 @@ exports[`shapshots calendarDark theme should match pseudo theme from CssVars 1`] "hover": "var(--vkui--calendar_color_headeron_widget_alpha--hover, rgba(255, 255, 255, 0.34))", "normal": "var(--vkui--calendar_color_headeron_widget_alpha, rgba(255, 255, 255, 0.3))", }, + "calendarColorIconAppointment": { + "active": "var(--vkui--calendar_color_icon_appointment--active, #F9C018)", + "hover": "var(--vkui--calendar_color_icon_appointment--hover, #F8BD0E)", + "normal": "var(--vkui--calendar_color_icon_appointment, #F8BA04)", + }, "calendarColorIconEvent": { "active": "var(--vkui--calendar_color_icon_event--active, #4BC0FE)", "hover": "var(--vkui--calendar_color_icon_event--hover, #43BDFE)", @@ -22980,6 +23033,11 @@ exports[`shapshots calendarDark theme should match root theme snapshot 1`] = ` "hover": "rgba(255, 255, 255, 0.34)", "normal": "rgba(255, 255, 255, 0.3)", }, + "calendarColorIconAppointment": { + "active": "#F9C018", + "hover": "#F8BD0E", + "normal": "#F8BA04", + }, "calendarColorIconEvent": { "active": "#4BC0FE", "hover": "#43BDFE", diff --git a/src/interfaces/themes/calendar/index.ts b/src/interfaces/themes/calendar/index.ts index 018dd27e..b5f9621e 100644 --- a/src/interfaces/themes/calendar/index.ts +++ b/src/interfaces/themes/calendar/index.ts @@ -199,6 +199,7 @@ export interface LocalCalendarColorDescriptionStruct { calendarColorIconTravel: ColorDescription; calendarColorIconEvent: ColorDescription; calendarColorIconOthers: ColorDescription; + calendarColorIconAppointment: ColorDescription; } export type CalendarLocalColors = { diff --git a/src/themeDescriptions/themes/calendar/index.ts b/src/themeDescriptions/themes/calendar/index.ts index 0c76aa0b..4307b02d 100644 --- a/src/themeDescriptions/themes/calendar/index.ts +++ b/src/themeDescriptions/themes/calendar/index.ts @@ -80,6 +80,7 @@ export const calendarTheme: ThemeCalendarDescription = { calendarColorIconTravel: '#ba34fc', calendarColorIconEvent: '#09a6fa', calendarColorIconOthers: '#005FF9', + calendarColorIconAppointment: '#F8BA04', // для кнопок, которые голубые в светлой теме и серые в темной calendarColorBackgroundAccentTintThemed: {