TagSpaces is an offline, open source, document manager with tagging support
chore: fix issue with the iconbutton, added new icons
Ilian Sapundshiev068e1c86a073
diff --git a/src/renderer/components/CommonIcons.tsx b/src/renderer/components/CommonIcons.tsxindex 0d4da252c..a9539139e 100644--- a/src/renderer/components/CommonIcons.tsx+++ b/src/renderer/components/CommonIcons.tsx@@ -256,3 +256,7 @@ export { default as EntryBookmarkAddIcon } from '@mui/icons-material/BookmarkAddexport { default as EntryBookmarkIcon } from '@mui/icons-material/BookmarkTwoTone';export { default as EncryptedIcon } from '@mui/icons-material/HttpsOutlined';++export { default as SizeIcon } from '@mui/icons-material/BubbleChartOutlined';++export { default as CalendarIcon } from '@mui/icons-material/CalendarMonthOutlined';diff --git a/src/renderer/components/EntryProperties.tsx b/src/renderer/components/EntryProperties.tsxindex 7431f905c..ee600cf8d 100644--- a/src/renderer/components/EntryProperties.tsx+++ b/src/renderer/components/EntryProperties.tsx@@ -21,12 +21,16 @@ import Marker2xIcon from '-/assets/icons/marker-icon-2x.png';import MarkerIcon from '-/assets/icons/marker-icon.png';import MarkerShadowIcon from '-/assets/icons/marker-shadow.png';import {+ CalendarIcon,ClearColorIcon,+ CloudLocationIcon,ColorPaletteIcon,IDIcon,+ LocalLocationIcon,OpenLinkIcon,QrCodeIcon,SetColorIcon,+ SizeIcon,} from '-/components/CommonIcons';import { ProTooltip } from '-/components/HelperComponents';import InfoIcon from '-/components/InfoIcon';@@ -668,6 +672,11 @@ function EntryProperties(props: Props) {slotProps={{input: {readOnly: true,+ startAdornment: (+ <InputAdornment position="start">+ <CalendarIcon />+ </InputAdornment>+ ),},}}/>@@ -696,6 +705,11 @@ function EntryProperties(props: Props) {input: {readOnly: true,...(!openedEntry.isFile && {+ startAdornment: (+ <InputAdornment position="start">+ <SizeIcon />+ </InputAdornment>+ ),endAdornment: (<TsButtonvariant="text"@@ -728,19 +742,19 @@ function EntryProperties(props: Props) {slotProps={{input: {readOnly: true,- // startAdornment: (- // <InputAdornment position="start">- // {isCloudLocation ? (- // <CloudLocationIcon- // style={{ color: theme.palette.text.secondary }}- // />- // ) : (- // <LocalLocationIcon- // style={{ color: theme.palette.text.secondary }}- // />- // )}- // </InputAdornment>- // ),+ startAdornment: (+ <InputAdornment position="start">+ {isCloudLocation ? (+ <CloudLocationIcon+ style={{ color: theme.palette.text.secondary }}+ />+ ) : (+ <LocalLocationIcon+ style={{ color: theme.palette.text.secondary }}+ />+ )}+ </InputAdornment>+ ),endAdornment: (<InputAdornment position="end">{!readOnlyMode &&diff --git a/src/renderer/components/TsIconButton.tsx b/src/renderer/components/TsIconButton.tsxindex 3279d6db0..6919bdb16 100644--- a/src/renderer/components/TsIconButton.tsx+++ b/src/renderer/components/TsIconButton.tsx@@ -28,12 +28,13 @@ export type TSIconButtonProps = IconButtonProps & {};function TsIconButton(props: TSIconButtonProps) {- const { children, keyBinding, tooltip, disabled, ...restProps } = props;+ const { children, style, keyBinding, tooltip, disabled, ...restProps } =+ props;const desktopMode = useSelector(isDesktopMode);const iconButton = (<IconButtonsize={desktopMode ? 'medium' : 'large'}- style={{ borderRadius: AppConfig.defaultCSSRadius }}+ style={{ borderRadius: AppConfig.defaultCSSRadius, ...style }}disabled={disabled}{...restProps}>