<commit_before>/**
 * TagSpaces - universal file and folder organizer
 * Copyright (C) 2017-present TagSpaces UG (haftungsbeschraenkt)
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License (version 3) as
 * published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
 *
 */

import React from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import IconButton from '@mui/material/IconButton';
import withStyles from '@mui/styles/withStyles';
import Badge from '@mui/material/Badge';
import Tooltip from '-/components/Tooltip';
import AppConfig from '@tagspaces/tagspaces-platforms/AppConfig';
import PlatformIO from '-/services/platform-facade';
import { Pro } from '../pro';
import TextLogoIcon from '../assets/images/text-logo.svg';
import WebLogoIcon from '../assets/images/text-logo-web.svg';
import LogoIcon from '../assets/images/icon100x100.svg';
import { actions as AppActions } from '../reducers/app';
import i18n from '../services/i18n';
import versionMeta from '../version.json';
import { getCurrentLanguage } from '-/reducers/settings';

const AppVersionBadge = withStyles(theme => ({
  badge: {
    top: '25%',
    right: -25,
    color:
      theme.palette.type === 'light'
        ? theme.palette.grey[900]
        : theme.palette.grey[200],
    backgroundColor:
      theme.palette.type === 'light'
        ? theme.palette.grey[200]
        : theme.palette.grey[900]
  }
}))(Badge);

interface Props {
  toggleAboutDialog: () => void;
}

let logo = Pro ? Pro.TextLogoIcon : TextLogoIcon;<commit_msg>fix: colors of the app version badge<commit_after>/**
 * TagSpaces - universal file and folder organizer
 * Copyright (C) 2017-present TagSpaces UG (haftungsbeschraenkt)
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License (version 3) as
 * published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
 *
 */

import React from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import IconButton from '@mui/material/IconButton';
import withStyles from '@mui/styles/withStyles';
import Badge from '@mui/material/Badge';
import Tooltip from '-/components/Tooltip';
import AppConfig from '@tagspaces/tagspaces-platforms/AppConfig';
import PlatformIO from '-/services/platform-facade';
import { Pro } from '../pro';
import TextLogoIcon from '../assets/images/text-logo.svg';
import WebLogoIcon from '../assets/images/text-logo-web.svg';
import LogoIcon from '../assets/images/icon100x100.svg';
import { actions as AppActions } from '../reducers/app';
import i18n from '../services/i18n';
import versionMeta from '../version.json';
import { getCurrentLanguage } from '-/reducers/settings';

const AppVersionBadge = withStyles(theme => ({
  badge: {
    top: '25%',
    right: -25,
    color:
      theme.palette.mode === 'light'
        ? theme.palette.grey[900]
        : theme.palette.grey[200],
    backgroundColor:
      theme.palette.mode === 'light'
        ? theme.palette.grey[200]
        : theme.palette.grey[900]
  }
}))(Badge);

interface Props {
  toggleAboutDialog: () => void;
}

let logo = Pro ? Pro.TextLogoIcon : TextLogoIcon;
{'fraction_non_alphanumeric': 0.11953067709606453, 'fraction_numerical': 0.015155218772916158, 'mean_word_length': 3.831168831168831, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1050822', 'n_tokens_mistral': 1247, 'n_tokens_neox': 1190, 'n_words': 409}