improve batch file color

selected file
pull/2133/head
Mikael Finstad 2 years ago
parent fda8cdd9c9
commit 19224bff2c
No known key found for this signature in database
GPG Key ID: 25AB36E3E81CBC26

@ -18,8 +18,8 @@ function BatchFile({ path, isOpen, isSelected, name, onSelect, onDelete }: {
useContextMenu(ref, contextMenuTemplate); useContextMenu(ref, contextMenuTemplate);
return ( return (
<div ref={ref} role="button" style={{ background: isSelected ? 'var(--gray6)' : undefined, fontSize: 13, padding: '3px 6px', display: 'flex', alignItems: 'center', alignContent: 'flex-start' }} title={path} onClick={() => onSelect(path)}> <div ref={ref} role="button" style={{ background: isSelected ? 'var(--gray7)' : undefined, fontSize: 13, padding: '3px 6px', display: 'flex', alignItems: 'center', alignContent: 'flex-start' }} title={path} onClick={() => onSelect(path)}>
<FaFile size={14} style={{ color: primaryTextColor, flexShrink: 0 }} /> <FaFile size={14} style={{ color: isSelected ? primaryTextColor : undefined, flexShrink: 0 }} />
<div style={{ flexBasis: 4, flexShrink: 0 }} /> <div style={{ flexBasis: 4, flexShrink: 0 }} />
<div style={{ whiteSpace: 'nowrap', cursor: 'pointer', overflow: 'hidden' }}>{name}</div> <div style={{ whiteSpace: 'nowrap', cursor: 'pointer', overflow: 'hidden' }}>{name}</div>
<div style={{ flexGrow: 1 }} /> <div style={{ flexGrow: 1 }} />

Loading…
Cancel
Save