From 0ba4efd43eca08b9dbbcb75b6ca98d31263a98d2 Mon Sep 17 00:00:00 2001 From: Shiba <44804845+DeepDoge@users.noreply.github.com> Date: Fri, 1 Jul 2022 20:37:03 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8D=99=20New=20button=20style=20with=20gr?= =?UTF-8?q?adient?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/popup/main.tsx | 13 ++++++++----- src/scripts/ytContent.tsx | 2 ++ 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/pages/popup/main.tsx b/src/pages/popup/main.tsx index 1b9e319..41bc743 100644 --- a/src/pages/popup/main.tsx +++ b/src/pages/popup/main.tsx @@ -68,11 +68,14 @@ function WatchOnLbryPopup(params: { profile: Awaited loads(generateProfileAndSetNickname(dialogManager)).then(() => renderPopup())} className={`button active`}> Change Nickname - - await dialogManager.confirm("This will delete your keypair from this device.\nStill wanna continue?\n\nNOTE: Without keypair you can't purge your data online.\nSo if you wish to purge, please use purging instead.") - && resetProfileSettings() - && renderPopup() - } + { + if (!await dialogManager.confirm("This will delete your keypair from this device." + + "\nStill wanna continue?" + + "\n\nNOTE: Without keypair you can't purge your data online." + + "\nSo if you wish to purge, please use purging instead.")) return + resetProfileSettings() + renderPopup() + }} className={`button`} > Forget/Logout diff --git a/src/scripts/ytContent.tsx b/src/scripts/ytContent.tsx index b1f97cb..a986107 100644 --- a/src/scripts/ytContent.tsx +++ b/src/scripts/ytContent.tsx @@ -32,6 +32,8 @@ function WatchOnLbryButton({ targetPlatform, lbryPathname, time }: WatchOnLbryBu gap: '12px', borderRadius: '2px', backgroundColor: targetPlatform.theme, + backgroundImage: targetPlatform.theme, + fontWeight: 'bold', border: '0', color: 'whitesmoke', padding: '10px 16px',