From 2a050f24ac4d3b4338524c17b9e60b7b6148544f Mon Sep 17 00:00:00 2001 From: Balli Asghar Date: Mon, 2 Dec 2024 19:07:29 +0000 Subject: [PATCH 1/2] Update icons and changelog for appearance adaptation - Adapt black and white icons to system appearance settings. - Update changelog to reflect recent changes. - Add new contributor to package.json. --- extensions/one-time-password/CHANGELOG.md | 10 ++++++++++ extensions/one-time-password/package.json | 3 ++- extensions/one-time-password/src/one-time-password.tsx | 7 ++++++- 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/extensions/one-time-password/CHANGELOG.md b/extensions/one-time-password/CHANGELOG.md index 076c6e32d0b20..a37a9eb125cc3 100644 --- a/extensions/one-time-password/CHANGELOG.md +++ b/extensions/one-time-password/CHANGELOG.md @@ -1,5 +1,15 @@ # One Time Password Changelog +## 2024-12-02 + +### Added + +- Black and white icons now adapt to the system's appearance settings. + +### Changed + +- Removed color from the icons to make them more consistent with the system's appearance settings. + ## 2024-11-07 ### Added diff --git a/extensions/one-time-password/package.json b/extensions/one-time-password/package.json index fee121140a08f..9e26445dd5516 100644 --- a/extensions/one-time-password/package.json +++ b/extensions/one-time-password/package.json @@ -6,7 +6,8 @@ "icon": "icon.png", "author": "lachero", "contributors": [ - "soulevans07" + "soulevans07", + "BalliAsghar" ], "categories": [ "Security", diff --git a/extensions/one-time-password/src/one-time-password.tsx b/extensions/one-time-password/src/one-time-password.tsx index c4260f811abf9..4e38924cf9da9 100644 --- a/extensions/one-time-password/src/one-time-password.tsx +++ b/extensions/one-time-password/src/one-time-password.tsx @@ -13,6 +13,7 @@ import { popToRoot, confirmAlert, Color, + environment, } from '@raycast/api'; import { useEffect, useState } from 'react'; import { getProgressIcon } from '@raycast/utils'; @@ -35,6 +36,8 @@ export default () => { const [accounts, setAccounts] = useState([]); const [qrCodeScanType, setQRCodeScanType] = useState(null); +const { appearance } = environment; + async function loadAccounts() { if (accounts.length === 0) setLoading(true); setAccounts(await store.getAccounts()); @@ -189,7 +192,9 @@ export default () => { Date: Mon, 2 Dec 2024 19:22:04 +0000 Subject: [PATCH 2/2] Lint Fix --- extensions/one-time-password/src/one-time-password.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/one-time-password/src/one-time-password.tsx b/extensions/one-time-password/src/one-time-password.tsx index 4e38924cf9da9..cbf80589f07ea 100644 --- a/extensions/one-time-password/src/one-time-password.tsx +++ b/extensions/one-time-password/src/one-time-password.tsx @@ -36,7 +36,7 @@ export default () => { const [accounts, setAccounts] = useState([]); const [qrCodeScanType, setQRCodeScanType] = useState(null); -const { appearance } = environment; + const { appearance } = environment; async function loadAccounts() { if (accounts.length === 0) setLoading(true);