Fixed Mistakes by ai

This commit is contained in:
tr1x_em committed 2025-08-02 21:43:07 +05:30
1 parent 1241d2465e
commit ac22fef99e
6 files changed
+29 -15

No files matched your search

+1
View File
@@ -13,3 +13,4 @@ config/hypr/colors.conf
fabric/** fabric/**
fabric/ fabric/
# styles/colors.css # styles/colors.css
.aider*
+20 -10
View File
@@ -405,7 +405,7 @@ class NotificationState:
HIDING = 2 HIDING = 2
class NotificationCenter(Window): class ModusNoti(Window):
def __init__(self): def __init__(self):
self._server = notification_service self._server = notification_service
self.notifications = Box( self.notifications = Box(
@@ -472,21 +472,28 @@ class NotificationCenter(Window):
def _process_notification_queue(self): def _process_notification_queue(self):
# If we're currently showing a notification and there's a new one in queue # If we're currently showing a notification and there's a new one in queue
if (self.notification_state == NotificationState.SHOWING and if (
self.current_notification and self.notification_state == NotificationState.SHOWING
self.notification_queue): and self.current_notification
and self.notification_queue
):
# Start hiding the current notification to make room for the new one # Start hiding the current notification to make room for the new one
self._start_hiding_current_notification() self._start_hiding_current_notification()
elif self.notification_state == NotificationState.IDLE and self.notification_queue: elif (
self.notification_state == NotificationState.IDLE
and self.notification_queue
):
# If we're idle and have notifications in queue, show the next one # If we're idle and have notifications in queue, show the next one
self._show_next_notification() self._show_next_notification()
def _start_hiding_current_notification(self): def _start_hiding_current_notification(self):
if (self.current_notification and if (
self.notification_state == NotificationState.SHOWING and self.current_notification
not self.current_notification._is_closing): and self.notification_state == NotificationState.SHOWING
and not self.current_notification._is_closing
):
self.notification_state = NotificationState.HIDING self.notification_state = NotificationState.HIDING
@@ -497,7 +504,10 @@ class NotificationCenter(Window):
pass pass
def _show_next_notification(self): def _show_next_notification(self):
if not self.notification_queue or self.notification_state != NotificationState.IDLE: if (
not self.notification_queue
or self.notification_state != NotificationState.IDLE
):
return return
notification = self.notification_queue.pop(0) notification = self.notification_queue.pop(0)
@@ -554,7 +564,7 @@ class NotificationCenter(Window):
if self.notification_queue: if self.notification_queue:
self._transition_timer_id = GLib.timeout_add( self._transition_timer_id = GLib.timeout_add(
50, # Very short delay for seamless transitions 50, # Very short delay for seamless transitions
lambda: self._show_next_notification() or False lambda: self._show_next_notification() or False,
) )
def show_next_notification(self): def show_next_notification(self):
+2 -1
View File
@@ -1,5 +1,6 @@
#about-menu { #about-menu {
background-color: alpha(#001, 0.3); background-color: alpha(#000, 0.34);
box-shadow: inset 0 -0.5px 0 .5px alpha(#555, 0.7), inset 0 0.5px 0 .5px alpha(#777, 0.7); box-shadow: inset 0 -0.5px 0 .5px alpha(#555, 0.7), inset 0 0.5px 0 .5px alpha(#777, 0.7);
border: 1px solid alpha(#111, 0.3); border: 1px solid alpha(#111, 0.3);
border-top: none; border-top: none;
+2 -1
View File
@@ -1,5 +1,6 @@
#noti-center-box { #noti-center-box {
background-color: alpha(#001, 0.3); background-color: alpha(#fff, 0.09);
border: 1px solid alpha(#111, 0.3); border: 1px solid alpha(#111, 0.3);
border-radius: 16px; border-radius: 16px;
padding: 20px; padding: 20px;
+1 -1
View File
@@ -1,5 +1,5 @@
#osd { #osd {
background-color: alpha(#000, 0.03); background-color: alpha(#fff, 0.09);
padding: 12px 20px; padding: 12px 20px;
margin: 70px; margin: 70px;
min-height: 200px; min-height: 200px;
+3 -2
View File
@@ -1,7 +1,8 @@
#panel { #panel {
background-color: alpha(#010101, 0.1); background-color: alpha(#fff, 0.05);
border-bottom: 1px solid alpha(#010101, 0.025); border-bottom: 1px solid alpha(#010101, 0.025);
margin-top: -4; margin-top: -4px;
margin-bottom: -4px; margin-bottom: -4px;
transition: all 120ms ease-in-out; transition: all 120ms ease-in-out;
} }