Use B-only Bitcoin glyph with brand orange and larger scale

This commit is contained in:
raucao committed 2026-11-05 15:51:05 +04:00
1 parent c383ae91f7
commit bf38fc2be1
4 files changed
+14 -2

No files matched your search

@@ -85,6 +85,7 @@ export default class SettingsIntegrationsAvatar extends Component {
>
<path
d={{@integration.iconPath}}
transform={{@integration.iconTransform}}
stroke-linecap="round"
stroke-linejoin="round"
/>
+10 -2
View File
@@ -8,8 +8,15 @@ import {
const CALENDAR_ICON_PATH =
'M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 7.5v11.25m-18 0A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75m-18 0v-7.5A2.25 2.25 0 0 1 5.25 9h13.5A2.25 2.25 0 0 1 21 11.25v7.5';
// B-only glyph from the official Simple Icons bitcoin path. The full mark is
// a circle with the B cut out; extracting the B subpath and anchoring its
// relative move absolutely keeps the glyph centred in the 24x24 viewBox.
const BITCOIN_ICON_PATH =
'M23.638 14.904c-1.602 6.43-8.113 10.34-14.542 8.736C2.67 22.05-1.244 15.525.362 9.105 1.962 2.67 8.475-1.243 14.9.358c6.43 1.605 10.342 8.115 8.738 14.546zm-6.35-4.613c.24-1.59-.974-2.45-2.64-3.03l.54-2.153-1.315-.328-.525 2.107c-.345-.087-.705-.167-1.064-.25l.526-2.127-1.32-.33-.54 2.165c-.285-.067-.565-.132-.84-.2l-.006-.02-1.815-.45-.35 1.407s.975.225.955.238c.535.136.63.486.615.766l-.862 3.454c-.04.1-.14.25-.365.195.01.014-.95-.237-.95-.237l-.656 1.51 1.72.43c.32.08.634.16.955.25l-.54 2.2 1.32.33.54-2.18c.36.1.71.19 1.05.28l-.53 2.16 1.31.33.54-2.2c2.28.43 3.99.26 4.71-1.8.58-1.65-.03-2.6-1.22-3.22.87-.2 1.53-.78 1.7-1.96z';
'M17.288 10.291c.24-1.59-.974-2.45-2.64-3.03l.54-2.153-1.315-.33-.525 2.107c-.345-.087-.705-.167-1.064-.25l.526-2.127-1.32-.33-.54 2.165c-.285-.067-.565-.132-.84-.2l-1.815-.45-.35 1.407s.975.225.955.236c.535.136.63.486.615.766l-1.477 5.92c-.075.166-.24.406-.614.314.015.02-.96-.24-.96-.24l-.66 1.51 1.71.426.93.242-.54 2.19 1.32.327.54-2.17c.36.1.705.19 1.05.273l-.51 2.154 1.32.33.545-2.19c2.24.427 3.93.257 4.64-1.774.57-1.637-.03-2.58-1.217-3.196.854-.193 1.5-.76 1.68-1.93h.01zm-3.01 4.22c-.404 1.64-3.157.75-4.05.53l.72-2.9c.896.23 3.757.67 3.33 2.37zm.41-4.24c-.37 1.49-2.662.735-3.405.55l.654-2.64c.744.18 3.137.524 2.75 2.084v.006z';
// Scale the B glyph around its visual centre so it fills more of the avatar.
const BITCOIN_ICON_TRANSFORM =
'translate(11.575 11.775) scale(1.5) translate(-11.575 -11.775)';
export const FEEDBIN_ICON_URL = '/img/icons/feedbin.png';
@@ -37,8 +44,9 @@ export const INTEGRATIONS = [
id: 'bitcoin',
label: 'Bitcoin Price Ticker',
description: 'Live BTC price on your dashboard',
colorClass: 'bg-orange-500',
colorClass: 'bg-[#F7931A]',
iconPath: BITCOIN_ICON_PATH,
iconTransform: BITCOIN_ICON_TRANSFORM,
iconFill: true,
available: true,
supportsMultiple: false,
+1
View File
@@ -244,6 +244,7 @@ export default class IntegrationsService extends Service {
instance.name || displayHost(instance.url) || integration.description,
colorClass: integration.colorClass,
iconPath: integration.iconPath,
iconTransform: integration.iconTransform,
iconFill: integration.iconFill,
iconUrl: integration.iconUrl,
hasSettings: integration.hasSettings,
@@ -70,6 +70,7 @@ module(
this.integration = {
colorClass: 'bg-indigo-500',
iconPath: 'M0 0h24v24H0z',
iconTransform: 'scale(2)',
iconFill: false,
};
@@ -80,6 +81,7 @@ module(
assert.dom('img').doesNotExist();
assert.dom('svg').exists();
assert.dom('svg path').hasAttribute('d', 'M0 0h24v24H0z');
assert.dom('svg path').hasAttribute('transform', 'scale(2)');
});
}
);