♻️ refactor(widget/notification): remove unused variable, use latest pango instead of specifying 1.0
This commit is contained in:
+20
-20
@@ -1,26 +1,26 @@
|
|||||||
// SCSS Variables
|
// SCSS Variables
|
||||||
// Generated by 'wal'
|
// Generated by 'wal'
|
||||||
$wallpaper: "/home/joaov/wallpapers/Miku Balloons.jpg";
|
$wallpaper: "/home/joaov/wallpapers/Kagamine Rin Yellow Tapes.png";
|
||||||
|
|
||||||
// Special
|
// Special
|
||||||
$background: #503442;
|
$background: #190b14;
|
||||||
$foreground: #d3cccf;
|
$foreground: #c5c2c4;
|
||||||
$cursor: #d3cccf;
|
$cursor: #c5c2c4;
|
||||||
|
|
||||||
// Colors
|
// Colors
|
||||||
$color0: #503442;
|
$color0: #190b14;
|
||||||
$color1: #43788f;
|
$color1: #905027;
|
||||||
$color2: #24699f;
|
$color2: #685345;
|
||||||
$color3: #487aa8;
|
$color3: #766b0c;
|
||||||
$color4: #8e8883;
|
$color4: #a78117;
|
||||||
$color5: #6f7ba0;
|
$color5: #ad9527;
|
||||||
$color6: #668aab;
|
$color6: #425c6e;
|
||||||
$color7: #ada5a9;
|
$color7: #998e95;
|
||||||
$color8: #907784;
|
$color8: #6e5a67;
|
||||||
$color9: #5AA0BF;
|
$color9: #C06B35;
|
||||||
$color10: #318CD5;
|
$color10: #8B6F5D;
|
||||||
$color11: #60A3E0;
|
$color11: #9E8F11;
|
||||||
$color12: #BEB6AF;
|
$color12: #DFAC1F;
|
||||||
$color13: #95A4D6;
|
$color13: #E7C735;
|
||||||
$color14: #88B8E4;
|
$color14: #597B93;
|
||||||
$color15: #d3cccf;
|
$color15: #c5c2c4;
|
||||||
|
|||||||
@@ -4,11 +4,9 @@ import { Separator } from "./Separator";
|
|||||||
import { HistoryNotification, Notifications } from "../scripts/notifications";
|
import { HistoryNotification, Notifications } from "../scripts/notifications";
|
||||||
import { GLib } from "astal";
|
import { GLib } from "astal";
|
||||||
import { getAppIcon } from "../scripts/apps";
|
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) {
|
function getNotificationImage(notif: AstalNotifd.Notification|HistoryNotification): (string|undefined) {
|
||||||
const img = notif.image || notif.appIcon;
|
const img = notif.image || notif.appIcon;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user