Debian often uses "update-alternatives" to replace standard behaviour.
Ubuntu does so too.
if you execute
sudo update-alternatives --get-selections | grep gdm
you'll receive:
gdm-theme.gresource auto /usr/share/gnome-shell/theme/Yaru/gnome-shell-theme.gresource
This implies that the configured gdm.theme.resource is not the original one, but a resource created by the yaru team.
How to find out and how to change?
sudo update-alternatives --config gdm-theme.gresource
will list all available options (and shows which resource is currently used) :
There are 2 choices for the alternative gdm-theme.gresource (providing /usr/share/gnome-shell/gdm-theme.gresource).
Selection Path Priority Status
---------------------------------------------
* 0 /usr/share/gnome-shell/theme/Yaru/gnome-shell-theme.gresource 15 auto mode
1 /usr/share/gnome-shell/gnome-shell-theme.gresource 10 manual mode
2 /usr/share/gnome-shell/theme/Yaru/gnome-shell-theme.gresource 15 manual mode
Press <enter> to keep the current choice[*], or type selection number:
In this example yaru has been selected (the star indicates it), selecting "1" would change it to the original Gnome.
So how does Ubuntu (and other Debian derivates) do it?
They'll look into their /etc/alternatives/gdm-theme.gresource
directory, where the link will be preserved:
lrwxrwxrwx 1 root root 61 Jan 23 2022 /etc/alternatives/gdm-theme.gresource -> /usr/share/gnome-shell/theme/Yaru/gnome-shell-theme.gresource
The linking goes on, check the /usr/share/gnome-shell/gdm-theme.gresource
which links to the entry above.