-
Notifications
You must be signed in to change notification settings - Fork 5
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
Build Electron with GTK+ 3 #10
Comments
Thanks to the brilliant solution of @nikolowry, as of v1.2.4 our build of Electron uses GTK+ 3. I'll leave this issue open until we are sure that the build with the new option is completely stable. |
On hidpi display font is too small. Do not scaled as it should. Before gtk3 all was well. |
@repsac-by Can you attach a screenshot? |
Can you manually increase the font size in Atom, or does it look weird? I don't have a hidpi display, but I noticed that |
I also found this https://wiki.archlinux.org/index.php/HiDPI#GDK_3_.28GTK.2B_3.29 |
Setting the font size in the atom only affects the source code editor. Yes it is in the gnome-tweak-tool has HiDPI factor 2. Before gtk3 electron scaled, but now no longer. Other applications on the electron look the same, not only Atom. |
I'll revert to gtk2 in the next build. |
|
Strange, I tried on mine and didn't do anything. |
Even if you set GDK_SCALE=1 the scale remains correct. It turns out it is important the very existence of environment variable. |
If your problem is completely solved, we will stay with gtk3 for now and see if other issues come up. |
Well, not completely, but I am willing to suffer for a while. 👍 |
if I can help someone, I myself did launcher #!/bin/sh
export GDK_SCALE=1
exec /usr/lib/electron/electron --ignore-gpu-blacklist "$@" |
Can you test it in both Wayland and X? I may include the export in the electron launcher script. |
For wayland completely different behavior. #!/bin/sh
export GDK_SCALE=2
exec /usr/bin/electron --ignore-gpu-blacklist "$@" |
I also experienced this issue. Adding Thanks for the solution btw |
I noticed that #!/usr/bin/bash
export GDK_BACKEND=x11
export GDK_SCALE=2
exec /usr/lib/electron/electron "$@" We should test this setting across different displays. BTW @repsac-by is |
Sorry |
I just noticed that although @repsac-by @willotter I guess you will have the same problem |
@tensor5 With X and Also btw @repsac-by I used to use |
Electron should now work out of the box on HiDPI displays, at least on X. |
@juvevood, what theme are you using? |
@tensor5 ,Thank you!I also feedback the problem to the author of the theme, I tried other themes there is no problem |
@juvevood I think I can fix it, just need some time. Once I've done with this and a few other details, I'll PR a comprehensive gtk3 patch to Electron. |
@repsac-by and @willotter, I changed the way Electron handles HiDPI in 5e21d0d, can you tell me if the new settings work correctly on your screens? (I don't have a HiDPI screen). |
@tensor5 Just updated to electron-1.4.1-2 (is that the correct version?) and seems to be working fine for me. |
@willotter your version is correct, thank you. |
Hi I'm an author of Adapta-gtk-theme.
Indeed, the styling of GtkMenuItem is placed at root because that styling is used in
But unfortunately I can't find any cascading structures in your patch. It means a single
I did not read a whole codes of Finally, So let me know if you had some ideas... EDIT I've committed a workaround for GtkPopupWindow without ClientSideDecoration: adapta-project/adapta-gtk-theme@87fc030 |
Hi @tista500, Thank you for looking into this issue. 1 and 2. The original GTK2 code of Electron only had one background color, picked with:
(see https://github.com/electron/electron/blob/master/atom/browser/ui/views/menu_bar.cc#L35) I tried to replicate that in GTK3, however sometimes the background color is not defined in the css node of menubar, so I use The problem with this patch is that I'm using
|
This is done in the
electron_gtk3
branch.Atom and Electron's default app crash on keypress. No problem arises during the build of libchromiumcontent, but there are some warnings from Electron:
Upstream issue here.
The text was updated successfully, but these errors were encountered: