Skip to content

TagSpaces is an offline, open source, document manager with tagging support

chore: reducing the usage of secondary color

Ilian Sapundshiev35deeef38927
diff --git a/src/renderer/components/FolderContainer.tsx b/src/renderer/components/FolderContainer.tsx
index a4149bf5e..8f3e623e8 100644
--- a/src/renderer/components/FolderContainer.tsx
+++ b/src/renderer/components/FolderContainer.tsx
@@ -349,15 +349,14 @@ function FolderContainer({ toggleDrawer, drawerOpened, hidden }: Props) {
<TsButton
data-tid="toggleSearch"
onClick={openSearchMode}
- color="secondary"
startIcon={<SearchIcon />}
sx={{
marginTop: '-2px',
marginRight: '5px',
- minWidth: 100,
+ minWidth: '80px',
maxHeight: 32,
width: 'stretch',
- maxWidth: 300,
+ maxWidth: '200px',
margin: '0 auto',
whiteSpace: 'nowrap',
overflow: 'hidden',
diff --git a/src/renderer/components/ProTeaser.tsx b/src/renderer/components/ProTeaser.tsx
index c4a91fb83..131ce655d 100644
--- a/src/renderer/components/ProTeaser.tsx
+++ b/src/renderer/components/ProTeaser.tsx
@@ -52,10 +52,8 @@ function ProTeaser(props: Props) {
cursor: 'pointer',
}}
>
- <Typography color="textSecondary" variant="caption">
- <span style={{ textTransform: 'lowercase' }}>
- {t('core:achieveMore')}
- </span>
+ <Typography variant="caption" sx={{ textTransform: 'lowercase' }}>
+ {t('core:achieveMore')}
<TsIconButton
sx={{ right: '5px', position: 'absolute' }}
size="small"
diff --git a/src/renderer/components/dialogs/FileUploadDialog.tsx b/src/renderer/components/dialogs/FileUploadDialog.tsx
index e8daf9298..c067e58a7 100644
--- a/src/renderer/components/dialogs/FileUploadDialog.tsx
+++ b/src/renderer/components/dialogs/FileUploadDialog.tsx
@@ -88,9 +88,7 @@ function FileUploadDialog(props: Props) {
<LinearProgress variant="determinate" {...prop} />
</Box>
<Box minWidth={35}>
- <Typography variant="body2" color="textSecondary">
- {`${prop.value}%`}
- </Typography>
+ <Typography variant="body2">{`${prop.value}%`}</Typography>
</Box>
</Box>
);
@@ -245,7 +243,7 @@ function FileUploadDialog(props: Props) {
: t('core:fileExist')
}
>
- <WarningIcon color="secondary" />
+ <WarningIcon color="warning" />
</Tooltip>
)}
</Grid>
diff --git a/src/renderer/components/dialogs/SettingsDialog.tsx b/src/renderer/components/dialogs/SettingsDialog.tsx
index 87e68a833..cb9b2c55c 100644
--- a/src/renderer/components/dialogs/SettingsDialog.tsx
+++ b/src/renderer/components/dialogs/SettingsDialog.tsx
@@ -85,7 +85,6 @@ function SettingsDialog(props: Props) {
const helpButton = (
<TsButton
onClick={() => openURLExternally(Links.documentationLinks.settings, true)}
- color="secondary"
sx={
{
WebkitAppRegion: 'no-drag',
diff --git a/src/renderer/components/dialogs/components/SettingsAdvanced.tsx b/src/renderer/components/dialogs/components/SettingsAdvanced.tsx
index b44953606..b69862cbd 100644
--- a/src/renderer/components/dialogs/components/SettingsAdvanced.tsx
+++ b/src/renderer/components/dialogs/components/SettingsAdvanced.tsx
@@ -417,7 +417,6 @@ function SettingsAdvanced(props: Props) {
'confirmResetSettingsDialogContentTID',
)
}
- color="secondary"
sx={{ color: 'red' }}
>
{t('core:resetSettings')}
@@ -436,7 +435,6 @@ function SettingsAdvanced(props: Props) {
window.location.reload();
}
}}
- color="secondary"
>
{t('core:reloadApplication')}
</TsButton>
diff --git a/src/renderer/components/dialogs/components/SettingsExtensions.tsx b/src/renderer/components/dialogs/components/SettingsExtensions.tsx
index c9fe31ff5..ad43be5e3 100644
--- a/src/renderer/components/dialogs/components/SettingsExtensions.tsx
+++ b/src/renderer/components/dialogs/components/SettingsExtensions.tsx
@@ -215,11 +215,10 @@ function SettingsExtensions() {
<Typography variant="subtitle1">No extensions found</Typography>
)}
{devMode && AppConfig.isElectron && (
- <Box style={{ textAlign: 'center' }}>
+ <Box>
<TsButton
data-tid="installExtensionTID"
onClick={() => fileInputRef.current.click()}
- color="secondary"
>
{t('core:installExtension')}
</TsButton>
diff --git a/src/renderer/containers/PageNotification.tsx b/src/renderer/containers/PageNotification.tsx
index e0a8b69f6..4d5e142b7 100644
--- a/src/renderer/containers/PageNotification.tsx
+++ b/src/renderer/containers/PageNotification.tsx
@@ -125,7 +125,6 @@ function PageNotification() {
action={[
<TsButton
key="cancelIndexButton"
- color="secondary"
onClick={() => cancelDirectoryIndexing(isIndexing)}
data-tid="cancelDirectoryIndexing"
>
diff --git a/src/renderer/perspectives/common/CellView.tsx b/src/renderer/perspectives/common/CellView.tsx
index 4c9d5d94a..64978b72a 100644
--- a/src/renderer/perspectives/common/CellView.tsx
+++ b/src/renderer/perspectives/common/CellView.tsx
@@ -288,9 +288,8 @@ function CellView(props: Props) {
>
<DragHandleIcon sx={{ color: theme.palette.text.primary }} />
<Typography
- color="textSecondary"
variant="caption"
- sx={{ alignSelf: 'center' }}
+ sx={{ alignSelf: 'center', opacity: 0.5, marginLeft: '5px' }}
>
{i18n.t('dragOutsideApp')}
</Typography>