update background transparency

This commit is contained in:
Zamitto 2024-06-20 12:05:38 -03:00
parent f019820458
commit 48e05dcaa5
2 changed files with 3 additions and 2 deletions

View file

@ -59,6 +59,7 @@ export const profileButtonTitle = style({
fontWeight: "bold", fontWeight: "bold",
fontSize: vars.size.body, fontSize: vars.size.body,
width: "100%", width: "100%",
textAlign: "left",
overflow: "hidden", overflow: "hidden",
textOverflow: "ellipsis", textOverflow: "ellipsis",
whiteSpace: "nowrap", whiteSpace: "nowrap",

View file

@ -36,7 +36,7 @@ export function useUserDetails() {
format: "hex", format: "hex",
}); });
const profileBackground = `linear-gradient(135deg, ${darkenColor(output as string, 0.6)}, ${darkenColor(output as string, 0.8, 0.9)})`; const profileBackground = `linear-gradient(135deg, ${darkenColor(output as string, 0.6)}, ${darkenColor(output as string, 0.8, 0.7)})`;
dispatch(setProfileBackground(profileBackground)); dispatch(setProfileBackground(profileBackground));
window.localStorage.setItem( window.localStorage.setItem(
@ -44,7 +44,7 @@ export function useUserDetails() {
JSON.stringify({ ...userDetails, profileBackground }) JSON.stringify({ ...userDetails, profileBackground })
); );
} else { } else {
const profileBackground = `#151515e6`; const profileBackground = `#151515B3`;
dispatch(setProfileBackground(profileBackground)); dispatch(setProfileBackground(profileBackground));
window.localStorage.setItem( window.localStorage.setItem(