-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* pin, minimize 버튼 추가 * 집중, 휴식 최소화 화면 ui만 추가 * 최소화, 고정모드 기능 추가 * 이미지 영역 털뭉치 이미지로 적용 * 타이틀바 숨기고 drag, nodrag 영역 설정 * 축소 ui에도 drag 영역 설정 * pin off시 한번 focus 되도록 Co-authored-by: halang <[email protected]> --------- Co-authored-by: halang <[email protected]>
- Loading branch information
1 parent
a4bf244
commit 939f72b
Showing
21 changed files
with
519 additions
and
242 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { useEffect, useState } from 'react'; | ||
|
||
export const useAlwaysOnTop = () => { | ||
const [alwaysOnTop, setAlwaysOnTop] = useState(false); | ||
|
||
useEffect(() => { | ||
const run = async () => { | ||
const realAlwaysOnTop = await window.electronAPI.getAlwaysOnTop(); | ||
if (realAlwaysOnTop !== alwaysOnTop) { | ||
await window.electronAPI.setAlwaysOnTop(alwaysOnTop); | ||
setAlwaysOnTop(alwaysOnTop); | ||
} | ||
}; | ||
|
||
run(); | ||
}, [alwaysOnTop]); | ||
|
||
return { alwaysOnTop, setAlwaysOnTop }; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { useEffect, useState } from 'react'; | ||
|
||
export const useMinimize = () => { | ||
const [minimized, setMinimized] = useState(false); | ||
|
||
useEffect(() => { | ||
const run = async () => { | ||
const realMinimized = await window.electronAPI.getMinimized(); | ||
if (realMinimized !== minimized) { | ||
await window.electronAPI.setMinimized(minimized); | ||
setMinimized(minimized); | ||
} | ||
}; | ||
|
||
run(); | ||
}, [minimized]); | ||
|
||
return { minimized, setMinimized }; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.