<commit_before>import styled, { css } from 'styled-components';
import { centerIcon } from '~/shared/mixins';
import { icons } from '../../constants';
import { colors } from '~/renderer/constants';

export const StyledItem = styled.div`
  height: 50px;
  width: 200px;
  min-width: 200px;
  margin-right: 16px;
  background-color: rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: 0.2s background-color;

  &:hover {
    background-color: rgba(255, 255, 255, 0.2);
  }
`;

export const Progress = styled.div`
  background-color: ${colors.blue['500']};
  height: 100%;
  border-radius: 30px;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0.2;
`;

export const Icon = styled.div`
  height: 20px;
  width: 20px;
  ${centerIcon()};
  margin-left: 16px;
  margin-right: 16px;
  background-image: url(${icons.page});
  filter: invert(100%);
`;

export const Name = styled.div`
  width: 100%;
  overflow: hidden;<commit_msg>fix: accomodate download item colors to current theme<commit_after>import styled, { css } from 'styled-components';
import { centerIcon } from '~/shared/mixins';
import { icons } from '../../constants';
import { colors } from '~/renderer/constants';
import { Theme } from '../../models/theme';

export const StyledItem = styled.div`
  height: 50px;
  width: 200px;
  min-width: 200px;
  margin-right: 16px;
  background-color: rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: 0.2s background-color;

  ${({ theme }: { theme?: Theme }) => css`
    background-color: ${theme['overlay.foreground'] === 'light'
      ? 'rgba(255, 255, 255, 0.12)'
      : 'rgba(0, 0, 0, 0.06)'};

    &:hover {
      background-color: ${theme['overlay.foreground'] === 'light'
        ? 'rgba(255, 255, 255, 0.2)'
        : 'rgba(0, 0, 0, 0.1)'};
    }
  `}
`;

export const Progress = styled.div`
  background-color: ${colors.blue['500']};
  height: 100%;
  border-radius: 30px;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0.2;
`;

export const Icon = styled.div`
  height: 20px;
  width: 20px;
  ${centerIcon()};
  margin-left: 16px;
  margin-right: 16px;
  background-image: url(${icons.page});

  ${({ theme }: { theme?: Theme }) => css`
    filter: ${theme['overlay.foreground'] === 'light'
      ? 'invert(100%)'
      : 'none'};
  `}
`;

export const Name = styled.div`
  width: 100%;
  overflow: hidden;
{'fraction_non_alphanumeric': 0.1791104050833995, 'fraction_numerical': 0.05917394757744242, 'mean_word_length': 3.4742451154529306, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7551806', 'n_tokens_mistral': 1036, 'n_tokens_neox': 896, 'n_words': 230}