Samuel Attard
4d8a05568b
feat: enable dark mode support by default on macOS ( #19226 )
...
This adds the NSRequiresAquaSystemAppearance key to our default Info.plist file which will tell macOS to auto-switch our effectiveAppearance in sync with the OS. The dark mode documentation has been updated to reflect how to opt *out* of this but it is also noted that certain dark mode APIs will not work on Catalina if you opt out.
2019-07-15 17:23:12 +09:00
Louis Rose
79114ff40a
feat: add object to subscribe notification callback ( #19110 )
2019-07-11 10:06:31 -07:00
Micha Hanselmann
62a3666773
remove non-existent event ( #19126 )
2019-07-09 17:45:18 +03:00
Shelley Vohr
af108764c7
chore: revert promisified systemPreferences notification methods
...
This reverts commit eec12b399a
.
2019-06-10 09:34:21 -07:00
Shelley Vohr
eec12b399a
feat: promisify systemPreferences notification methods ( #18631 )
...
* feat: promisify systemPreferences notification methods
* correct userInfo typedef
2019-06-06 07:47:18 -07:00
Shelley Vohr
1e3e5a6619
refactor: set appLevelAppearance prop on systemPreferences ( #18477 )
...
* refactor: set appLevelAppearance prop on systemPreferences
* ensure backwards compat is tested
2019-05-30 17:12:46 -07:00
Milan Burda
a82bbd010e
build: strip trailing whitespace in docs ( #17488 )
2019-03-20 13:12:47 -07:00
Milan Burda
4c51fa93f5
feat: add systemPreferences.getAnimationSettings() ( #17382 )
2019-03-19 12:15:40 -07:00
Shelley Vohr
46a24c82ff
feat: add Touch ID authentication support for macOS ( #16707 )
...
This PR adds Touch ID authentication support for macOS with two new `SystemPreferences` methods.
1. `systemPreferences.promptForTouchID()` returns a Promise that resolves with `true` if successful and rejects with an error message if authentication could not be completed.
2. `systemPreferences.isTouchIDAvailable()` returns a Boolean that's `true` if this device is a Mac running a supported OS that has the necessary hardware for Touch ID and `false` otherwise.
2019-02-13 18:36:28 -08:00
Shelley Vohr
b57046e67d
feat: add mac support to systemPrefs.getColor() ( #16249 )
2019-01-03 16:17:07 -08:00
Shelley Vohr
03892153de
feat: expose systemPreferences.getSystemColor() ( #16248 )
2019-01-03 14:30:38 -08:00
Shelley Vohr
439ba5116f
feat: add mac support to systemPrefs.getAccentColor() ( #16251 )
...
* feat: add mac support to systemPrefs.getAccentColor()
* note 10.14 retriction
2019-01-03 13:24:55 -08:00
Shelley Vohr
a58d989b60
feat: expose app accessibility status api ( #16119 )
...
* feat: expose app accessibility status api
* fix prompt
2018-12-18 11:15:22 -05:00
Shelley Vohr
280f9bf49c
feat: allow immediate MacOS notifications ( #16060 )
...
* feat: allow immediate MacOS notifications
* fix args->GetNext
* update docs/api/system-preferences.md
Co-Authored-By: codebytere <codebytere@github.com>
* address feedback from @ckerr's review
2018-12-14 13:46:46 -08:00
Shelley Vohr
c31629ad98
feat: add media access APIs for macOS Mojave ( #15624 )
2018-12-04 07:54:13 -08:00
Samuel Attard
86064a7bd8
docs: add return type for subscribeNotification ( #15490 )
2018-10-31 10:24:50 -04:00
Heilig Benedek
6d2a088be9
feat: detect high contrast color mode ( #15493 )
...
* feat: add event and method to detect high contrast color mode
* docs: add docs for isHighContrastColorScheme and high-contrast-color-scheme-changed
* refactor: correct type of contrast
2018-10-31 10:22:18 -04:00
Samuel Attard
d628aad3bf
feat: remove needless mojave dark mode APIs and add instructions on how to use the macOS replacement ( #14895 )
2018-10-02 14:44:50 +10:00
Samuel Attard
0d2a0c7583
feat: add APIs to support mojave dark modes ( #14755 )
...
* feat: add APIs to support mojave dark mode
Closes #13387
* docs: fix system-prefs typo
2018-09-27 10:33:31 -05:00
Samuel Attard
558fff69e7
chore: update to standard 12
2018-09-14 14:57:01 +10:00
Clément Beffa
642f5a84d4
Workspace notifications support on macOS ( #12093 )
2018-03-22 18:41:03 +09:00
Vanessa Yuen
48dd8f96b7
Fix broken links ( #12232 )
...
* Update system-preferences.md
* Fix broken documentation links.
2018-03-14 08:07:36 +09:00
Shelley Vohr
26ad37c4d1
remove key and value bullts
2017-12-13 16:02:15 -05:00
Shelley Vohr
8b447b9291
fixing error in registerDefaults
2017-12-12 13:08:09 -05:00
Alexey Kuzmin
1caa04c0bf
Revert "Add systemPreferences.registerDefaults()"
2017-12-12 13:59:15 +03:00
Shelley Vohr
027e78639a
update value type to Any
2017-12-11 14:06:02 -05:00
Shelley Vohr
765f223fef
update docs and spec
2017-12-11 13:06:23 -05:00
Shelley Vohr
c5aeda1fdd
fixes from code review
2017-12-11 00:20:26 -05:00
Shelley Vohr
5e51ab9791
fix doc parsing error
2017-12-10 14:55:14 -05:00
Shelley Vohr
9a40bbd082
update systemPreferences docs
2017-12-10 14:46:19 -05:00
Toinane
0a0d88a5dc
remove all double spaces not needed
2017-11-29 11:58:24 +01:00
Toinane
323ea2b27b
fix(docs): fix all missing dots and add some links
2017-11-29 11:38:35 +01:00
Birunthan Mohanathas
06d782279c
Add systemPreferences.removeUserDefault()
...
This can be used to restore the default or global value of a `key`
previously set with `setUserDefault`.
2017-10-10 22:57:47 +03:00
Kevin Sawicki
b964c304de
Add return type to systemPreferences.isAeroGlassEnabled()
2017-05-31 10:34:14 -07:00
Birunthan Mohanathas
cd2e6f497f
Fix missing return value type for systemPreferences.getUserDefault
2017-05-22 17:19:03 +03:00
Cesar Andreu
e296d4826f
Fix a typo, there => their
2016-12-21 19:21:04 -08:00
Zeke Sikelianos
e57cb713b2
link process annotations to glossary
2016-12-21 13:47:40 -08:00
Birunthan Mohanathas
486b6b9096
Add systemPreferences.setUserDefault for macOS
...
This API can be used to e.g. enable key repeat by setting
`ApplePressAndHoldEnabled` to `false` (see also #47 ).
2016-11-29 09:46:32 -08:00
Zeke Sikelianos
ac68de6215
document process(es) for all APIs
2016-11-03 10:26:00 -07:00
Samuel Attard
20323e7032
Specifiy function param types in docs
2016-10-13 17:30:57 +11:00
Kevin Sawicki
c8189046fe
Emit color-changed event on Windows
2016-10-11 13:15:27 -07:00
Kevin Sawicki
2656812dea
Doc systemPreferences.getColor
2016-10-11 13:15:27 -07:00
Kevin Sawicki
25bcc2dd0d
🎨
2016-10-10 10:43:09 -07:00
Kevin Sawicki
af27c62b07
Doc inverted-color-scheme-changed event
2016-10-10 10:43:08 -07:00
Kevin Sawicki
223e9d97a0
Doc systemPreferences.isInvertedColorScheme
2016-10-10 10:43:08 -07:00
Milan Burda
cb15181f43
Fix typo
2016-10-06 12:03:37 +02:00
Zeke Sikelianos
6728efe87e
Merge pull request #7339 from electron/document-return-values
...
Document the return values of all methods in the docs
2016-09-27 07:39:25 -07:00
Samuel Attard
d2a701a465
Document the return values of all methods in the docs
2016-09-25 12:59:30 +13:00
Vadim Macagon
1df30821db
Fix getAccentColor() docs in system-preferences.md
...
Example was using a non-existent method.
2016-09-25 01:45:34 +07:00
Kevin Sawicki
b5e1571204
Set parameter type to Object
2016-09-20 14:26:55 -07:00