mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-07 08:07:18 +02:00
Use colors from PICO-8 palette for stream badges
This commit is contained in:
parent
563ad65580
commit
e47c6d9103
@ -130,13 +130,13 @@ class StreamBadges {
|
|||||||
const playtime = StreamBadges.#secondsToHms(diffSeconds);
|
const playtime = StreamBadges.#secondsToHms(diffSeconds);
|
||||||
|
|
||||||
const BADGES = [
|
const BADGES = [
|
||||||
playtime ? ['playtime', playtime, '#ab0000'] : null,
|
playtime ? ['playtime', playtime, '#ff004d'] : null,
|
||||||
batteryLevel ? ['battery', batteryLevel, '#449700'] : null,
|
batteryLevel ? ['battery', batteryLevel, '#008751'] : null,
|
||||||
['region', StreamBadges.region, '#d7450b'],
|
['region', StreamBadges.region, '#ff6c24'],
|
||||||
['server', StreamBadges.ipv6 ? 'IPv6' : 'IPv4', '#986400'],
|
['server', StreamBadges.ipv6 ? 'IPv6' : 'IPv4', '#065ab5'],
|
||||||
video ? ['video', video, '#007c8f'] : null,
|
StreamBadges.resolution && ['resolution', `${StreamBadges.resolution.width}x${StreamBadges.resolution.height}`, '#7e2553'],
|
||||||
StreamBadges.resolution && ['resolution', `${StreamBadges.resolution.width}x${StreamBadges.resolution.height}`, '#ff3977'],
|
video ? ['video', video, '#065AB5'] : null,
|
||||||
audio ? ['audio', audio, '#79008f'] : null,
|
audio ? ['audio', audio, '#5f574f'] : null,
|
||||||
];
|
];
|
||||||
|
|
||||||
const $wrapper = createElement('div', {'class': 'better-xcloud-badges'});
|
const $wrapper = createElement('div', {'class': 'better-xcloud-badges'});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user