♻️ refactor(widget/notification): remove unused variable, use latest pango instead of specifying 1.0

This commit is contained in:
retrozinndev
2025-06-08 16:47:10 -03:00
parent 316b7c840e
commit c4f6dba77c
2 changed files with 21 additions and 23 deletions
+20 -20
View File
@@ -1,26 +1,26 @@
// SCSS Variables
// Generated by 'wal'
$wallpaper: "/home/joaov/wallpapers/Miku Balloons.jpg";
$wallpaper: "/home/joaov/wallpapers/Kagamine Rin Yellow Tapes.png";
// Special
$background: #503442;
$foreground: #d3cccf;
$cursor: #d3cccf;
$background: #190b14;
$foreground: #c5c2c4;
$cursor: #c5c2c4;
// Colors
$color0: #503442;
$color1: #43788f;
$color2: #24699f;
$color3: #487aa8;
$color4: #8e8883;
$color5: #6f7ba0;
$color6: #668aab;
$color7: #ada5a9;
$color8: #907784;
$color9: #5AA0BF;
$color10: #318CD5;
$color11: #60A3E0;
$color12: #BEB6AF;
$color13: #95A4D6;
$color14: #88B8E4;
$color15: #d3cccf;
$color0: #190b14;
$color1: #905027;
$color2: #685345;
$color3: #766b0c;
$color4: #a78117;
$color5: #ad9527;
$color6: #425c6e;
$color7: #998e95;
$color8: #6e5a67;
$color9: #C06B35;
$color10: #8B6F5D;
$color11: #9E8F11;
$color12: #DFAC1F;
$color13: #E7C735;
$color14: #597B93;
$color15: #c5c2c4;
+1 -3
View File
@@ -4,11 +4,9 @@ import { Separator } from "./Separator";
import { HistoryNotification, Notifications } from "../scripts/notifications";
import { GLib } from "astal";
import { getAppIcon } from "../scripts/apps";
import Pango from "gi://Pango?version=1.0";
import Pango from "gi://Pango";
export let NOTIFICATION_MAX_WORD_CHAR_SIZE = 25;
function getNotificationImage(notif: AstalNotifd.Notification|HistoryNotification): (string|undefined) {
const img = notif.image || notif.appIcon;