jovanlanik / gtklock

GTK-based lockscreen for Wayland
GNU General Public License v3.0
347 stars 23 forks source link

[question] Can i chang the password box and hide the button of unlock? #112

Open knm100 opened 3 weeks ago

knm100 commented 3 weeks ago

I would like to get a smaller passwd box and hide the button of unlock and the word of password. what should I add to css file to implementa it? swappy-20241106-182021

knm100 commented 3 weeks ago

I have shortened the length of the password box. by commenting out something of xml file, I can hide the button of unlock and the word of password . but the gtklock output some GTK Warring in termnial.I should do something more to remove these warnings.

I would like to chang the blue background of the botton to another color, I've tried a lot of CSS Node names like #unlock-botton, #unlock-botton image, but there doesn't seem to be a way to change it.

jovanlanik commented 2 weeks ago

Can you show the gtk warnings you get?

jovanlanik commented 2 weeks ago

Also to change the button color use this css:

#unlock-button {
    background-image: none;
    background-color: red;
}
knm100 commented 2 weeks ago

Can you show the gtk warnings you get?

The gtk warnings is as follows gtk-warnings.txt

This is my xml file gtklockui.xml.txt

knm100 commented 2 weeks ago

the following css code didn't change the color of border of input field. is there another css node to contorl it?

input-label {

color: #efefef;
border-color: green;

} swappy-20241111-224209

jovanlanik commented 2 weeks ago

Use this:

#input-field:focus {
    border-color: darkred;
    box-shadow: 0 0 0 1px crimson;
}
knm100 commented 2 weeks ago

It worked, thank you!