Skip to content

Commit ef28afa

Browse files
committed
Fix device label for web/chrome
1 parent 7ef909a commit ef28afa

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

lsp-dart-dap.el

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,12 +187,17 @@ Required to support 'Inspect Widget'."
187187
"Return a friendly label for device with ID, NAME IS-DEVICE and PLATFORM.
188188
Check for icons if supports it."
189189
(let* ((device-name (if name name id))
190-
(type-text (if is-device "device" "emulator"))
190+
(type-text (if (string= "web" platform)
191+
"browser"
192+
(if is-device
193+
"device"
194+
"emulator")))
191195
(default (concat platform " - " type-text " - " device-name)))
192196
(if (featurep 'all-the-icons)
193197
(pcase platform
194-
("android" (concat (all-the-icons-faicon "android" :face 'all-the-icons-green) " " type-text " - " device-name))
195-
("ios" (concat (all-the-icons-faicon "apple" :face 'all-the-icons-lsilver) " " type-text " - " device-name))
198+
("web" (concat (all-the-icons-faicon "chrome" :face 'all-the-icons-blue :v-adjust 0.0) " " type-text " - " device-name))
199+
("android" (concat (all-the-icons-faicon "android" :face 'all-the-icons-green :v-adjust 0.0) " " type-text " - " device-name))
200+
("ios" (concat (all-the-icons-faicon "apple" :face 'all-the-icons-lsilver :v-adjust 0.0) " " type-text " - " device-name))
196201
(_ default))
197202
default)))
198203

0 commit comments

Comments
 (0)