Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update icons and changelog for appearance adaptation #15652

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions extensions/one-time-password/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 2 additions & 1 deletion extensions/one-time-password/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"icon": "icon.png",
"author": "lachero",
"contributors": [
"soulevans07"
"soulevans07",
"BalliAsghar"
],
"categories": [
"Security",
Expand Down
7 changes: 6 additions & 1 deletion extensions/one-time-password/src/one-time-password.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
popToRoot,
confirmAlert,
Color,
environment,
} from '@raycast/api';
import { useEffect, useState } from 'react';
import { getProgressIcon } from '@raycast/utils';
Expand All @@ -35,6 +36,8 @@ export default () => {
const [accounts, setAccounts] = useState<store.Account[]>([]);
const [qrCodeScanType, setQRCodeScanType] = useState<ScanType>(null);

const { appearance } = environment;

async function loadAccounts() {
if (accounts.length === 0) setLoading(true);
setAccounts(await store.getAccounts());
Expand Down Expand Up @@ -189,7 +192,9 @@ export default () => {
<List.Item
key={account.id}
icon={{
source: `https://cdn.simpleicons.org/${account.issuer?.toLowerCase() || account.name?.toLowerCase()}`,
source: `https://cdn.simpleicons.org/${account.issuer?.toLowerCase() || account.name?.toLowerCase()}/${
appearance === 'dark' ? 'white' : 'black'
}`,
fallback: Icon.Key,
}}
title={account.name}
Expand Down
Loading