-
Notifications
You must be signed in to change notification settings - Fork 54
[REQUEST] Can we get a .gresource file? #98
Comments
What is the purpose of it? You can create a PR for it and we might merge it. :) |
You say the PR is ready? I currently have very little time to test. |
yep - PR is ready for testing. |
The gnome-shell-theme.gresource file is is found in /usr/share/gnome-shell. This *.gresource file is used to theme the GDM Login/Lock Screens and to theme the Gnome Top-bar and the Gnome Dash. Usually, you would want to keep this file under /usr/share/themes/Arc/gnome-shell or /usr/share/themes/Arc-Dark/gnome-shell, so the end user can manually move it into /usr/share/gnome-shell, if he/she wants. I looked at #29, but that talks about "pre-compilation", so I wasn't sure if it is the same thing as what I mentioned above?. Is there a plan to introduce an Arc Theme version of gnome-shell-theme.gresource file? |
#29 was only about compiling .gresource for the gtk3 theme. I can take a look if the same could be achieved with the gnome-shell theme. Any idea if it'd be really necessary to copy the gresource to Also, please let me know If you happen know any other shell themes where this is implemented, and I could have a glance at. |
Gnome shell looks for a file named " However, Arc should only provide the Gnome Shell currently doesn't provide a mechanism to manage multiple GDM themes, so advanced users who want a holistic look to their OS can manually copy this file into Examples:
|
@PJSingh5000 Thanks for the detailed explanation. That really helps a lot. I think this should be fairly simple to implement, and a nice to have for making uniform GDM and gnome-shell lock screen look possible. I can have a go at it, once I get some more pressing work out of the way. |
Any updates on this? |
Actually, instead of a We can always easily generate the The file Then the corresponding Arc
Arc-Darker
Arc-Dark
|
Isnt this autogenerated on ArchLinux? I mean, those files do not exist, but does anyone know why? |
NicoHood, I'm not clear what you are asking?... GSettings (dconf) schema is different than a Gnome-Shell knows reads the The default ...If I didn't understand your question, I apologize. |
I dont understand this whole thing, I am possibly wrong. I just knew archlinux does some generation and I was wondering if we cant solve this with the OS itself. So how do we finally solve this issue? Has anyone got a solution? If so, please open a PR :) |
I don't have experience with creating PRs, but I'm willing to take a crack at it. First, I would like some feedback on the XML at the end of this post. I think it needs a little "tweaking."
Here are the steps. Please test and give me some feedback? (1) Save the XML file at the end of this post as...
(2) Compile it...
(3) Backup original...
(4) Use the new Arc Theme version for the top bar, dash, lock screen, and GDM screen. (We simply create a link to the new gresource file).
(Creating a link is useful because, if you want to revert to the original Adwaita theme, simply point the link to the backed-up Note: On Ubuntu, the following is needed for GDM to use the Arc theme. (I don't think this is necessary for Arch, Fedora, or Suse).
(Creating a link is useful because, if you want to revert to the original Adwaita theme for GDM, simply point the link to the backed-up (5) Restart gnome-shell-theme.gresource.xml
|
Quick note: make sure package |
I need some help...
Please see the attached screen shots to see what I mean. I think these issues may be due to the Would someone folks please help track down and fix these three issues? |
To set the Arc-Dark theme to the GDM shell, I used this script in a pacman hook. It builds the xml file, compiles the .gresource and then make the symlink to it #!/bin/bash
BASE_DIR=/usr/share/themes/Arc-Dark/gnome-shell
FILE_XML=$BASE_DIR/gnome-shell-theme.gresource.xml
FILE_CSS=$BASE_DIR/gnome-shell.css
COMMON_ASSETS_DIR=$BASE_DIR/common-assets
DARK_ASSETS_DIR=$BASE_DIR/dark-assets
OUTPUT_GRESOURCE_FILE=$BASE_DIR/gnome-shell-theme.gresource
GDM_GRESOURCE_FILE=/usr/share/gnome-shell/gnome-shell-theme.gresource
PREFIX=$BASE_DIR/
# DELETE PREVIOUS
rm -rf $FILE_XML
rm -rf $GDM_GRESOURCE_FILE
# HEAD
/bin/cat <<EOM >>$FILE_XML
<?xml version="1.0" encoding="UTF-8"?>
<gresources>
<gresource prefix="/org/gnome/shell/theme">
EOM
#BODY
find $COMMON_ASSETS_DIR -type f | while read line; do
echo -e "\t\t<file>${line#$PREFIX}</file>" >> $FILE_XML
done
echo -e "\t\t<file>${FILE_CSS#$PREFIX}</file>" >> $FILE_XML
find $DARK_ASSETS_DIR -type f | while read line; do
echo -e "\t\t<file>${line#$PREFIX}</file>" >> $FILE_XML
done
# TAIL
/bin/cat <<EOM >>$FILE_XML
</gresource>
</gresources>
EOM
# COMPILE RESOURCES
cd $BASE_DIR
sudo glib-compile-resources --target=$OUTPUT_GRESOURCE_FILE $FILE_XML
# CREATE THE SYMBOLIC LINK
sudo ln -sf $OUTPUT_GRESOURCE_FILE $GDM_GRESOURCE_FILE |
I noticed there's no
gnome-shell-theme.gresource
norgresource.xml
file.Could we get (at least one of) those?
The text was updated successfully, but these errors were encountered: