mirror of
https://github.com/tuxdotrs/tpanel.git
synced 2025-10-10 04:41:55 +05:30
refactor(notifications): improve notification UX
This commit is contained in:
@@ -12,6 +12,16 @@ window.notifications {
|
||||
min-width: 20rem;
|
||||
|
||||
.header {
|
||||
.close {
|
||||
padding: 10px;
|
||||
background: $inactive-color;
|
||||
border-radius: $rounded;
|
||||
|
||||
&:hover {
|
||||
background: $bg-color;
|
||||
}
|
||||
}
|
||||
|
||||
.app-icon {
|
||||
-gtk-icon-size: 2rem;
|
||||
}
|
||||
|
@@ -57,7 +57,11 @@ export const Notification = ({ n }: { n: AstalNotifd.Notification }) => {
|
||||
label={n.appName || "Unknown"}
|
||||
/>
|
||||
<label class="time" hexpand halign={END} label={time(n.time)} />
|
||||
<button onClicked={() => n.dismiss()}>
|
||||
<button
|
||||
class="close"
|
||||
onClicked={() => n.dismiss()}
|
||||
cursor={Gdk.Cursor.new_from_name("pointer", null)}
|
||||
>
|
||||
<image iconName="window-close-symbolic" />
|
||||
</button>
|
||||
</box>
|
||||
|
Reference in New Issue
Block a user