Add device level icons

Summary: Gave every device an icon, and use it as fallback in case we don't have a client icon. Added an icon for the Flipper client. This gets (largely) rid of the 'blank' icons

Reviewed By: fabiomassimo

Differential Revision: D26691054

fbshipit-source-id: d83012e755ae5edb230747e88f9b2eac45450b19
This commit is contained in:
Michel Weststrate
2021-02-26 07:24:40 -08:00
committed by Facebook GitHub Bot
parent a5cd18c289
commit f2689d3a5d
8 changed files with 28 additions and 7 deletions

View File

@@ -31,7 +31,7 @@ export default class AndroidDevice extends BaseDevice {
) {
super(serial, deviceType, title, 'Android', specs);
this.adb = adb;
this.icon = 'icons/android.svg';
this.icon = 'mobile';
this.abiList = abiList;
this.sdkVersion = sdkVersion;
this.adb.openLogcat(this.serial).then((reader) => {

View File

@@ -25,6 +25,7 @@ export default class ArchivedDevice extends BaseDevice {
supportRequestDetails?: SupportFormRequestDetailsState;
}) {
super(options.serial, options.deviceType, options.title, options.os);
this.icon = 'box';
this.connected.set(false);
this.source = options.source || '';
this.supportRequestDetails = options.supportRequestDetails;

View File

@@ -47,7 +47,7 @@ export default class IOSDevice extends BaseDevice {
constructor(serial: string, deviceType: DeviceType, title: string) {
super(serial, deviceType, title, 'iOS');
this.icon = 'icons/ios.svg';
this.icon = 'mobile';
this.buffer = '';
this.startLogListener();
}

View File

@@ -12,6 +12,7 @@ import BaseDevice from './BaseDevice';
export default class MacDevice extends BaseDevice {
constructor() {
super('', 'physical', 'Mac', 'MacOS');
this.icon = 'app-apple';
}
teardown() {}

View File

@@ -12,6 +12,7 @@ import BaseDevice from './BaseDevice';
export default class WindowsDevice extends BaseDevice {
constructor() {
super('', 'physical', 'Windows', 'Windows');
this.icon = 'app-microsoft-windows';
}
teardown() {}