feat: dev icon

Signed-off-by: Innei <i@innei.in>
This commit is contained in:
Innei 2024-07-03 11:19:58 +08:00
parent 125f18ad11
commit e80d97d2ba
No known key found for this signature in database
GPG Key ID: 0F62D33977F021F7
4 changed files with 8 additions and 9 deletions

BIN
resources/icon-dev.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 105 KiB

View File

@ -26,8 +26,14 @@ if (process.defaultApp) {
app.setAsDefaultProtocolClient(APP_PROTOCOL)
}
const iconMap = {
prod: path.join(__dirname, "../../resources/icon.png"),
dev: path.join(__dirname, "../../resources/icon-dev.png"),
}
if (app.dock) {
app.dock.setIcon(path.join(__dirname, "../../resources/icon.png"))
app.dock.setIcon(
process.env.NODE_ENV === "development" ? iconMap.dev : iconMap.prod,
)
}
// This method will be called when Electron has finished

View File

@ -55,13 +55,6 @@ export const ModalInternal: Component<{
[close],
)
// const { opaque, overlay: defaultOverlay } = useUIStore(
// useShallow((state) => ({
// overlay: state.modalOverlay,
// opaque: state.modalOpaque,
// })),
// )
// const opaque = useUIStore((state) => state.modalOpaque)
const opaque = useUISettingKey("modalOpaque")
const {

View File

@ -334,7 +334,7 @@ const ListHeader: FC<{
</ActionButton>
)}
<ActionButton
tooltip={`${unreadOnly ? "Unread Only" : "All"}`}
tooltip={unreadOnly ? "Unread Only" : "All"}
shortcut={shortcuts.entries.toggleUnreadOnly.key}
onClick={() => setUnreadOnly(!unreadOnly)}
>