Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added token #683

Merged
merged 1 commit into from
Nov 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 58 additions & 0 deletions src/build/__snapshots__/snapthots.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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)",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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)",
Expand Down Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions src/interfaces/themes/calendar/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ export interface LocalCalendarColorDescriptionStruct {
calendarColorIconTravel: ColorDescription;
calendarColorIconEvent: ColorDescription;
calendarColorIconOthers: ColorDescription;
calendarColorIconAppointment: ColorDescription;
}

export type CalendarLocalColors = {
Expand Down
1 change: 1 addition & 0 deletions src/themeDescriptions/themes/calendar/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export const calendarTheme: ThemeCalendarDescription = {
calendarColorIconTravel: '#ba34fc',
calendarColorIconEvent: '#09a6fa',
calendarColorIconOthers: '#005FF9',
calendarColorIconAppointment: '#F8BA04',

// для кнопок, которые голубые в светлой теме и серые в темной
calendarColorBackgroundAccentTintThemed: {
Expand Down