Commit graph

176 commits

Author SHA1 Message Date
Yuya Ochiai d89829502c Restore maximized window state on autostart 2017-01-22 19:28:08 +09:00
Jason Blais c6d554535d Update main.js 2017-01-18 10:50:12 -05:00
Jason Blais 3d09b6ae01 Update default window dimensions to 1000x700 2017-01-18 09:28:22 -05:00
Yuya Ochiai 7c8a676f8a Set minimum window size
Close #389
2017-01-17 23:52:53 +09:00
Yuya Ochiai f8fadcb844 Show mainWindow gracefully
http://electron.atom.io/docs/api/browser-window#showing-window-gracefully
2017-01-16 21:25:25 +09:00
Yuya Ochiai 3bf41ca3e5 Add --data-dir to switch userData directory 2016-12-27 21:19:01 +09:00
Jonas Schwabe 4e6d0ee145 Fixes #378 2016-12-25 17:59:26 +01:00
Yuya Ochiai 48cb8a2bbf Suppress unnecessary window while install/uninstalling 2016-12-22 23:26:18 +09:00
Jonas Schwabe 89e3a52ef2 Add a fallback when the notification icon theme is not valid - the app did not start up successfully before 2016-12-11 18:00:10 +01:00
Yuya Ochiai f60d1fe0e4 Fix confused cursor in HiDPI
https://github.com/electron/electron/issues/7655#issuecomment-259688853
2016-12-06 22:09:54 +09:00
Yuya Ochiai 0a702e62da Fix eslint error 2016-11-30 20:37:39 +09:00
Yuya Ochiai ee06c09237 Rename src/resource to src/assets
- `dist/resources` was not included in linux packages.
- There were two "resources" directories.

Close #360
2016-11-10 22:31:10 +09:00
Yuya Ochiai 16788b5a6f Fix eslint errors 2016-10-28 00:49:52 +09:00
Yuya Ochiai 4ecbc14b06 Merge pull request #324 from itsmartin/fix-linux-tray-settings
Fix linux tray settings
2016-10-28 00:25:03 +09:00
Jonas Schwabe 08d0fff557 Remove cache on app update, fixes #342 2016-10-20 15:46:44 +02:00
Martin Gondermann 5baa424e1b Prettyfied code 2016-10-04 20:36:46 +02:00
Martin Gondermann 26689f0a51 Fix for #302
On Mac, a download in desktop app defaulted to Macintosh HD instead of the download folder
2016-10-04 20:34:52 +02:00
Martin f3f0f84db1 Fix the minimise to tray option never being enabled on Linux 2016-09-29 10:34:01 +01:00
Yuya Ochiai e28bcf6298 Merge pull request #296 from Razzeee/update-fix-autolaunch
Make sure our auto launch link is up do date
2016-09-21 21:05:24 +09:00
Kolja Lampe a8bfe709ba Make sure our auto launch link is up do date 2016-09-20 22:19:52 +02:00
Yuya Ochiai e8590e61d5 Fix ApplicationUserModelID in the start menu shortcut
The application expected "com.squirrel.mattermost.Mattermost"
due to electron-winstaller. But probably the package name,
"mattermost-desktop" was used when creating the shortcut.

This might affect the internal name of .deb package.

Close #287
2016-09-17 00:03:14 +09:00
Yuya Ochiai 7cfde1e379 Merge pull request #230 from Razzeee/hide-autostart
Hide on autostart
2016-09-14 01:04:01 +09:00
Kolja Lampe bc154f56a7 Hide on autostart
Closes #228
2016-09-12 22:06:08 +02:00
Kolja Lampe b59f501a82 Some minor codestyle improvements due to jshint 2016-08-30 15:28:15 +02:00
Yuya Ochiai 59a18d3da0 Merge pull request #263 from Razzeee/fix-toggle-option
Fix for window toggle on tray click
2016-08-29 21:55:03 +09:00
Kolja Lampe 4c2ae2ec4f Fix for window toggle on tray click 2016-08-28 21:50:18 +02:00
Yuya Ochiai 7883693d73 Fix the next top-level window doesn't get focus when closing the main window in Windows 2016-08-28 22:05:27 +09:00
Yuya Ochiai a0453b5865 Fix pixelated application icons for Windows
Added 20x20, 24x24 and 40x40 icons to icon.ico

Top left of the window: #98
Taskbar icon: #192
2016-08-23 20:20:52 +09:00
Yuya Ochiai f85337db65 Merge pull request #251 from Razzeee/fix-window-state
Improved window state handling
2016-08-22 22:39:29 +09:00
Yuya Ochiai 5d9c74e8bd Merge pull request #247 from jgis/master
Force single app instance

Close #236
2016-08-22 00:17:29 +09:00
Kolja Lampe 7429df05f5 Improved window state handling
Closes #249
2016-08-21 09:53:29 +02:00
Kolja Lampe f01b6a98f2 Change window title to the one that's set from the platform for the current channel 2016-08-19 20:39:12 +02:00
Julian Gisser 725b84ca64 Restore window properly when maximized 2016-08-17 08:58:13 +02:00
Julian Gisser 0978a4efb2 beautify code 2016-08-16 16:34:04 +02:00
Julian Gisser 293d7134b4 Force single app instance on windows
fixes issue #236
2016-08-16 10:28:21 +02:00
Kolja Lampe 932f756570 Use the default electron roles and their naming/implemenation
See: https://github.com/electron/electron/pull/6190/files
2016-08-08 18:58:12 +02:00
Tim Roes 32509ad8c2 Flash Window also without systray icon 2016-07-25 14:47:51 +02:00
Jonas Schwabe 6f5c907ca6 📝 Add changelog entry for taskbar flashing on linux 2016-07-23 14:08:29 +02:00
Jonas Schwabe 028d0ac7f8 implements #122, urgent hint on linux 2016-07-23 14:03:53 +02:00
Yuya Ochiai 722d9b731d Revert the icon usage for the main window
Close #192
Side effect #98
2016-07-13 01:08:57 +09:00
Yuya Ochiai 55ae88d4db Refactor click event of trayIcon 2016-07-06 22:32:40 +09:00
Yuya Ochiai 1f0961c94c Replace isHidden with isVisible()
There is an API, BrowserWindow.isVisible().
2016-07-06 22:32:40 +09:00
Yuya Ochiai ad7f63127f Add feature to hide window into system tray in Linux 2016-07-06 22:31:35 +09:00
Kolja Lampe 81b40c68b3 Replace generic "Open mattermost" by a menu entry for each team. 2016-07-05 20:57:39 +02:00
Yuya Ochiai 47f1f0cd8a Merge pull request #188 from Razzeee/fix-devtron-problems
Added event handles for potential problems devtron showed and log the…
2016-07-05 08:33:20 +09:00
Kolja Lampe bbea5e570e Added event handles for potential problems devtron showed and log these to console 2016-07-04 20:45:36 +02:00
Martin Gondermann 04cbec9a5d Makes the check for the tray icon a bit more lightweight 2016-07-03 23:04:36 +02:00
Martin Gondermann 3c0c448502 Fix behaviour, if "Show icon on menu bar" was previously not selected 2016-07-03 22:13:48 +02:00
Martin Gondermann 2b4ee5f0bc Readded the Option to hide the window on close for OSX 2016-07-03 16:12:04 +02:00
Martin Gondermann 2919b1af5f Removed option to minimize to tray, this is now the default behaviour 2016-07-03 14:58:48 +02:00
Martin Gondermann 865b08105a OSX: Added Option to hide Window from dock on close 2016-06-30 22:17:31 +02:00
Martin Gondermann 5f14fb7d0e Minimize to tray on Close only 2016-06-30 13:54:46 +02:00
Martin Gondermann 1f312e1f7f Add setting for "Toggle the window on tray icon click" 2016-06-28 15:07:29 +02:00
Martin Gondermann fa1ddcb623 prettified the code 2016-06-27 09:14:55 +02:00
Martin Gondermann db4bdd0a9b Window is hidden also on minimize and a click on the tray icon toggles the window 2016-06-27 09:06:20 +02:00
Martin Gondermann f85cad72db Hide window on minimize 2016-06-27 08:09:52 +02:00
Yuya Ochiai 96e52b6e85 Update config of main process when the config file is updated 2016-06-17 23:50:41 +09:00
Yuya Ochiai 517cc16835 Merge branch 'master' into dev 2016-06-17 23:39:45 +09:00
Yuya Ochiai 3061598935 Merge pull request #159 from MetalCar/blinkNotification 2016-06-17 21:29:12 +09:00
Yuya Ochiai 722807a5cb Refactor notification to simplify event handling 2016-06-16 23:01:37 +09:00
Kolja Lampe 447f6ec41d Adds a setting to launch the app on system login 2016-06-15 17:23:10 +02:00
Yuya Ochiai 9ee7643ad1 Fix for non-darwin platforms 2016-06-12 21:40:59 +09:00
Yuya Ochiai bea3b59168 Support dark mode 2016-06-12 21:33:00 +09:00
Yuya Ochiai eb8036fdf0 Refactor declaration for Electron API 2016-06-12 21:06:49 +09:00
Yuya Ochiai 1f412a51d5 Add clicked icons 2016-06-12 20:51:43 +09:00
Yuya Ochiai 1575ada948 Add color to menu icons 2016-06-12 20:27:35 +09:00
Carmine D'Amico 73a11ea398 added todo for idle notification and add a text to explain notification config 2016-06-07 22:42:36 +02:00
Carmine D'Amico 84d3c377b4 first implementation for flash notification and settings to configure these 2016-06-07 22:39:58 +02:00
Yuya Ochiai 709f8363ed Fix pixelated/blurry icons on Windows
Close #66, #98
Side effect: Electron's icon appears on `npm run watch`
2016-06-06 23:35:21 +09:00
Yuya Ochiai 479b789629 Merge branch 'master' into dev 2016-06-06 21:30:23 +09:00
Yuya Ochiai 20d94a5985 Merge pull request #158 from Razzeee/improve-tray
Change tooltip text on mentions/unread
2016-06-05 20:19:37 +09:00
Kolja Lampe c615c54903 Change tooltip text on mentions/unread 2016-06-04 01:37:36 +02:00
Yuya Ochiai bd25d254d3 Merge branch 'release/v1.2.1' 2016-06-01 23:04:40 +09:00
Yuya Ochiai e711eb1893 Fix that "Electron" appears on the title bar for a while on startup. 2016-05-24 00:00:57 +09:00
Yuya Ochiai 850c642644 Open tray menu with right-click on OS X
Close #139
2016-05-23 23:48:10 +09:00
Yuya Ochiai 91e2346cc3 Add a tray icon menu to open the main window 2016-05-23 23:37:24 +09:00
Yuya Ochiai 32b743f98c Refactor the dialog to confirm protocol
Close #144
2016-05-23 23:29:36 +09:00
Yuya Ochiai 7c964d51f5 Add dialog to confirm non-http(s) link 2016-05-22 13:39:52 +09:00
Yuya Ochiai a4f119bcae Update menu when the config is updated 2016-05-21 16:13:22 +09:00
Kolja Lampe 68b54ee4aa Implement installers via electron-builder 2016-05-20 22:58:32 +02:00
Yuya Ochiai 8f936c1725 Add Ctrl+n shortcut to switch tab
This also shows the main window.
Close #51
2016-05-18 23:02:03 +09:00
Jonas Schwabe ecfa143526 Add tray icon theme settings to the settings dialog 2016-05-08 01:01:56 +02:00
Jonas Schwabe 5a201b7727 add config option to select an icon theme 2016-05-07 22:39:14 +02:00
Jonas Schwabe 5020031235 Add tray icon for linux (Ubuntu ambiance style for now). 2016-05-07 22:21:17 +02:00
Yuya Ochiai bc97163fd4 Fix error when saving bound-info.json 2016-05-04 00:36:54 +09:00
Yuya Ochiai 58f1ec5f9a Prototype http authentication 2016-04-21 23:29:44 +09:00
Yuya Ochiai f8678fbec3 Revert existing auth event 2016-04-19 20:44:07 +09:00
Yuya Ochiai 8883ce3229 Make the tray icon to be optional 2016-04-11 21:51:24 +09:00
Yuya Ochiai f027008bd1 Refactor TrayIcon codes 2016-04-07 23:15:12 +09:00
Yuya Ochiai 9e07f6213a Add the status menu for OS X 2016-04-07 00:49:20 +09:00
Yuya Ochiai e326ee394c Merge branch 'master' into release/v1.1.0 2016-03-30 20:47:13 +09:00
Michael Gielda dc644e9285 Prettified previous commit 2016-03-29 18:00:47 +02:00
Michael Gielda 3af9b31000 Simpler implementation of HTTP basic auth, fixes #56 2016-03-29 17:56:03 +02:00
Yuya Ochiai 7e71094133 Fix pixelated taskbar icon on HiDPI Windows 2016-03-23 23:04:03 +09:00
Yuya Ochiai ab18e33f7f Merge branch 'master' into release/v1.1.0 2016-03-22 23:24:04 +09:00
Yuya Ochiai fbead4de5e Fix application icon for Windows and Linux
See #85
2016-03-21 00:28:02 +09:00
Yuya Ochiai 7cf1308ad4 Remove the specific AppUserModelID
It's not necessary for Notification on the latest Electron.
2016-03-13 22:57:38 +09:00
Yuya Ochiai 066672205a Confirm to trust certificate when there is error
For #26
2016-03-06 22:00:23 +09:00
Yuya Ochiai c13afa3745 Show a dot on tray icon to notify unread messages
Tray icon is too small to show a number.
So a dot(small circle) is used.
2016-02-25 22:21:28 +09:00
Yuya Ochiai f8f525c6df Fix "Toggle Fullscreen" not working
win.setFullScreenable() is necessary from Electron v0.36.6.
fix #37
2016-02-19 00:59:40 +09:00