18.04 - Cannot change the background color of the LOCK screen, not the Login screen












3















Good evening,



I'm trying to change some of the colours of my login screen in my Ubuntu 18.04. I followed some questions here on AskUbuntu, and edited my css files at /usr/share/gnome-shell/theme/gnome-shell.css (I'm using that configuration) - Specifically, I changed the values of .lockDialogGroup to a nicer dark gray.



My login screen is indeed now a nice dark gray instead of that hellish purple.



However, if I lock my computer without shutting down the machine, I still get a different purple gradient, which I haven't managed to change. I'm serching around but since I don't even know what to call this "behind-the-shield" screen, I can't find relevant results.



I suspect the login screen and the lock screen are two different managers altogether.



Here's a short mp4 video of me literally filming my screen, to make you understand which color I'm trying to change:



https://imgur.com/8aBWhd4



EDIT: There seems to be a discrepancy between my first-after-boot login screen, and my login-after-locking screen.



first Login screen after boot:
enter image description here



After-lock login screen:
enter image description here










share|improve this question

























  • @PRATAP Doesn't matter, I'm interested in finding where the .css that controls this gradient is located

    – Dimitris Sfounis
    Jan 6 at 13:15











  • Which desktop environment are you using? The default gnome or something else? Please edit the output of printf 'Desktop: %snSession: %sn' "$XDG_CURRENT_DESKTOP" "$GDMSESSION" into your post. as suggested here

    – Elder Geek
    Jan 14 at 20:03
















3















Good evening,



I'm trying to change some of the colours of my login screen in my Ubuntu 18.04. I followed some questions here on AskUbuntu, and edited my css files at /usr/share/gnome-shell/theme/gnome-shell.css (I'm using that configuration) - Specifically, I changed the values of .lockDialogGroup to a nicer dark gray.



My login screen is indeed now a nice dark gray instead of that hellish purple.



However, if I lock my computer without shutting down the machine, I still get a different purple gradient, which I haven't managed to change. I'm serching around but since I don't even know what to call this "behind-the-shield" screen, I can't find relevant results.



I suspect the login screen and the lock screen are two different managers altogether.



Here's a short mp4 video of me literally filming my screen, to make you understand which color I'm trying to change:



https://imgur.com/8aBWhd4



EDIT: There seems to be a discrepancy between my first-after-boot login screen, and my login-after-locking screen.



first Login screen after boot:
enter image description here



After-lock login screen:
enter image description here










share|improve this question

























  • @PRATAP Doesn't matter, I'm interested in finding where the .css that controls this gradient is located

    – Dimitris Sfounis
    Jan 6 at 13:15











  • Which desktop environment are you using? The default gnome or something else? Please edit the output of printf 'Desktop: %snSession: %sn' "$XDG_CURRENT_DESKTOP" "$GDMSESSION" into your post. as suggested here

    – Elder Geek
    Jan 14 at 20:03














3












3








3








Good evening,



I'm trying to change some of the colours of my login screen in my Ubuntu 18.04. I followed some questions here on AskUbuntu, and edited my css files at /usr/share/gnome-shell/theme/gnome-shell.css (I'm using that configuration) - Specifically, I changed the values of .lockDialogGroup to a nicer dark gray.



My login screen is indeed now a nice dark gray instead of that hellish purple.



However, if I lock my computer without shutting down the machine, I still get a different purple gradient, which I haven't managed to change. I'm serching around but since I don't even know what to call this "behind-the-shield" screen, I can't find relevant results.



I suspect the login screen and the lock screen are two different managers altogether.



Here's a short mp4 video of me literally filming my screen, to make you understand which color I'm trying to change:



https://imgur.com/8aBWhd4



EDIT: There seems to be a discrepancy between my first-after-boot login screen, and my login-after-locking screen.



first Login screen after boot:
enter image description here



After-lock login screen:
enter image description here










share|improve this question
















Good evening,



I'm trying to change some of the colours of my login screen in my Ubuntu 18.04. I followed some questions here on AskUbuntu, and edited my css files at /usr/share/gnome-shell/theme/gnome-shell.css (I'm using that configuration) - Specifically, I changed the values of .lockDialogGroup to a nicer dark gray.



My login screen is indeed now a nice dark gray instead of that hellish purple.



However, if I lock my computer without shutting down the machine, I still get a different purple gradient, which I haven't managed to change. I'm serching around but since I don't even know what to call this "behind-the-shield" screen, I can't find relevant results.



I suspect the login screen and the lock screen are two different managers altogether.



Here's a short mp4 video of me literally filming my screen, to make you understand which color I'm trying to change:



https://imgur.com/8aBWhd4



EDIT: There seems to be a discrepancy between my first-after-boot login screen, and my login-after-locking screen.



first Login screen after boot:
enter image description here



After-lock login screen:
enter image description here







18.04 themes gnome-shell lock-screen






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 6 at 14:10







Dimitris Sfounis

















asked Jan 5 at 21:46









Dimitris SfounisDimitris Sfounis

14011




14011













  • @PRATAP Doesn't matter, I'm interested in finding where the .css that controls this gradient is located

    – Dimitris Sfounis
    Jan 6 at 13:15











  • Which desktop environment are you using? The default gnome or something else? Please edit the output of printf 'Desktop: %snSession: %sn' "$XDG_CURRENT_DESKTOP" "$GDMSESSION" into your post. as suggested here

    – Elder Geek
    Jan 14 at 20:03



















  • @PRATAP Doesn't matter, I'm interested in finding where the .css that controls this gradient is located

    – Dimitris Sfounis
    Jan 6 at 13:15











  • Which desktop environment are you using? The default gnome or something else? Please edit the output of printf 'Desktop: %snSession: %sn' "$XDG_CURRENT_DESKTOP" "$GDMSESSION" into your post. as suggested here

    – Elder Geek
    Jan 14 at 20:03

















@PRATAP Doesn't matter, I'm interested in finding where the .css that controls this gradient is located

– Dimitris Sfounis
Jan 6 at 13:15





@PRATAP Doesn't matter, I'm interested in finding where the .css that controls this gradient is located

– Dimitris Sfounis
Jan 6 at 13:15













Which desktop environment are you using? The default gnome or something else? Please edit the output of printf 'Desktop: %snSession: %sn' "$XDG_CURRENT_DESKTOP" "$GDMSESSION" into your post. as suggested here

– Elder Geek
Jan 14 at 20:03





Which desktop environment are you using? The default gnome or something else? Please edit the output of printf 'Desktop: %snSession: %sn' "$XDG_CURRENT_DESKTOP" "$GDMSESSION" into your post. as suggested here

– Elder Geek
Jan 14 at 20:03










1 Answer
1






active

oldest

votes


















0














"behind-the-shield" screen as you mentioned in question is called unlock screen.



this answer is provided only for desktop session "Ubuntu"



enter image description here



if you use, desktop-session other than Ubuntu which is the default one, the style sheet that is configured in /usr/share/gnome-shell/modes/ubuntu.json may not be used. instead they may use /usr/share/gnome-shell/gnome-shell-theme.gresource which is not covered in this answer.



Disclaimer: playing with shell theme files (.css files) is very dangerous, small mistakes will stop access to the desktop session. Only tty will work. i have several times reinstalled Ubuntu in such cases. although i have successfully changed login screen background and unlock screen background, Do this at your own risk.



when Ubuntu 18.04 is freshly installed,

the login screen background can be changed by editing /etc/alternatives/gdm3.css file. This file is a linked file to /usr/share/gnome-shell/theme/ubuntu.css



enter image description here



now i have changed my login-screen background-color to green by editing /etc/alternatives/gdm3.css file.



#lockDialogGroup {
background: green url(resource:///org/gnome/shell/theme/noise-texture.png);
background-repeat: repeat; }


enter image description here



by editing this file /etc/alternatives/gdm3.css, unlock screen background also changed to green because the linked file of /etc/alternatives/gdm3.css which is /usr/share/gnome-shell/theme/ubuntu.css is configured in the file /usr/share/gnome-shell/modes/ubuntu.json



{
"parentMode": "user",
"stylesheetName": "ubuntu.css",
"enabledExtensions": ["ubuntu-dock@ubuntu.com", "ubuntu-appindicators@ubuntu.com"]
}


enter image description here



unlock screen background when it is set to "ubuntu.css" in ubuntu.json file
enter image description here



but i want my login screen background and unlock screen background to be different,



for this, copy /usr/share/gnome-shell/theme/ubuntu.css file and paste in the same folder and rename it like "my-unlock-screen.css"



enter image description here



edit /usr/share/gnome-shell/modes/ubuntu.json like below to use my-unlock-screen.css style sheet instead of ubuntu.css



{
"parentMode": "user",
"stylesheetName": "my-unlock-screen.css",
"enabledExtensions": ["ubuntu-dock@ubuntu.com", "ubuntu-appindicators@ubuntu.com"]
}


enter image description here



now i edited /usr/share/gnome-shell/theme/my-unlock-screen.css like below



#lockDialogGroup {
background: blue url(resource:///org/gnome/shell/theme/noise-texture.png);
background-repeat: repeat; }


and now unlock screen background is blue.
enter image description here



here is the link to video showing login-screen and unlock-screen with green and blue colors. https://imgur.com/6mCjd8I






share|improve this answer


























  • This does not work. As I said earlier, I've already changed the #lockDialogGroup CSS entry in my enabled .css file. It is indeed the gray color that I see in my login screen. My lock login screen is separate, and has a purple color still! When I boot up my machine, the login screen is fine and shows the color I've selected (#3f546b). Only after using Lock does this purple screen come up, and I'm beating myself trying to find the .css file that controls it.

    – Dimitris Sfounis
    Jan 6 at 13:13













  • I did, there were no visible changes, as expected. I'm using gnome-shell.css as my preferred style, not ubuntu.css

    – Dimitris Sfounis
    Jan 6 at 13:19











  • More or less. I've definitely not messed around with the styles. apart from running sudo update-alternatives --config gdm3.css while trying to fix the purple color issue. The issue was there before running update-alternatives.

    – Dimitris Sfounis
    Jan 6 at 13:23











  • It's ubuntu.css, but I've changed the #lockDialogGroup entry in that file to #0000FF to see if it changes anything, and my login screen is still not bright blue. Login screen after boot is dark gray (as per the gnome-shell.css file, and the login-after-lock screen is a background image with a purple second image, like in my original question.

    – Dimitris Sfounis
    Jan 6 at 13:31













  • Ok, let me check with update-alternative and revert back to you. by the way i am not telling that #0000FF will change login screen.. i am talking about unlock screen background only.

    – PRATAP
    Jan 6 at 13:34













Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1107277%2f18-04-cannot-change-the-background-color-of-the-lock-screen-not-the-login-scr%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














"behind-the-shield" screen as you mentioned in question is called unlock screen.



this answer is provided only for desktop session "Ubuntu"



enter image description here



if you use, desktop-session other than Ubuntu which is the default one, the style sheet that is configured in /usr/share/gnome-shell/modes/ubuntu.json may not be used. instead they may use /usr/share/gnome-shell/gnome-shell-theme.gresource which is not covered in this answer.



Disclaimer: playing with shell theme files (.css files) is very dangerous, small mistakes will stop access to the desktop session. Only tty will work. i have several times reinstalled Ubuntu in such cases. although i have successfully changed login screen background and unlock screen background, Do this at your own risk.



when Ubuntu 18.04 is freshly installed,

the login screen background can be changed by editing /etc/alternatives/gdm3.css file. This file is a linked file to /usr/share/gnome-shell/theme/ubuntu.css



enter image description here



now i have changed my login-screen background-color to green by editing /etc/alternatives/gdm3.css file.



#lockDialogGroup {
background: green url(resource:///org/gnome/shell/theme/noise-texture.png);
background-repeat: repeat; }


enter image description here



by editing this file /etc/alternatives/gdm3.css, unlock screen background also changed to green because the linked file of /etc/alternatives/gdm3.css which is /usr/share/gnome-shell/theme/ubuntu.css is configured in the file /usr/share/gnome-shell/modes/ubuntu.json



{
"parentMode": "user",
"stylesheetName": "ubuntu.css",
"enabledExtensions": ["ubuntu-dock@ubuntu.com", "ubuntu-appindicators@ubuntu.com"]
}


enter image description here



unlock screen background when it is set to "ubuntu.css" in ubuntu.json file
enter image description here



but i want my login screen background and unlock screen background to be different,



for this, copy /usr/share/gnome-shell/theme/ubuntu.css file and paste in the same folder and rename it like "my-unlock-screen.css"



enter image description here



edit /usr/share/gnome-shell/modes/ubuntu.json like below to use my-unlock-screen.css style sheet instead of ubuntu.css



{
"parentMode": "user",
"stylesheetName": "my-unlock-screen.css",
"enabledExtensions": ["ubuntu-dock@ubuntu.com", "ubuntu-appindicators@ubuntu.com"]
}


enter image description here



now i edited /usr/share/gnome-shell/theme/my-unlock-screen.css like below



#lockDialogGroup {
background: blue url(resource:///org/gnome/shell/theme/noise-texture.png);
background-repeat: repeat; }


and now unlock screen background is blue.
enter image description here



here is the link to video showing login-screen and unlock-screen with green and blue colors. https://imgur.com/6mCjd8I






share|improve this answer


























  • This does not work. As I said earlier, I've already changed the #lockDialogGroup CSS entry in my enabled .css file. It is indeed the gray color that I see in my login screen. My lock login screen is separate, and has a purple color still! When I boot up my machine, the login screen is fine and shows the color I've selected (#3f546b). Only after using Lock does this purple screen come up, and I'm beating myself trying to find the .css file that controls it.

    – Dimitris Sfounis
    Jan 6 at 13:13













  • I did, there were no visible changes, as expected. I'm using gnome-shell.css as my preferred style, not ubuntu.css

    – Dimitris Sfounis
    Jan 6 at 13:19











  • More or less. I've definitely not messed around with the styles. apart from running sudo update-alternatives --config gdm3.css while trying to fix the purple color issue. The issue was there before running update-alternatives.

    – Dimitris Sfounis
    Jan 6 at 13:23











  • It's ubuntu.css, but I've changed the #lockDialogGroup entry in that file to #0000FF to see if it changes anything, and my login screen is still not bright blue. Login screen after boot is dark gray (as per the gnome-shell.css file, and the login-after-lock screen is a background image with a purple second image, like in my original question.

    – Dimitris Sfounis
    Jan 6 at 13:31













  • Ok, let me check with update-alternative and revert back to you. by the way i am not telling that #0000FF will change login screen.. i am talking about unlock screen background only.

    – PRATAP
    Jan 6 at 13:34


















0














"behind-the-shield" screen as you mentioned in question is called unlock screen.



this answer is provided only for desktop session "Ubuntu"



enter image description here



if you use, desktop-session other than Ubuntu which is the default one, the style sheet that is configured in /usr/share/gnome-shell/modes/ubuntu.json may not be used. instead they may use /usr/share/gnome-shell/gnome-shell-theme.gresource which is not covered in this answer.



Disclaimer: playing with shell theme files (.css files) is very dangerous, small mistakes will stop access to the desktop session. Only tty will work. i have several times reinstalled Ubuntu in such cases. although i have successfully changed login screen background and unlock screen background, Do this at your own risk.



when Ubuntu 18.04 is freshly installed,

the login screen background can be changed by editing /etc/alternatives/gdm3.css file. This file is a linked file to /usr/share/gnome-shell/theme/ubuntu.css



enter image description here



now i have changed my login-screen background-color to green by editing /etc/alternatives/gdm3.css file.



#lockDialogGroup {
background: green url(resource:///org/gnome/shell/theme/noise-texture.png);
background-repeat: repeat; }


enter image description here



by editing this file /etc/alternatives/gdm3.css, unlock screen background also changed to green because the linked file of /etc/alternatives/gdm3.css which is /usr/share/gnome-shell/theme/ubuntu.css is configured in the file /usr/share/gnome-shell/modes/ubuntu.json



{
"parentMode": "user",
"stylesheetName": "ubuntu.css",
"enabledExtensions": ["ubuntu-dock@ubuntu.com", "ubuntu-appindicators@ubuntu.com"]
}


enter image description here



unlock screen background when it is set to "ubuntu.css" in ubuntu.json file
enter image description here



but i want my login screen background and unlock screen background to be different,



for this, copy /usr/share/gnome-shell/theme/ubuntu.css file and paste in the same folder and rename it like "my-unlock-screen.css"



enter image description here



edit /usr/share/gnome-shell/modes/ubuntu.json like below to use my-unlock-screen.css style sheet instead of ubuntu.css



{
"parentMode": "user",
"stylesheetName": "my-unlock-screen.css",
"enabledExtensions": ["ubuntu-dock@ubuntu.com", "ubuntu-appindicators@ubuntu.com"]
}


enter image description here



now i edited /usr/share/gnome-shell/theme/my-unlock-screen.css like below



#lockDialogGroup {
background: blue url(resource:///org/gnome/shell/theme/noise-texture.png);
background-repeat: repeat; }


and now unlock screen background is blue.
enter image description here



here is the link to video showing login-screen and unlock-screen with green and blue colors. https://imgur.com/6mCjd8I






share|improve this answer


























  • This does not work. As I said earlier, I've already changed the #lockDialogGroup CSS entry in my enabled .css file. It is indeed the gray color that I see in my login screen. My lock login screen is separate, and has a purple color still! When I boot up my machine, the login screen is fine and shows the color I've selected (#3f546b). Only after using Lock does this purple screen come up, and I'm beating myself trying to find the .css file that controls it.

    – Dimitris Sfounis
    Jan 6 at 13:13













  • I did, there were no visible changes, as expected. I'm using gnome-shell.css as my preferred style, not ubuntu.css

    – Dimitris Sfounis
    Jan 6 at 13:19











  • More or less. I've definitely not messed around with the styles. apart from running sudo update-alternatives --config gdm3.css while trying to fix the purple color issue. The issue was there before running update-alternatives.

    – Dimitris Sfounis
    Jan 6 at 13:23











  • It's ubuntu.css, but I've changed the #lockDialogGroup entry in that file to #0000FF to see if it changes anything, and my login screen is still not bright blue. Login screen after boot is dark gray (as per the gnome-shell.css file, and the login-after-lock screen is a background image with a purple second image, like in my original question.

    – Dimitris Sfounis
    Jan 6 at 13:31













  • Ok, let me check with update-alternative and revert back to you. by the way i am not telling that #0000FF will change login screen.. i am talking about unlock screen background only.

    – PRATAP
    Jan 6 at 13:34
















0












0








0







"behind-the-shield" screen as you mentioned in question is called unlock screen.



this answer is provided only for desktop session "Ubuntu"



enter image description here



if you use, desktop-session other than Ubuntu which is the default one, the style sheet that is configured in /usr/share/gnome-shell/modes/ubuntu.json may not be used. instead they may use /usr/share/gnome-shell/gnome-shell-theme.gresource which is not covered in this answer.



Disclaimer: playing with shell theme files (.css files) is very dangerous, small mistakes will stop access to the desktop session. Only tty will work. i have several times reinstalled Ubuntu in such cases. although i have successfully changed login screen background and unlock screen background, Do this at your own risk.



when Ubuntu 18.04 is freshly installed,

the login screen background can be changed by editing /etc/alternatives/gdm3.css file. This file is a linked file to /usr/share/gnome-shell/theme/ubuntu.css



enter image description here



now i have changed my login-screen background-color to green by editing /etc/alternatives/gdm3.css file.



#lockDialogGroup {
background: green url(resource:///org/gnome/shell/theme/noise-texture.png);
background-repeat: repeat; }


enter image description here



by editing this file /etc/alternatives/gdm3.css, unlock screen background also changed to green because the linked file of /etc/alternatives/gdm3.css which is /usr/share/gnome-shell/theme/ubuntu.css is configured in the file /usr/share/gnome-shell/modes/ubuntu.json



{
"parentMode": "user",
"stylesheetName": "ubuntu.css",
"enabledExtensions": ["ubuntu-dock@ubuntu.com", "ubuntu-appindicators@ubuntu.com"]
}


enter image description here



unlock screen background when it is set to "ubuntu.css" in ubuntu.json file
enter image description here



but i want my login screen background and unlock screen background to be different,



for this, copy /usr/share/gnome-shell/theme/ubuntu.css file and paste in the same folder and rename it like "my-unlock-screen.css"



enter image description here



edit /usr/share/gnome-shell/modes/ubuntu.json like below to use my-unlock-screen.css style sheet instead of ubuntu.css



{
"parentMode": "user",
"stylesheetName": "my-unlock-screen.css",
"enabledExtensions": ["ubuntu-dock@ubuntu.com", "ubuntu-appindicators@ubuntu.com"]
}


enter image description here



now i edited /usr/share/gnome-shell/theme/my-unlock-screen.css like below



#lockDialogGroup {
background: blue url(resource:///org/gnome/shell/theme/noise-texture.png);
background-repeat: repeat; }


and now unlock screen background is blue.
enter image description here



here is the link to video showing login-screen and unlock-screen with green and blue colors. https://imgur.com/6mCjd8I






share|improve this answer















"behind-the-shield" screen as you mentioned in question is called unlock screen.



this answer is provided only for desktop session "Ubuntu"



enter image description here



if you use, desktop-session other than Ubuntu which is the default one, the style sheet that is configured in /usr/share/gnome-shell/modes/ubuntu.json may not be used. instead they may use /usr/share/gnome-shell/gnome-shell-theme.gresource which is not covered in this answer.



Disclaimer: playing with shell theme files (.css files) is very dangerous, small mistakes will stop access to the desktop session. Only tty will work. i have several times reinstalled Ubuntu in such cases. although i have successfully changed login screen background and unlock screen background, Do this at your own risk.



when Ubuntu 18.04 is freshly installed,

the login screen background can be changed by editing /etc/alternatives/gdm3.css file. This file is a linked file to /usr/share/gnome-shell/theme/ubuntu.css



enter image description here



now i have changed my login-screen background-color to green by editing /etc/alternatives/gdm3.css file.



#lockDialogGroup {
background: green url(resource:///org/gnome/shell/theme/noise-texture.png);
background-repeat: repeat; }


enter image description here



by editing this file /etc/alternatives/gdm3.css, unlock screen background also changed to green because the linked file of /etc/alternatives/gdm3.css which is /usr/share/gnome-shell/theme/ubuntu.css is configured in the file /usr/share/gnome-shell/modes/ubuntu.json



{
"parentMode": "user",
"stylesheetName": "ubuntu.css",
"enabledExtensions": ["ubuntu-dock@ubuntu.com", "ubuntu-appindicators@ubuntu.com"]
}


enter image description here



unlock screen background when it is set to "ubuntu.css" in ubuntu.json file
enter image description here



but i want my login screen background and unlock screen background to be different,



for this, copy /usr/share/gnome-shell/theme/ubuntu.css file and paste in the same folder and rename it like "my-unlock-screen.css"



enter image description here



edit /usr/share/gnome-shell/modes/ubuntu.json like below to use my-unlock-screen.css style sheet instead of ubuntu.css



{
"parentMode": "user",
"stylesheetName": "my-unlock-screen.css",
"enabledExtensions": ["ubuntu-dock@ubuntu.com", "ubuntu-appindicators@ubuntu.com"]
}


enter image description here



now i edited /usr/share/gnome-shell/theme/my-unlock-screen.css like below



#lockDialogGroup {
background: blue url(resource:///org/gnome/shell/theme/noise-texture.png);
background-repeat: repeat; }


and now unlock screen background is blue.
enter image description here



here is the link to video showing login-screen and unlock-screen with green and blue colors. https://imgur.com/6mCjd8I







share|improve this answer














share|improve this answer



share|improve this answer








edited Jan 15 at 4:24

























answered Jan 6 at 9:00









PRATAPPRATAP

2,6652627




2,6652627













  • This does not work. As I said earlier, I've already changed the #lockDialogGroup CSS entry in my enabled .css file. It is indeed the gray color that I see in my login screen. My lock login screen is separate, and has a purple color still! When I boot up my machine, the login screen is fine and shows the color I've selected (#3f546b). Only after using Lock does this purple screen come up, and I'm beating myself trying to find the .css file that controls it.

    – Dimitris Sfounis
    Jan 6 at 13:13













  • I did, there were no visible changes, as expected. I'm using gnome-shell.css as my preferred style, not ubuntu.css

    – Dimitris Sfounis
    Jan 6 at 13:19











  • More or less. I've definitely not messed around with the styles. apart from running sudo update-alternatives --config gdm3.css while trying to fix the purple color issue. The issue was there before running update-alternatives.

    – Dimitris Sfounis
    Jan 6 at 13:23











  • It's ubuntu.css, but I've changed the #lockDialogGroup entry in that file to #0000FF to see if it changes anything, and my login screen is still not bright blue. Login screen after boot is dark gray (as per the gnome-shell.css file, and the login-after-lock screen is a background image with a purple second image, like in my original question.

    – Dimitris Sfounis
    Jan 6 at 13:31













  • Ok, let me check with update-alternative and revert back to you. by the way i am not telling that #0000FF will change login screen.. i am talking about unlock screen background only.

    – PRATAP
    Jan 6 at 13:34





















  • This does not work. As I said earlier, I've already changed the #lockDialogGroup CSS entry in my enabled .css file. It is indeed the gray color that I see in my login screen. My lock login screen is separate, and has a purple color still! When I boot up my machine, the login screen is fine and shows the color I've selected (#3f546b). Only after using Lock does this purple screen come up, and I'm beating myself trying to find the .css file that controls it.

    – Dimitris Sfounis
    Jan 6 at 13:13













  • I did, there were no visible changes, as expected. I'm using gnome-shell.css as my preferred style, not ubuntu.css

    – Dimitris Sfounis
    Jan 6 at 13:19











  • More or less. I've definitely not messed around with the styles. apart from running sudo update-alternatives --config gdm3.css while trying to fix the purple color issue. The issue was there before running update-alternatives.

    – Dimitris Sfounis
    Jan 6 at 13:23











  • It's ubuntu.css, but I've changed the #lockDialogGroup entry in that file to #0000FF to see if it changes anything, and my login screen is still not bright blue. Login screen after boot is dark gray (as per the gnome-shell.css file, and the login-after-lock screen is a background image with a purple second image, like in my original question.

    – Dimitris Sfounis
    Jan 6 at 13:31













  • Ok, let me check with update-alternative and revert back to you. by the way i am not telling that #0000FF will change login screen.. i am talking about unlock screen background only.

    – PRATAP
    Jan 6 at 13:34



















This does not work. As I said earlier, I've already changed the #lockDialogGroup CSS entry in my enabled .css file. It is indeed the gray color that I see in my login screen. My lock login screen is separate, and has a purple color still! When I boot up my machine, the login screen is fine and shows the color I've selected (#3f546b). Only after using Lock does this purple screen come up, and I'm beating myself trying to find the .css file that controls it.

– Dimitris Sfounis
Jan 6 at 13:13







This does not work. As I said earlier, I've already changed the #lockDialogGroup CSS entry in my enabled .css file. It is indeed the gray color that I see in my login screen. My lock login screen is separate, and has a purple color still! When I boot up my machine, the login screen is fine and shows the color I've selected (#3f546b). Only after using Lock does this purple screen come up, and I'm beating myself trying to find the .css file that controls it.

– Dimitris Sfounis
Jan 6 at 13:13















I did, there were no visible changes, as expected. I'm using gnome-shell.css as my preferred style, not ubuntu.css

– Dimitris Sfounis
Jan 6 at 13:19





I did, there were no visible changes, as expected. I'm using gnome-shell.css as my preferred style, not ubuntu.css

– Dimitris Sfounis
Jan 6 at 13:19













More or less. I've definitely not messed around with the styles. apart from running sudo update-alternatives --config gdm3.css while trying to fix the purple color issue. The issue was there before running update-alternatives.

– Dimitris Sfounis
Jan 6 at 13:23





More or less. I've definitely not messed around with the styles. apart from running sudo update-alternatives --config gdm3.css while trying to fix the purple color issue. The issue was there before running update-alternatives.

– Dimitris Sfounis
Jan 6 at 13:23













It's ubuntu.css, but I've changed the #lockDialogGroup entry in that file to #0000FF to see if it changes anything, and my login screen is still not bright blue. Login screen after boot is dark gray (as per the gnome-shell.css file, and the login-after-lock screen is a background image with a purple second image, like in my original question.

– Dimitris Sfounis
Jan 6 at 13:31







It's ubuntu.css, but I've changed the #lockDialogGroup entry in that file to #0000FF to see if it changes anything, and my login screen is still not bright blue. Login screen after boot is dark gray (as per the gnome-shell.css file, and the login-after-lock screen is a background image with a purple second image, like in my original question.

– Dimitris Sfounis
Jan 6 at 13:31















Ok, let me check with update-alternative and revert back to you. by the way i am not telling that #0000FF will change login screen.. i am talking about unlock screen background only.

– PRATAP
Jan 6 at 13:34







Ok, let me check with update-alternative and revert back to you. by the way i am not telling that #0000FF will change login screen.. i am talking about unlock screen background only.

– PRATAP
Jan 6 at 13:34




















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1107277%2f18-04-cannot-change-the-background-color-of-the-lock-screen-not-the-login-scr%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How to change which sound is reproduced for terminal bell?

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

Can I use Tabulator js library in my java Spring + Thymeleaf project?