Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
ChugunovRoman committed Oct 27, 2019
2 parents b41ddbc + 0c1a65a commit f7f5d4f
Show file tree
Hide file tree
Showing 6 changed files with 129 additions and 119 deletions.
10 changes: 10 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# EditorConfig is awesome:http://EditorConfig.org

# top-most EditorConfig file
root = true

# All Files
[*]
indent_style = space
indent_size = 2
insert_final_newline = true
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ This app based on the [Electron](http://electron.atom.io)
<img src="https://img.shields.io/github/stars/ChugunovRoman/figma-linux.svg?style=social&label=Stars">
</a>
</p>

[![figma-linux](https://snapcraft.io/figma-linux/badge.svg)](https://snapcraft.io/figma-linux)

<p>
<span class="badge-buymeacoffee"><a href="https://www.buymeacoffee.com/U5hnMuASy" title="Donate to this project using Buy Me A Coffee"><img src="https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg" alt="Buy Me A Coffee donate button" /></a></span>
<span class="badge-paypal"><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=4DNBUKPV6FBCY&source=url" title="Donate to this project using Paypal"><img src="https://img.shields.io/badge/paypal-donate-yellow.svg" alt="PayPal donate button" /></a></span>
Expand Down
213 changes: 105 additions & 108 deletions config/builder.json
Original file line number Diff line number Diff line change
@@ -1,116 +1,113 @@
{
"appId": "figma-linux",
"productName": "figma-linux",
"extraMetadata": "main/main.js",
"icon": "resources/icon",
"extraFiles": [
{
"from": "lib/"
}
],
"files": [
"**/*"
],
"directories": {
"app": "dist/",
"buildResources": "build/installers",
"output": "build/installers"
},
"appId": "figma-linux",
"productName": "figma-linux",
"extraMetadata": "main/main.js",
"icon": "resources/icon",
"extraFiles": [{
"from": "lib/"
}],
"files": [
"**/*"
],
"directories": {
"app": "dist/",
"buildResources": "build/installers",
"output": "build/installers"
},

"protocols": [{
"name": "figma",
"role": "Viewer",
"schemes": [
"figma"
]
}],
"protocols": [{
"name": "figma",
"role": "Viewer",
"schemes": [
"figma"
]
}],

"pacman": {
"depends": []
},
"pacman": {
"depends": []
},

"appImage": {
"category": "Graphics",
"systemIntegration": "doNotAsk"
},
"appImage": {
"category": "Graphics",
"systemIntegration": "doNotAsk"
},

// "snap": {
// "plugs": [
// {
// "personal-files": {
// "interface": "personal-files",
// "allow-auto-connection": true,
// // "allow-sandbox": true,
// "read": [
// "$HOME/.config",
// "$HOME/.fonts",
// "$HOME/.local/share/fonts",
// "$HOME/snap/figma-linux/x1/.config/figma-linux/Settings"
// ],
// "write": [
// "$HOME/.config",
// "$HOME/.fonts",
// "$HOME/.local/share/fonts",
// "$HOME/snap/figma-linux/x1/.config/figma-linux/Settings"
// ]
// }
// },
// "desktop",
// "desktop-legacy",
// "home",
// "x11",
// "unity7",
// "browser-support",
// "network",
// "gsettings",
// "pulseaudio",
// "opengl",
// "gsettings",
// "block-devices"
// ]
// },
"snap": {
"plugs": [
{
"home": {
"interface": "personal-files",
"allow-auto-connection": true,
"read": [
"$HOME/.config",
"$HOME/Documents"
],
"write": [
"$HOME/.config",
"$HOME/Documents"
]
}
},
{
"removable-devices": {
"interface": "removable-media",
"allow-auto-connection": true
}
},
"desktop",
"desktop-legacy",
"home",
"x11",
"unity7",
"browser-support",
"network",
"gsettings",
"pulseaudio",
"opengl",
"gsettings"
]
},

"linux": {
"description": "Unofficial desktop application for linux",
"icon": "resources/icon",
"category": "Graphic",
"target": [
{
"target": "AppImage",
"arch": [
"x64"
]
},
{
"target": "deb",
"arch": [
"x64"
]
},
{
"target": "snap",
"arch": [
"x64"
]
},
{
"target": "zip",
"arch": [
"x64"
]
},
{
"target": "rpm",
"arch": [
"x64"
]
},
{
"target": "pacman",
"arch": [
"x64"
]
}
"linux": {
"description": "Unofficial desktop application for linux",
"icon": "resources/icon",
"category": "Graphic",
"target": [{
"target": "AppImage",
"arch": [
"x64"
]
},
{
"target": "deb",
"arch": [
"x64"
]
},
{
"target": "snap",
"arch": [
"x64"
]
},
{
"target": "zip",
"arch": [
"x64"
]
},
{
"target": "rpm",
"arch": [
"x64"
]
},
{
"target": "pacman",
"arch": [
"x64"
]
}
}
]
}
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "figma-linux",
"version": "0.5.6",
"description": "Figma is the first interface design tool based in the browser, making it easier for teams to create software.",
"version": "0.5.7",
"description": "Figma is the first interface design tool based in the browser, making it easier for teams to create software. Join as in Telegram: https://t.me/figma_linux",
"main": "src/main/index.js",
"repository": "git@github.com:ChugunovRoman/figma-linux.git",
"homepage": "https://github.com/ChugunovRoman/figma-linux",
Expand Down
4 changes: 2 additions & 2 deletions src/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "figma-linux",
"version": "0.5.6",
"description": "Figma is the first interface design tool based in the browser, making it easier for teams to create software.",
"version": "0.5.7",
"description": "Figma is the first interface design tool based in the browser, making it easier for teams to create software. Join as in Telegram: https://t.me/figma_linux",
"main": "main/main.js",
"repository": "git@github.com:ChugunovRoman/figma-linux.git",
"homepage": "https://github.com/ChugunovRoman/figma-linux",
Expand Down
14 changes: 7 additions & 7 deletions src/utils/Main/Menu/menuItems.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const EDIT_MENU = {
{ role: 'paste' },
item('Paste Over Selection', 'Shift+Ctrl+V', { action: 'paste-over-selection', click: handleItemAction }),
SEPARATOR,
item('Pick Color', 'I', { action: 'toggle-dropper', click: handleItemAction }),
item('Pick Color', '', { action: 'toggle-dropper', click: handleItemAction }),
SEPARATOR,
item('Set Default Style', 'Alt+Ctrl+X', { action: 'set-default-style', click: handleItemAction }),
item('Copy Properties', 'Alt+Ctrl+C', { action: 'copy-properties', click: handleItemAction }),
Expand All @@ -62,7 +62,7 @@ const VIEW_MENU = {
item('Show Layout Grids', 'Ctrl+Shift+4', { action: 'toggle-shown-layout-grids', click: handleItemAction }),
item('Show Mask Outlines', null, { action: 'toggle-show-masks', click: handleItemAction }),
item('Frame Outlines', null, { action: 'toggle-show-artboard-outlines', click: handleItemAction }),
item('Show Rulers', 'Shift+R', { action: 'toggle-rulers', click: handleItemAction }),
item('Show Rulers', '', { action: 'toggle-rulers', click: handleItemAction }),
item('Show Layers Panel', 'Ctrl+Shift+\\', { action: 'toggle-sidebar', click: handleItemAction }),
item('Show UI', 'Ctrl+\\', { action: 'toggle-ui', click: handleItemAction }),
item('Show Outlines', 'Ctrl+Shift+3', { action: 'toggle-outlines', click: handleItemAction }),
Expand All @@ -76,18 +76,18 @@ const VIEW_MENU = {
SEPARATOR,
item('Zoom In', '=', { action: 'zoom-in', click: handleItemAction }),
item('Zoom Out', '-', { action: 'zoom-out', click: handleItemAction }),
item('Zoom to 100%', 'Shift+0', { action: 'zoom-reset', click: handleItemAction }),
item('Zoom to Fit', 'Shift+1', { action: 'zoom-to-fit', click: handleItemAction }),
item('Zoom to Selection', 'Shift+2', { action: 'zoom-to-selection', click: handleItemAction }),
item('Zoom to 100%', '', { action: 'zoom-reset', click: handleItemAction }),
item('Zoom to Fit', '', { action: 'zoom-to-fit', click: handleItemAction }),
item('Zoom to Selection', '', { action: 'zoom-to-selection', click: handleItemAction }),
SEPARATOR,
item('Scale UI Normal', 'Ctrl+Shift+Backspace', { id: 'scale-normal', click: commandToMainProcess }),
item('Scale UI + 10%', 'Ctrl+=', { id: 'scale-inc0.1', click: commandToMainProcess }),
item('Scale UI - 10%', 'Ctrl+-', { id: 'scale-dic0.1', click: commandToMainProcess }),
item('Scale UI + 5%', 'Ctrl+Shift+=', { id: 'scale-inc0.05', click: commandToMainProcess }),
item('Scale UI - 5%', 'Ctrl+Shift+-', { id: 'scale-dic0.05', click: commandToMainProcess }),
SEPARATOR,
item('Find Next Frame', 'N', { action: 'next-artboard', click: handleItemAction }),
item('Find Previous Frame', 'Shift+N', { action: 'previous-artboard', click: handleItemAction }),
item('Find Next Frame', '', { action: 'next-artboard', click: handleItemAction }),
item('Find Previous Frame', '', { action: 'previous-artboard', click: handleItemAction }),
SEPARATOR,
{ role: 'togglefullscreen' },
],
Expand Down

0 comments on commit f7f5d4f

Please sign in to comment.