use downstream pop!_os patch for global theme switching

Bug #1943857 reported by Muqtadir
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-shell (Ubuntu)
Fix Released
Wishlist
Unassigned

Bug Description

Pop!_OS manages to switch the Gnome-shell and GTK theme since 20.04 without the use of user-theme gnome-shell-extension by patching Gnome-shell.

The following files should be patched:

- https://git.launchpad.net/ubuntu/+source/gnome-shell/tree/js/ui/main.js?h=applied/ubuntu/impish

- https://git.launchpad.net/ubuntu/+source/gnome-shell/tree/debian/ubuntu-session-mods/ubuntu.json?h=applied/ubuntu/impish

Yaru-theme gnome-shell gresource should use this PR if patched:
- https://github.com/ubuntu/yaru/pull/2945

Tags: patch
Revision history for this message
Muqtadir (muqtxdir-m) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "pop-dark-theme.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Muqtadir (muqtxdir-m)
description: updated
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thanks for the enhancement request. It appears you're recommending changing multiple files but the patch in comment #1 only changes one file. Can you clarify the full set of patches required?

Changed in gnome-shell (Ubuntu):
importance: Undecided → Wishlist
status: New → Incomplete
Revision history for this message
Muqtadir (muqtxdir-m) wrote (last edit ):

Hi Daniel van Vugt,

Sorry for not sharing the complete-patch file, I generated the above patch on top of gnome-shell-40.2 package. please have a look at it.

Note: For this to work Yaru needs to be modified/patched (i.e. PR: https://github.com/ubuntu/yaru/pull/2945). will merge this PR into master once this patch lands on ubuntu

Changed in gnome-shell (Ubuntu):
status: Incomplete → Triaged
Revision history for this message
Muqtadir (muqtxdir-m) wrote :

Hi @vanvugt, could this be expected to land in ubuntu-21.10 ?

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

I don't have the power to make it happen but would recommend as a first step you should create a formal merge request to the ubuntu/master branch here:

https://salsa.debian.org/gnome-team/gnome-shell/-/tree/ubuntu/master

Revision history for this message
Sebastien Bacher (seb128) wrote :

The description of the change and why it's needed is not really clear there, you are going to need to provide more details if you want to see the changes considered, also please use a merge request as pointed out by Daniel

Revision history for this message
Muqtadir (muqtxdir-m) wrote (last edit ):

Hi @seb128 and @vanvugt,

> I don't have the power to make it happen but would recommend as a first step you should create a formal merge request to the ubuntu/master branch here:
https://salsa.debian.org/gnome-team/gnome-shell/-/tree/ubuntu/master

I've asked the Pop!_OS maintainers of gnome-shell to upstream their patch on their github issue-tracker and one of the maintainer replied that he will do so (see: https://github.com/pop-os/gnome-shell/issues/77).

>The description of the change and why it's needed is not really clear there, you are going to need to provide more details if you want to see the changes considered, also please use a merge request as pointed out by Daniel

Sorry for being vague about the reasoning and description of the issue

[Reason]
The Appearance-panel in gnome-control-center only switches GTK themes but not GNOME-Shell theme. The possibility of also switching the GNOME-Shell was mentioned in the sprint session of Yaru development during ubuntu 20.04 release cycle. (quoting from the blogpost New Ubuntu Theme in Development for 20.04: "In future, we would also like these settings to switch the theme for shell elements, such as the top bar and notification bubbles. Achieving this without requiring a logout each time will require additional work in GNOME Shell – something we are investigating" see: https://ubuntu.com/blog/new-ubuntu-theme-in-development-for-20-04)

[Impact]
Currently Yaru(light theme) is default for GTK and Yaru-dark(dark theme) is default for GNOME-Shell theme.This change would make Yaru(light theme) the default for both GTK and GNOME-Shell and give the desktop users the ability to Fully switch between both Light and Dark themes from Appearance panel out of the box without the need of using user-themes-gnome-shell-extension.

[Relevant Github discussion:]
see this discussion on Yaru's github discussions for more details: https://github.com/ubuntu/yaru/discussions/2677

[Relevant Yaru PR:]
see PR:https://github.com/ubuntu/yaru/pull/2945

Revision history for this message
Muqtadir (muqtxdir-m) wrote :

Hi just an update to the patch situation, Jeremy Soller of Pop!_OS was not able to get his salsa.debian.org account approved so instead I'll be proposing merge-request. Also removed the impish tag

tags: removed: impish
Revision history for this message
Jeremy Bícha (jbicha) wrote :

Isn't this his Salsa account?

https://salsa.debian.org/jackpot51

Revision history for this message
Muqtadir (muqtxdir-m) wrote :

I think so yes, the user-name is identical to his Github user-name

Revision history for this message
Muqtadir (muqtxdir-m) wrote :

I created the MR here: https://salsa.debian.org/gnome-team/gnome-shell/-/merge_requests/56
Please have a look at it

Revision history for this message
Muqtadir (muqtxdir-m) wrote :

hi,

could you please close this issue-bug as it was merged to ubuntu-master branch: https://salsa.debian.org/gnome-team/gnome-shell/-/blob/ubuntu/master/debian/patches/ubuntu/main-Support-loading-multiple-Yaru-theme-variants.patch by Marco.

Thank you for everyone involved with this!

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Yes commit 3f3080056b2 is in version 42~beta-1ubuntu1

Changed in gnome-shell (Ubuntu):
status: Triaged → Fix Committed
Changed in gnome-shell (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.