22
submitted 8 months ago* (last edited 8 months ago) by majjo@beehaw.org to c/emacs@lemmy.ml

(Video on Mastodon)

Inspired by a Reddit post some month ago, I wrote two patches:

  1. titlebar-colors.patch for syncing the colors of the titlebar with the rest of the frame. This uses GtkHeaderbar to allow Emacs to control the colors internally. I haven't gotten the foreground color to sync yet. The changes are done to GTK parts of Emacs and should work for both X and Wayland (pgtk) builds.
  2. rounded-corners.patch to make the shape of frames more consistent with other applications. The changes are made to PGTK parts of Emacs, but should be easily applicable to other places. Right now, it forces a 12 px radius. Ideally, it should just respect the shape of the underlying GtkWindow. This would make it more versatile and automatically change to a square shape in fullscreen (which is currently unimplemented).

The Reddit post mentioned got a lot of attention, but the poster did not provide any code. So I thought some people would find at least the first of these patches useful!

They both have their flaws (poor contrast in most dark themes and forcing 12 px radius, also seems to crash Corfu and possibly more), any help to improve them is much appreciated.

you are viewing a single comment's thread
view the rest of the comments
[-] Daan@feddit.nl 1 points 8 months ago

Looks great, I also looked at this a few years ago, but I wasn't skilled enough to do it myself.

this post was submitted on 22 Mar 2024
22 points (100.0% liked)

Emacs

1978 readers
1 users here now

Our infinitely powerful editor.

founded 4 years ago
MODERATORS