From 4a1c8f6cb7bb29f7721e6e4466159e4cf8b168f9 Mon Sep 17 00:00:00 2001 From: tinydew4 Date: Wed, 12 Oct 2016 14:21:19 +0000 Subject: [PATCH] Apply the changes --- .../ko-KR/api/system-preferences.md | 51 ++++++++++++++++++- .../development/build-instructions-linux.md | 12 +---- .../development/build-instructions-osx.md | 26 ++++------ .../development/build-instructions-windows.md | 21 +------- .../development/build-system-overview.md | 47 +++++++++++++++++ 5 files changed, 108 insertions(+), 49 deletions(-) diff --git a/docs-translations/ko-KR/api/system-preferences.md b/docs-translations/ko-KR/api/system-preferences.md index e32c9843dd..2960315ea1 100644 --- a/docs-translations/ko-KR/api/system-preferences.md +++ b/docs-translations/ko-KR/api/system-preferences.md @@ -18,6 +18,12 @@ Returns: * `event` Event * `newColor` String - 사용자에 의해 시스템 강조색으로 설정 된 새 RGBA 색상. +### Event: 'color-changed' _Windows_ + +Returns: + +* `event` Event + ### Event: 'inverted-color-scheme-changed' _Windows_ Returns: @@ -145,7 +151,7 @@ if (browserOptions.transparent) { ### `systemPreferences.getAccentColor()` _Windows_ -사용자의 현재 시스템 전체 색상 환경설정을 RGBA 16진 문자열 형태로 반환합니다. +Returns `String` - 사용자 현재 시스템 전체 강조 색상 설정의 16진수 형식 RGBA 값. ```javascript const color = systemPreferences.getAccentColor() // `"aabbccdd"` @@ -155,7 +161,50 @@ const blue = color.substr(4, 2) // "cc" const alpha = color.substr(6, 2) // "dd" ``` +### `systemPreferences.getColor(color)` _Windows_ + +* `color` String - 다음 값 중 하나: + * `3d-dark-shadow` - 3차원 요소의 어두운 그림자 색. + * `3d-face` - 3차원 요소와 대화상자 배경의 표면 색. + * `3d-highlight` - 3차원 요소의 가장 밝은 색. + * `3d-light` - 3차원 요소의 밝은 색. + * `3d-shadow` - 3차원 요소의 그림자 색. + * `active-border` - 활성창의 테두리 색. + * `active-caption` - 활성창의 제목줄. 그라데이션 효과가 활성화 되있으면 활성창 + 제목줄 그라데이션의 좌측 색. + * `active-caption-gradient` - 그라데이션 효과가 활성화 되있으면 활성창 제목줄 + 그라데이션의 우측 색. + * `app-workspace` - 다중 문서 인터페이스 (MDI) 애플리케이션의 배경색. + * `button-text` - 버튼의 글자색. + * `caption-text` - 제목줄, 크기 상자, 스크롤바 화살표 상자의 글자색. + * `desktop` - 데스크탑 배경 색. + * `disabled-text` - 회색 (비활성) 글자색. + * `highlight` - 컨트롤에서 선택된 항목(들)의 색. + * `highlight-text` - 컨트롤에서 선택된 항목(들)의 글자색. + * `hotlight` - 하이퍼링크 또는 실시간 추적되는 항목의 색. + * `inactive-border` - 비활성창의 테두리 색. + * `inactive-caption` - 비활성창의 제목줄. 그라데이션 효과가 활성화 되있으면 + 비활성창 제목줄 그라데이션의 좌측 색. + * `inactive-caption-gradient` - 그라데이션 효과가 활성화 되있으면 비활성창 + 제목줄 그라데이션의 좌측 색. + * `inactive-caption-text` - 비활성 제목줄의 글자색. + * `info-background` - 툴팁 컨트롤의 배경색. + * `info-text` - 툴팁 컨트롤의 글자색. + * `menu` - 메뉴 배경색. + * `menu-highlight` - 평면 메뉴일때 메뉴 항목 강조 색. + * `menubar` - 평면 메뉴일때 메뉴 막대의 배경색. + * `menu-text` - 메뉴의 글자. + * `scrollbar` - 스크롤바 회색 영역. + * `window` - 창의 배경. + * `window-frame` - 창 테두리. + * `window-text` - 창의 글자. + +Returns `String` - 16진수 RGB 형식 (`#ABCDEF`) 의 시스템 색상 설정. +자세한 내용은 [윈도우 문서][windows-colors]를 보세요. + ### `systemPreferences.isInvertedColorScheme()` _Windows_ Returns `Boolean` - 고대비 테마 같은 반전된 색상 스킴이 활성화 되있다면 `true`, 아니면 `false`. + +[windows-colors]:https://msdn.microsoft.com/en-us/library/windows/desktop/ms724371(v=vs.85).aspx diff --git a/docs-translations/ko-KR/development/build-instructions-linux.md b/docs-translations/ko-KR/development/build-instructions-linux.md index 6d65bd0501..236cbffdce 100644 --- a/docs-translations/ko-KR/development/build-instructions-linux.md +++ b/docs-translations/ko-KR/development/build-instructions-linux.md @@ -123,17 +123,7 @@ $ sudo ln -s /usr/lib/libncurses.so.5 /usr/lib/libtinfo.so.5 ## 테스트 -프로젝트 코딩 스타일을 확인하려면: - -```bash -$ npm run lint -``` - -테스트를 실행하려면: - -```bash -$ ./script/test.py -``` +[빌드 시스템 개요: 테스트](build-system-overview.md#tests)를 보세요. ## 고급 주제 diff --git a/docs-translations/ko-KR/development/build-instructions-osx.md b/docs-translations/ko-KR/development/build-instructions-osx.md index 178c8d3f7f..fa5637def0 100644 --- a/docs-translations/ko-KR/development/build-instructions-osx.md +++ b/docs-translations/ko-KR/development/build-instructions-osx.md @@ -8,21 +8,22 @@ * [Xcode](https://developer.apple.com/technologies/tools/) >= 5.1 * [node.js](http://nodejs.org) (external) -만약 Homebrew 를 이용해 파이썬을 설치했다면 다음 파이썬 모듈도 같이 설치해야 합니다: +만약 Homebrew 를 이용해 파이썬을 설치했다면 다음 파이썬 모듈도 같이 설치해야 +합니다: * [pyobjc](https://pythonhosted.org/pyobjc/install.html) ## 코드 가져오기 ```bash -$ git clone https://github.com/electron/electron.git +$ git clone https://github.com/electron/electron ``` ## 부트 스트랩 -부트스트랩 스크립트는 필수적인 빌드 의존성 라이브러리들을 모두 다운로드하고 프로젝트 -파일을 생성합니다. 참고로 Electron은 [ninja](https://ninja-build.org/)를 빌드 -툴체인으로 사용하므로 Xcode 프로젝트는 생성되지 않습니다. +부트스트랩 스크립트는 필수적인 빌드 의존성 라이브러리들을 모두 다운로드하고 +프로젝트 파일을 생성합니다. 참고로 Electron은 [ninja](https://ninja-build.org/) +를 빌드 툴체인으로 사용하므로 Xcode 프로젝트는 생성되지 않습니다. ```bash $ cd electron @@ -43,7 +44,8 @@ $ ./script/build.py $ ./script/build.py -c D ``` -빌드가 모두 끝나면 `out/D` 디렉터리에서 `Electron.app` 실행 파일을 찾을 수 있습니다. +빌드가 모두 끝나면 `out/D` 디렉터리에서 `Electron.app` 실행 파일을 찾을 수 +있습니다. ## 32비트 지원 @@ -60,14 +62,4 @@ $ npm run clean ## 테스트 -프로젝트 코딩 스타일을 확인하려면: - -```bash -$ ./script/cpplint.py -``` - -테스트를 실행하려면: - -```bash -$ ./script/test.py -``` +[빌드 시스템 개요: 테스트](build-system-overview.md#tests)를 보세요. diff --git a/docs-translations/ko-KR/development/build-instructions-windows.md b/docs-translations/ko-KR/development/build-instructions-windows.md index 9319aaf6ea..56fd4314fc 100644 --- a/docs-translations/ko-KR/development/build-instructions-windows.md +++ b/docs-translations/ko-KR/development/build-instructions-windows.md @@ -88,26 +88,7 @@ $ npm run clean ## 테스트 -프로젝트 코딩 스타일을 확인하려면: - -```powershell -$ python script\cpplint.py -``` - -테스트를 실행하려면: - -```powershell -$ python script\test.py -``` - -테스트 실행시 `runas`와 같은 네이티브 모듈을 포함하는데 이 모듈은 디버그 빌드에서 같이 -사용할 수 없습니다. 하지만 여전히 릴리즈 빌드에선 사용할 수 있습니다. - -릴리즈 빌드로 테스트를 실행하려면 다음 커맨드를 사용하면 됩니다: - -```powershell -$ python script\test.py -R -``` +[빌드 시스템 개요: 테스트](build-system-overview.md#tests)를 보세요. ## 문제 해결 diff --git a/docs-translations/ko-KR/development/build-system-overview.md b/docs-translations/ko-KR/development/build-system-overview.md index b10b813dce..26b4380d43 100644 --- a/docs-translations/ko-KR/development/build-system-overview.md +++ b/docs-translations/ko-KR/development/build-system-overview.md @@ -68,3 +68,50 @@ Electron은 `Release`와 `Debug` 빌드가 서로 다른 라이브러리 링크 이 문제는 개발자에게만 영향을 미칩니다. 만약 단순히 Electron을 rebranding 하기 위해 빌드 하는 것이라면 이 문제에 신경 쓸 필요가 없습니다. + +## 테스트 + +변경사항이 프로젝트 코딩 스타일을 준수하는지 테스트하려면 다음 명령을 사용하세요: + +```bash +$ npm run lint +``` + +기능을 테스트하려면 다음 명령을 사용하세요: + +```bash +$ npm test +``` + +Electron 소스 코드를 변경할 때 마다, 테스트 전에 빌드를 다시 실행해야 합니다: + +```bash +$ npm run build && npm test +``` + +모카의 [전용 테스트](https://mochajs.org/#exclusive-tests) 기능을 사용해서 특정 +테스트 또는 블록을 분리하여 테스트 세트 실행을 빠르게 할 수 있습니다.`describe` +또는 `it` 함수 호출에 `.only` 만 붙이세요: + +```js +describe.only('some feature', function () { + // ... 이 블록에서는 테스트만 실행될 것 입니다. +}) +``` + +또는, 주어진 정규 표현 패턴에 일치하는 경우에만 테스트를 실행하기 위해 모카의 +`grep` 을 사용할 수 있습니다: + +```sh +$ npm test -- --grep child_process +``` + +테스트시 (`runas` 같은) 네이티브 모듈을 포함하면 디버그 빌드에서 실행할 수 +없습니다. (자세한 것은 [#2558](https://github.com/electron/electron/issues/2558) +를 보세요). 그러나 릴리즈 빌드에서는 작동할 것 입니다. + +릴리즈 빌드로 테스트를 실행하려면 다음 명령을 사용하세요: + +```bash +$ npm test -- -R +```