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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates for main #2019

Closed
wants to merge 20 commits into from
Closed

Updates for main #2019

wants to merge 20 commits into from

Conversation

Alex313031
Copy link
Contributor

This adds more icon sizes for linux, and adds a new windows icon constant.

Right now, our windows builds have no icon. The icon is generated by electron builder from the Icon.png.

This is problematic because only will the icon be set if someone is using the .exe installer. Using a .zip or building from source on Linux makes it use the default electron icon.

Another problem is that the icon generated only has one size, 512px.
A proper windows icon (and proper windows electron app) should use a windows .ico file that has 16px, 32px, 48px, 64px, and 256px embedded inside.

This also adds a new menu item to the debug menu, opening a chrome://gpu window to check hardware acceleration status. It also checks the hardwareacceleration user config, and appends ignore-gpu-blocklist to electron if it is not false.

Other changes include adding my name to the About window, and adding QUIC support, as many facebook and google domains use this, and it enables faster handshaking.

@dusansimic
Copy link
Collaborator

Here are some comments but I will open reviews for a few pieces of code.

This adds more icon sizes for linux

Why?

This is problematic because only will the icon be set if someone is using the .exe installer. Using a .zip or building from source on Linux makes it use the default electron icon.

We only provide exe installer. This is not an issue then.

Another problem is that the icon generated only has one size, 512px.

Okay.

Other changes include adding my name to the About window,

Your name will be present on the win7 variant.

Comment on lines +31 to +42
.x9f619.x1n2onr6.x1ja2u2z.x78zum5.x2lah0s.x1qughib.x6s0dn4.xozqiw3.x1q0g3np.x1sy10c2.xktsk01.xod5an3.x1d52u69.xzd29fr {
-webkit-app-region: drag;
}
[role='navigation'] .x16n37ib {
-webkit-app-region: no-drag;
}
.x9f619.x1n2onr6.x1ja2u2z.x78zum5.xdt5ytf.x193iq5w.xeuugli.x1r8uery.x1iyjqo2.xs83m0k.xsyo7zv.x16hj40l.x10b6aqq.x1yrsyyn {
-webkit-app-region: drag;
}
[role='navigation'] .x1heor9g.x1qlqyl8.x1pd3egz.x1a2a7pz {
margin-left: 60px;
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

I this is for macOS, it's already fixed #2014

Comment on lines +114 to +120
"target": {
"target": "default",
"arch": [
"x64",
"arm64"
]
},
Copy link
Collaborator

Choose a reason for hiding this comment

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

Already added #2015

@@ -47,7 +47,7 @@

## Install

*macOS 10.10+, Linux, and Windows 10+ are supported (64-bit only).*
*macOS 10.12+ (Intel and Apple Silicon), Linux (x64 and arm64), and Windows 10+ (64-bit) are supported.*
Copy link
Collaborator

Choose a reason for hiding this comment

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

Already added #2015

@@ -59,6 +59,14 @@ if (!config.get('hardwareAcceleration')) {
app.disableHardwareAcceleration();
}

if (config.get('hardwareAcceleration')) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

If you're reading config of the app, the property should be defined in source/config.ts and also you should define migrations so the property gets created after an update.

Comment on lines +304 to +307
trafficLightPosition: {
x: 80,
y: 20,
},
Copy link
Collaborator

Choose a reason for hiding this comment

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

Already fixed #2014

@dusansimic
Copy link
Collaborator

And please rebase to main so this branch would be up to date.

@Alex313031 Alex313031 closed this Aug 28, 2023
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.

2 participants