Skip to content

Commit

Permalink
revert movistar-legacy changes
Browse files Browse the repository at this point in the history
  • Loading branch information
atabel committed Sep 22, 2023
1 parent f5de7b3 commit 39f4285
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/skins/movistar-legacy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ export const palette = {
darkModeGrey: '#242424',
};

export const getMovistarLegacySkin: GetKnownSkin = () => {
/**
* @deprecated Use `getMovistarSkin` instead.
*/
export const getMovistarLegacySkin: GetKnownSkin = (variant) => {
const skin: KnownSkin = {
name: MOVISTAR_LEGACY_SKIN,
colors: {
Expand Down Expand Up @@ -296,5 +299,15 @@ export const getMovistarLegacySkin: GetKnownSkin = () => {
text10: {weight: 'bold'},
},
};

if (variant === 'prominent') {
skin.colors.brand = palette.movistarProminentBlue;
skin.colors.brandHigh = palette.movistarProminentBlueDark;
skin.colors.backgroundBrand = palette.movistarProminentBlue;
skin.colors.navigationBarBackground = palette.movistarProminentBlue;
skin.colors.backgroundFeedbackBottom = palette.movistarProminentBlue;
skin.colors.controlActivated = palette.movistarProminentBlue;
skin.colors.dividerInverse = palette.movistarProminentBlueDark;
}
return skin;
};

0 comments on commit 39f4285

Please sign in to comment.