updating how the configs config
This commit is contained in:
parent
7311597752
commit
f5f047a6f5
6 changed files with 41 additions and 24 deletions
|
@ -14,6 +14,8 @@ function NotificationIcon({ app_entry, app_icon, image }) {
|
|||
let icon = "dialog-information-symbolic"
|
||||
if (Utils.lookUpIcon(app_icon))
|
||||
icon = app_icon
|
||||
else
|
||||
icon = "auth-fingerprint-symbolic"
|
||||
|
||||
if (app_entry && Utils.lookUpIcon(app_entry))
|
||||
icon = app_entry
|
||||
|
@ -75,6 +77,7 @@ function Notification(n) {
|
|||
{
|
||||
class_name: `notification ${n.urgency}`,
|
||||
vertical: true,
|
||||
spacing: 0,
|
||||
},
|
||||
Widget.Box([
|
||||
icon,
|
||||
|
@ -92,6 +95,7 @@ function Notification(n) {
|
|||
export function NotificationPopups(monitor = 0) {
|
||||
const list = Widget.Box({
|
||||
vertical: true,
|
||||
spacing: 4,
|
||||
children: notifications.popups.map(Notification),
|
||||
})
|
||||
|
||||
|
@ -114,7 +118,7 @@ export function NotificationPopups(monitor = 0) {
|
|||
class_name: "notification-popups",
|
||||
anchor: ["bottom", "right"],
|
||||
child: Widget.Box({
|
||||
css: "min-width: 2px; min-height: 2px;",
|
||||
// css: "min-width: 2px; min-height: 2px;",
|
||||
class_name: "notifications",
|
||||
vertical: true,
|
||||
child: list,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue