lah7 / gtk3-classic

Patches to bring back a traditional experience for GTK+3
Other
339 stars 24 forks source link
gtk3 gtk3-classic gtk3-nocsd mate xfce4

gtk3-classic

Patched Upstream CI Status

Screenshot of some of the tweaks

This repository contains patches to restore GTK 3's look & feel reminiscent to earlier versions. With many enhancements such as disabled CSD headers, traditional dialog boxes and file browser improvements.

These are designed to work on non-GNOME desktops (such as XFCE and MATE) and any other environment where GTK applications are used. Running on GNOME desktops is not recommended!

View Screenshots | View Wiki

About

Once known as gtk3-mushrooms, this repository is a collection of patches that apply on top of the GTK 3 source code. It's not a fork of GTK 3.

This repository acts as a central hub for these patches and will keep rolling if there's a new GTK 3 release. The patches aim to bring a bit of reminiscence to GTK 2 and GTK 3's early days (hence, "classic")

This repository is provided as-is, with no warranty or guaranteed support. While the patched installation should just work, you are entering unsupported tertiary.

View Patches

Download

Arch Linux

AUR

Available from the AUR under gtk3-classic (previously gtk3-mushrooms)

Based on the official gtk3 package with some changes to make the package more lightweight:

There's a few ways to install:

Ubuntu

Ubuntu

Only available for LTS releases (starting from 20.04)

These packages are based on the original gtk+3.0 package, with the version suffixed with ~classic. These packages are rarely updated, as they are patched against the GTK 3 version originally used for that release.

To install, add the repository and upgrade your packages:

sudo add-apt-repository ppa:lah7/gtk3-classic
sudo apt dist-upgrade

To restore the original GTK 3, use ppa-purge to restore the packages from Ubuntu's repository:

sudo apt-get install ppa-purge
sudo ppa-purge ppa:lah7/gtk3-classic

This works for stock Ubuntu. If you're using an Ubuntu derivative (like Linux Mint), you may need to manually downgrade packages instead.

Gentoo

A Gentoo ebuild is available as x11-libs/gtk3-classic-patches in the khoverlay overlay. Rather than providing a patched x11-libs/gtk+:3 ebuild directly, this ebuild installs user patches which will be applied on subsequent builds of GTK 3. This way, the latest official Gentoo GTK 3 ebuild can always be used.

To install, first add the overlay and accept the package's testing status:

sudo eselect repository enable khoverlay
sudo emerge --sync khoverlay
echo 'x11-libs/gtk3-classic-patches::khoverlay' | sudo tee -a /etc/portage/package.accept_keywords

Then install the patches and rebuild GTK 3:

sudo emerge -av gtk3-classic-patches
sudo emerge -av1 gtk+:3

To revert to standard GTK 3, remove the patches and rebuild GTK 3:

sudo emerge -cav gtk3-classic-patches
sudo emerge -av1 gtk+:3

Patches

Client Side Decorations (only on Xorg)

File chooser

Appearance

Default Settings

Other

Fixes

Build time

Problems?

These patches are for your own pleasure. They are not supported by GTK developers, your distribution or application developers. Please don't send bug reports to them because of this patched GTK 3 installation.

If you are having trouble with an application or theme, try:

If a patch is at fault, Arch and Gentoo users for instance can comment out (#) patches in series until they find the one causing it.

Arch users can use the included scripts/test-exclude-each-patch.sh script. It'll exclude one patch at a time and create builds using the PKGBUILD in this repository.

Contributing

We're not writing new patches — only maintaining what we've got.

You are welcome to open a pull request with a new patch or fix if:

Patches should be added using the quilt system.

How to use quilt

Our primary packaging and testing happens on Arch. Checksums in PKGBUILD need to be updated to pass the automated checks. On an Arch system, these can be regenerated automatically:

updpkgsums

(Provided in pacman-contrib)

If you're not using Arch Linux, don't worry! When you create the pull request and automated checks run, it'll fail ❌ and present a patch of required changes.

Community

The Discussions tab is where you can find curated tips, chat, support and introductions from other users.

XFCE users might be interested in this additional patch for the file chooser:

License

Patches follow the same license as GTK 3, which is LGPLv2.