Skip to content

Commit

Permalink
feat: dev icon
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed Jul 3, 2024
1 parent 125f18a commit e80d97d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
Binary file added resources/icon-dev.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 7 additions & 1 deletion src/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 0 additions & 7 deletions src/renderer/src/components/ui/modal/stacked/modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/modules/entry-column/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)}
>
Expand Down

0 comments on commit e80d97d

Please sign in to comment.