Package Details: libadwaita-without-adwaita 1:1.9.0-1

Git Clone URL: https://aur.archlinux.org/libadwaita-without-adwaita.git (read-only, click to copy)
Package Base: libadwaita-without-adwaita
Description: libadwaita; Includes a patch to not overwrite the system theme. Because the maintainer likely abandoned the pkg
Upstream URL: https://gnome.pages.gitlab.gnome.org/libadwaita
Licenses: LGPL-2.1-or-later
Conflicts: libadwaita
Provides: libadwaita, libadwaita-1.so
Submitter: subez
Maintainer: subez (silvertuanzi)
Last Packager: silvertuanzi
Votes: 6
Popularity: 0.84
First Submitted: 2025-08-14 18:18 (UTC)
Last Updated: 2026-04-17 13:31 (UTC)

Required by (888)

Sources (2)

Pinned Comments

subez commented on 2026-04-17 13:19 (UTC) (edited on 2026-04-17 13:20 (UTC) by subez)

i am so sorry everyone. i wasn't on possession of my PC. i added @silvertuanzi as co maintainer for now.

u can update it for now. i will probably hand u over this pkg. idk how tho

Latest Comments

1 2 Next › Last »

subez commented on 2026-04-17 13:19 (UTC) (edited on 2026-04-17 13:20 (UTC) by subez)

i am so sorry everyone. i wasn't on possession of my PC. i added @silvertuanzi as co maintainer for now.

u can update it for now. i will probably hand u over this pkg. idk how tho

haltroy commented on 2026-04-10 22:02 (UTC) (edited on 2026-04-10 22:03 (UTC) by haltroy)

The patch seems to not work with me on 1.9.0 (was working on 1.8.4) so I patched it myself.

Step 1: Clone the package

Step 2: edit the PKGBUILD and .SRCINFO files so they point to 1.9.0 with pkgrel=1

Step 3: open the patch, delete everything and copy the patch below

Step 3: Build the package normally using makepkg -sir

--- a/src/adw-style-manager.c   2026-03-13 18:15:36.000000000 +0300
+++ b/src/adw-style-manager.c   2026-04-11 00:48:33.532350810 +0300
@@ -465,6 +465,24 @@
 }

 static void
+adw_style_manager_theme_changed(GSettings *settings, const char *key, GdkDisplay *display)
+{
+  char* theme = g_settings_get_string(settings, "gtk-theme");
+  char* color_scheme = g_settings_get_string(settings, "color-scheme");
+
+  if(!theme) {
+    theme = "Adwaita-empty";
+  }
+
+  gboolean is_dark_variant = NULL != strstr(theme, "-dark") || NULL != strstr(theme, "-Dark") || 0 == strcmp(color_scheme, "prefer-dark");
+
+  g_object_set(gtk_settings_get_for_display(display),
+               "gtk-theme-name", theme,
+               "gtk-application-prefer-dark-theme", is_dark_variant, NULL);
+}
+
+
+static void
 adw_style_manager_constructed (GObject *object)
 {
   AdwStyleManager *self = ADW_STYLE_MANAGER (object);
@@ -489,29 +507,6 @@
                              self,
                              G_CONNECT_SWAPPED);

-    if (!adw_is_granite_present () && !g_getenv ("GTK_THEME")) {
-      g_object_set (self->gtk_settings,
-                    "gtk-theme-name", "Adwaita-empty",
-                    NULL);
-
-      self->provider = gtk_css_provider_new ();
-      gtk_css_provider_load_from_resource (self->provider,
-                                           "/org/gnome/Adwaita/styles/gtk.css");
-      gtk_style_context_add_provider_for_display (self->display,
-                                                  GTK_STYLE_PROVIDER (self->provider),
-                                                  GTK_STYLE_PROVIDER_PRIORITY_THEME);
-
-      self->accent_provider = gtk_css_provider_new ();
-      gtk_style_context_add_provider_for_display (self->display,
-                                                  GTK_STYLE_PROVIDER (self->accent_provider),
-                                                  GTK_STYLE_PROVIDER_PRIORITY_THEME);
-
-      self->fonts_provider = gtk_css_provider_new ();
-      gtk_style_context_add_provider_for_display (self->display,
-                                                  GTK_STYLE_PROVIDER (self->fonts_provider),
-                                                  GTK_STYLE_PROVIDER_PRIORITY_THEME);
-    }
-
     self->animations_provider = gtk_css_provider_new ();
     gtk_css_provider_load_from_string (self->animations_provider,
                                        "* { transition: none; }");
@@ -569,6 +564,17 @@
   update_dark (self);
   update_fonts (self);
   update_stylesheet (self, UPDATE_ALL);
+
+  if (self->display && !adw_is_granite_present () && !g_getenv ("GTK_THEME")) {
+    GSettingsSchemaSource *schema_source =
+    g_settings_schema_source_get_default();
+    GSettingsSchema *schema = g_settings_schema_source_lookup(
+      schema_source, "org.gnome.desktop.interface", true);
+    GSettings *interface_settings = g_settings_new_full(schema, NULL, NULL);
+
+    adw_style_manager_theme_changed(interface_settings, "gtk-theme", self->display);
+    g_signal_connect (interface_settings, "changed", G_CALLBACK (adw_style_manager_theme_changed), self->display);
+  }
 }

 static void

silvertuanzi commented on 2026-04-10 17:45 (UTC)

1.9.0 here: https://github.com/silvertuanzi/libadwaita-without-adwaita I’m considering adopting this package. I’m still getting familiar with maintaining AUR packages, but I can keep the package updated and handle patch adjustments when possible.

silvertuanzi commented on 2026-04-04 11:04 (UTC)

libadwaita 1.9.0 depends gtk4>=4.21, but [extra] repo has 4.20.4 and [gnome-unstable] has 4.22.2.

So it's not needed to bump to 1.9.x until gtk4 bumping to 4.22

The libadwaita in [extra] is 1.8.4, just update this PKGBUILD to 1.8.4 should work.

gehenna14 commented on 2026-04-02 09:36 (UTC)

Please update to 1.9.0! I cannot submit an out-of-date flag because there already is one.

kanehekili commented on 2026-02-11 23:35 (UTC)

Thanks for maintaining this. Makes individual theming possible. Very much appreciated!

pacu167 commented on 2025-11-20 20:54 (UTC)

Having a minor issue where icons (on action buttons, in search field) are too close to the text on their right. Observed in Pamac with Yaru and Mint-Y.

Usucra commented on 2025-11-05 16:11 (UTC)

@subez The 1.8 Update doesn't seem to work for me, all I get is a Transparent Window (I'm on KDE). Tried the old arc-gtk-theme and the whitesur-gtk-theme from the AUR for testing both with similiar error messages like "Failed to import: The resource at “/org/gnome/theme/gtk.css” does not exist"

subez commented on 2025-10-17 15:58 (UTC)

@guiodic somehow it got pushed.

sorry for inconvenience.