[Library|Trunk]

CustomizationOptions class: update according to UI - admin design


git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@57274 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
argiro.kokogiannaki 2019-10-07 06:58:49 +00:00
parent bb1b22c15b
commit bc427b7e62
1 changed files with 140 additions and 48 deletions

View File

@ -2,47 +2,24 @@ export class CustomizationOptions {
mainColor: string; mainColor: string;
secondaryColor: string; secondaryColor: string;
panel: { panel: {
onDarkBackground: boolean,
background: { background: {
// gradientDirection: string; color: string; //background
borderStyle: string; borderStyle: string;
borderColor: string; borderColor: string;
borderWidth: string; borderWidth: number;
}, fonts: { }, fonts: {
color: string; color: string;
family: string; family: string;
size: string; size: number;
weight: number;
}, },
title: { title: {
color: string; color: string;
family: string; family: string;
size: string; size: number;
weight: number;
}, },
links: {
color: string;
family: string;
size: string;
// decoration: string;
onHover: {
color: string;
}
};
buttons: {
backgroundColor: string;
color: string;
fontWeight:string;
borderStyle: string;
borderColor: string;
borderWidth: string;
borderRadius: string;
onHover: {
backgroundColor: string;
color: string;
borderColor: string;
}
};
panelElements: { panelElements: {
backgroundColor: string; backgroundColor: string;
borderColor: string; borderColor: string;
@ -53,30 +30,145 @@ export class CustomizationOptions {
box: { box: {
borderColor: string; borderColor: string;
borderStyle: string; borderStyle: string;
borderWidth: string; borderWidth: number;
borderRadius: string; borderRadius: number;
} }
; ;
links: { links: {
color: ""; darkBackground: {
family: string; family: string;
decoration: string; size: number;
onHover: { weight: number;
color: string; color: string;
onHover: {
color: string;
};
};
lightBackground: {
color: string;
onHover: {
color: string;
};
};
};
buttons: {
darkBackground: {
backgroundColor: string;
color: string;
borderStyle: string;
borderColor: string;
borderWidth: number;
borderRadius: number;
onHover: {
backgroundColor: string;
color: string;
borderColor: string;
};
};
lightBackground: {
backgroundColor: string;
color: string;
borderStyle: string;
borderColor: string;
borderWidth: number;
borderRadius: number;
onHover: {
backgroundColor: string;
color: string;
borderColor: string;
};
}; };
}; };
buttons: {
backgroundColor: string; constructor() {
color: string;
borderStyle: string; this.mainColor = '#4C9CD5';
borderColor: string; this.secondaryColor = '#24857F';
borderWidth: string; this.panel = {
borderRadius: string; onDarkBackground: true,
onHover: { background: {
backgroundColor: string; color: '#4C9CD5',
color: string; borderStyle: 'solid',
borderColor: string; borderColor: "#4C9CD5",
borderWidth: 0
}, fonts: {
color: '#ffffff',
family: '"Open Sans", sans-serif',
size: 14,
weight: 400
},
title: {
color: '#ffffff',
family: '"Open Sans", sans-serif',
size: 18,
weight: 700
},
panelElements: {
backgroundColor: 'rgba(255, 255, 255, 0.5)',
borderColor: 'rgba(255, 255, 255, 0.5)',
color: '#ffffff'
}
}; };
};
this.box = {
borderColor: '#4C9CD5',
borderStyle: 'solid',
borderWidth: 2,
borderRadius: 6,
};
this.links = {
darkBackground: {
family: '"Open Sans", sans-serif',
size: 14,
weight: 400,
color: 'rgba(255, 255, 255, 0.98)',
onHover: {
color: 'rgba(255, 255, 255, 0.5)',
},
},
lightBackground: {
color: '#4C9CD5',
onHover: {
color: '#24857F'
},
}
};
this.buttons = {
darkBackground: {
backgroundColor: "#ffffff",
color:"#4C9CD5",
borderStyle:"solid",
borderColor: "#ffffff",
borderWidth: 1,
borderRadius: 4,
onHover: {
backgroundColor: "#eeeeee",
color: "#4C9CD5",
borderColor: "#eeeeee",
}
},
lightBackground: {
backgroundColor: '#003052',
color: '#ffffff',
borderStyle: "solid",
borderColor: "#003052",
borderWidth: 1,
borderRadius: 4,
onHover: {
backgroundColor: '#154B71',
color: '#ffffff',
borderColor: "#154B71",
}
}
};
}
getCopy(): CustomizationOptions {
return (JSON.parse(JSON.stringify(this)));
}
} }