TagSpaces is an offline, open source, document manager with tagging support
polish: added custom logo for the web version
Ilian Sapundshievab194a2c74c3
diff --git a/app/assets/images/text-logo-app.svg b/app/assets/images/text-logo-web.svgsimilarity index 100%rename from app/assets/images/text-logo-app.svgrename to app/assets/images/text-logo-web.svgdiff --git a/app/components/CustomLogo.tsx b/app/components/CustomLogo.tsxindex a60fd396b..ea5be282b 100644--- a/app/components/CustomLogo.tsx+++ b/app/components/CustomLogo.tsx@@ -24,8 +24,10 @@ import { withStyles } from '@material-ui/core/styles';import Badge from '@material-ui/core/Badge';import { Pro } from '../pro';import TextLogoIcon from '../assets/images/text-logo.svg';+import WebLogoIcon from '../assets/images/text-logo-web.svg';import { actions as AppActions } from '../reducers/app';import versionMeta from '../version.json';+import AppConfig from '-/config';const AppVersionBadge = withStyles(theme => ({badge: {@@ -47,10 +49,11 @@ interface Props {}let logo = Pro ? Pro.TextLogoIcon : TextLogoIcon;-// logo = 'assets/images/custom-logo.svg';-const externalLogo = window.ExtLogoURL || false;-if (externalLogo) {- logo = externalLogo;+if (AppConfig.isWeb) {+ logo = WebLogoIcon;+}+if (AppConfig.customLogo) {+ logo = AppConfig.customLogo;}const CustomLogo = (props: Props) => (diff --git a/app/config.ts b/app/config.tsindex c7277af9f..8ac407253 100644--- a/app/config.ts+++ b/app/config.ts@@ -99,6 +99,7 @@ export const AppConfig = {isCordovaAndroid,isCordova: isCordovaiOS || isCordovaAndroid,isMobile: isCordovaiOS || isCordovaAndroid || isIOS || isAndroid,+ customLogo: (window as any).ExtLogoURL || false,showAdvancedSearch:(window as any).ExtShowAdvancedSearch !== undefined? (window as any).ExtShowAdvancedSearch