From 48e05dcaa5cbf1cb24f9625ead03a17e23a06681 Mon Sep 17 00:00:00 2001 From: Zamitto <167933696+zamitto@users.noreply.github.com> Date: Thu, 20 Jun 2024 12:05:38 -0300 Subject: [PATCH] update background transparency --- src/renderer/src/components/sidebar/sidebar-profile.css.ts | 1 + src/renderer/src/hooks/use-user-details.ts | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/renderer/src/components/sidebar/sidebar-profile.css.ts b/src/renderer/src/components/sidebar/sidebar-profile.css.ts index 5f3c16da..c5347c26 100644 --- a/src/renderer/src/components/sidebar/sidebar-profile.css.ts +++ b/src/renderer/src/components/sidebar/sidebar-profile.css.ts @@ -59,6 +59,7 @@ export const profileButtonTitle = style({ fontWeight: "bold", fontSize: vars.size.body, width: "100%", + textAlign: "left", overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap", diff --git a/src/renderer/src/hooks/use-user-details.ts b/src/renderer/src/hooks/use-user-details.ts index d73e2a07..1d8257f4 100644 --- a/src/renderer/src/hooks/use-user-details.ts +++ b/src/renderer/src/hooks/use-user-details.ts @@ -36,7 +36,7 @@ export function useUserDetails() { 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)); window.localStorage.setItem( @@ -44,7 +44,7 @@ export function useUserDetails() { JSON.stringify({ ...userDetails, profileBackground }) ); } else { - const profileBackground = `#151515e6`; + const profileBackground = `#151515B3`; dispatch(setProfileBackground(profileBackground)); window.localStorage.setItem(