fix: (beta) admin: apple logo not showing on Windows

Massimo Melina committed Dec 27, 2023 at 20:27 UTC bf854b6030f82bba50740045a738f73230e1c31a
2 files changed +4 -4
admin/src/LogsPage.ts
+3 -3
@@ -191,12 +191,12 @@ export function agentIcons(agent: string) {
191 Opera: UW + '4/49/Opera_2015_icon.svg',
192 })
193 const os = _.findKey(OSS, re => re.test(agent))
194 - const osIcon = os && (icon(os, {
194 + const osIcon = os && icon(os, {
195 android: UW + 'd/d7/Android_robot.svg',
196 linux: UW + '0/0a/Tux-shaded.svg',
197 win: UW + '0/0a/Unofficial_Windows_logo_variant_-_2002%E2%80%932012_%28Multicolored%29.svg',
198 - //apple: UW + '7/74/Apple_logo_dark_grey.svg', // doesn't adapt well to every background color
199 - }) || { apple: '' }[os])
198 + apple: UW + '7/74/Apple_logo_dark_grey.svg', // grey works for both themes
199 + })
200 return h(Tooltip, { title: agent, children: h('span', { fontSize: '18px' }, browserIcon || short, ' ', osIcon) })
201
202 function icon(k: string, map: Dict<string>) {
admin/src/MainMenu.ts
+1 -1
@@ -1,7 +1,7 @@
1 // This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import { createElement as h, FC } from 'react';
4 -import { List, ListItemButton, ListItemIcon, ListItemText, Box, Typography } from '@mui/material'
4 +import { List, ListItemButton, ListItemIcon, ListItemText, Box } from '@mui/material'
5 import {
6 AccountTree,
7 Extension,