mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2025-12-06 02:30:47 -08:00
Add option to use GIF, TIFF or BMP file as workspace icon (#121)
This commit is contained in:
parent
2f50d1bd46
commit
d83d9be8fd
2 changed files with 4 additions and 5 deletions
|
|
@ -171,8 +171,7 @@ const AddWorkspaceCustom = ({
|
|||
const opts = {
|
||||
properties: ['openFile'],
|
||||
filters: [
|
||||
{ name: 'PNG (Portable Network Graphics)', extensions: ['png'] },
|
||||
{ name: 'JPEG (Joint Photographic Experts Group)', extensions: ['jpg', 'jpeg'] },
|
||||
{ name: 'Images', extensions: ['jpg', 'jpeg', 'png', 'gif', 'tiff', 'tif', 'bmp', 'dib'] },
|
||||
],
|
||||
};
|
||||
remote.dialog.showOpenDialog(remote.getCurrentWindow(), opts)
|
||||
|
|
@ -186,7 +185,7 @@ const AddWorkspaceCustom = ({
|
|||
Select Local Image...
|
||||
</Button>
|
||||
<Typography variant="caption">
|
||||
PNG or JPEG.
|
||||
PNG, JPEG, GIF, TIFF or BMP.
|
||||
</Typography>
|
||||
<Button
|
||||
variant="outlined"
|
||||
|
|
|
|||
|
|
@ -177,7 +177,7 @@ const EditWorkspace = ({
|
|||
const opts = {
|
||||
properties: ['openFile'],
|
||||
filters: [
|
||||
{ name: 'Images', extensions: ['png', 'jpg', 'jpeg'] },
|
||||
{ name: 'Images', extensions: ['jpg', 'jpeg', 'png', 'gif', 'tiff', 'tif', 'bmp', 'dib'] },
|
||||
],
|
||||
};
|
||||
remote.dialog.showOpenDialog(remote.getCurrentWindow(), opts)
|
||||
|
|
@ -191,7 +191,7 @@ const EditWorkspace = ({
|
|||
Select Local Image...
|
||||
</Button>
|
||||
<Typography variant="caption">
|
||||
PNG or JPEG.
|
||||
PNG, JPEG, GIF, TIFF or BMP.
|
||||
</Typography>
|
||||
<Button
|
||||
variant="outlined"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue