mate-desktop / mate-screensaver

MATE screen saver and locker
https://mate-desktop.org
GNU General Public License v2.0
48 stars 40 forks source link

Css for lock screen #271

Closed luigifab closed 2 years ago

luigifab commented 2 years ago

This is a question, how I can set styles (from my theme) for the lock screen in Mate 1.26? The gtk-inspector doesn't start, so I can't find css class names.

lock-screen

mbkma commented 2 years ago

mate-screensaver-preferences->Background Picture for lock screen for the wallpaper. The theme should match the theme set in mate-appearance-properties.

luigifab commented 2 years ago

2x yes, but I want to remove the border around the window. To do that I need a css class name or an identifier. I haven't found the css structure of this screen.

rbuj commented 2 years ago

You can override the css as follows:

mkdir -p ~/.config/gtk-3.0
cat << EOF >> ~/.config/gtk-3.0/gtk.css
.lock-dialog frame {
    border-radius: 0px;
    border-style: none;
    border-width: 0px;
}
EOF
rbuj commented 2 years ago

https://github.com/mate-desktop/mate-screensaver/blob/bc818733fbbd96a3de36f800d567e54009cc0630/data/lock-dialog-default.ui#L15

raveit65 commented 2 years ago

Take a look at our themes, ie. blue-submarine https://github.com/mate-desktop/mate-themes/blob/master/desktop-themes/Blue-Submarine/gtk-3.0/mate-applications.css#L1302 css class is .lock-dialog

luigifab commented 2 years ago

So nice, thank you very much!