Revert "feat: fade-in animation for panel and wallpaper windows"

This reverts commit 4a2bbb3e98adfeded7fa88332e60e1ab3e3b14b0.
This commit is contained in:
nevaforget 2026-03-27 15:12:26 +01:00
parent 4a2bbb3e98
commit 7de3737a61
4 changed files with 2 additions and 15 deletions

View File

@ -4,7 +4,7 @@
# Maintainer: Dominik Kressler
pkgname=moonlock-git
pkgver=0.3.0.r1.gfe6421c
pkgver=0.2.0.r0.g7cee4f4
pkgrel=1
pkgdesc="A secure Wayland lockscreen with GTK4, PAM and fingerprint support"
arch=('any')

View File

@ -53,9 +53,6 @@ class LockscreenWindow(Gtk.ApplicationWindow):
self._setup_keyboard()
self._password_entry.grab_focus()
# Fade-in after window is mapped
self.connect("map", self._on_map_fade_in)
# Start fingerprint listener if available (only once across shared instances)
if self._fp_available and not self._fp_listener._running:
self._fp_listener.start(
@ -64,10 +61,6 @@ class LockscreenWindow(Gtk.ApplicationWindow):
on_failure=self._on_fingerprint_failure,
)
def _on_map_fade_in(self, widget: Gtk.Widget) -> None:
"""Trigger fade-in once the window is visible."""
GLib.idle_add(lambda: self.add_css_class("visible") or GLib.SOURCE_REMOVE)
def _build_ui(self) -> None:
"""Build the lockscreen layout."""
# Main overlay for background + centered content

View File

@ -6,12 +6,6 @@ window.lockscreen {
background-color: #1a1a2e;
background-size: cover;
background-position: center;
opacity: 0;
transition: opacity 350ms ease-in;
}
window.lockscreen.visible {
opacity: 1;
}
/* Central login area */

2
uv.lock generated
View File

@ -4,7 +4,7 @@ requires-python = ">=3.11"
[[package]]
name = "moonlock"
version = "0.3.0"
version = "0.2.0"
source = { editable = "." }
dependencies = [
{ name = "pygobject" },