Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve app UX and simplify interface #17

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

samasante
Copy link
Contributor

Great work with this @vincelwt - I've added some fixes in my build that you are welcome to implement. Happy to keep contributing to the project if you'd like some help 馃槂

  • Improve default window size and set minimum
  • Keep window on top of other applications
  • Make background very slightly transparent
  • Hide sidebar when window is large
Demo.mp4

@vincelwt
Copy link
Owner

vincelwt commented Dec 7, 2022

Thanks 馃檪
I think the arrow is nice to keep though? Not sure if it makes sense having the app movable from the menubar

@samasante
Copy link
Contributor Author

Thanks 馃檪 I think the arrow is nice to keep though? Not sure if it makes sense having the app movable from the menubar

The arrow is pretty nice but there was a bug where it doesn't keep the correct position on resize (also wasn't updating correctly in dark mode for some reason)? Could spend time fixing it but I personally think it looks really clean and more like a native app without it.

Being able to move the window has been a really useful feature, since it's nice to drag it out of the way if it's overlaying important content 馃憤

@@ -96,7 +101,7 @@ app.on("ready", () => {

const menu = new Menu();

globalShortcut.register("CommandOrControl+Shift+g", () => {
globalShortcut.register("CommandOrControl+Alt+g", () => {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would be cautious about making this change, as it isn't backwards-compatible and people may already be accustomed to the current shortcut. Additionally, I believe the new one is already used by Google Drive.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The original shortcut is honestly easier to press on both Win and Mac (for my hand anyway)

@@ -1,4 +1,5 @@
require("update-electron-app")();
const electronReload = require("electron-reload");
Copy link

@kusalk kusalk Apr 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused variable declaration?

@@ -18,6 +19,10 @@ const image = nativeImage.createFromPath(
path.join(__dirname, `images/newiconTemplate.png`)
);

require("electron-reload")(__dirname, {
electron: path.join(__dirname, "node_modules", ".bin", "electron"),
Copy link

@kusalk kusalk Apr 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this compatible with electron-forge make?
edit: Isn't this a development tool - why's it in the PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants