Merge branch 'retrozinndev:ryo' into ryo
This commit is contained in:
@@ -169,6 +169,46 @@ in their source link.
|
|||||||
- Source: [Alpha Coders](https://wall.alphacoders.com/big.php?i=593482)
|
- Source: [Alpha Coders](https://wall.alphacoders.com/big.php?i=593482)
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>
|
||||||
|
<b>Gumi Forest Sunlight</b>
|
||||||
|
</summary>
|
||||||
|
|
||||||
|
<img src="wallpapers/Gumi Forest Sunlight.jpg"></img>
|
||||||
|
|
||||||
|
- Source: [Alpha Coders](https://wall.alphacoders.com/big.php?i=930443)
|
||||||
|
</details>
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>
|
||||||
|
<b>Miku Balloons</b>
|
||||||
|
</summary>
|
||||||
|
|
||||||
|
<img src="wallpapers/Miku Balloons.jpg"></img>
|
||||||
|
|
||||||
|
- Source: [Alpha Coders](https://wall.alphacoders.com/big.php?i=768576)
|
||||||
|
</details>
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>
|
||||||
|
<b>Miku Green Hair Glasses</b>
|
||||||
|
</summary>
|
||||||
|
|
||||||
|
<img src="wallpapers/Miku Green Hair Glasses.png"></img>
|
||||||
|
|
||||||
|
- Source: [Alpha Coders](https://wall.alphacoders.com/big.php?i=858278)
|
||||||
|
</details>
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>
|
||||||
|
<b>Kagamine Rin Yellow Tapes</b>
|
||||||
|
</summary>
|
||||||
|
|
||||||
|
<img src="wallpapers/Kagamine Rin Yellow Tapes.png"></img>
|
||||||
|
|
||||||
|
- Source: [Alpha Coders](https://wall.alphacoders.com/big.php?i=1292852)
|
||||||
|
</details>
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>
|
<summary>
|
||||||
<b>Gumi VOCALOID</b>
|
<b>Gumi VOCALOID</b>
|
||||||
|
|||||||
@@ -39,11 +39,17 @@ const plugins = new Set<Runner.Plugin>();
|
|||||||
|
|
||||||
export function close() { instance?.close(); }
|
export function close() { instance?.close(); }
|
||||||
|
|
||||||
export function regExMatch(search: string, item: string): boolean {
|
export function regExMatch(search: string, item: (string|number)): boolean {
|
||||||
search = search.replace(/[\\^$.*?()[\]{}|]/g, "\\$&");
|
search = search.replace(/[\\^$.*?()[\]{}|]/g, "\\$&");
|
||||||
|
|
||||||
|
if(typeof item === "number")
|
||||||
return new RegExp(`${search.split('').map(c =>
|
return new RegExp(`${search.split('').map(c =>
|
||||||
`.*(${c.toLowerCase()}|${c.toUpperCase()}).*`).join('')}`
|
`.*${c}.*`).join('')}`,
|
||||||
).test(item);
|
"g").test(item.toString());
|
||||||
|
|
||||||
|
return new RegExp(`${search.split('').map(c =>
|
||||||
|
`.*${c}.*`).join('')}`,
|
||||||
|
"gi").test(item);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
.time {
|
.time {
|
||||||
font-size: 128px;
|
font-size: 128px;
|
||||||
font-weight: 900;
|
font-weight: 900;
|
||||||
|
color: colors.$fg-primary;
|
||||||
text-shadow: 1px 1px 2px colors.$bg-translucent;
|
text-shadow: 1px 1px 2px colors.$bg-translucent;
|
||||||
}
|
}
|
||||||
.date {
|
.date {
|
||||||
|
|||||||
+20
-20
@@ -1,26 +1,26 @@
|
|||||||
// SCSS Variables
|
// SCSS Variables
|
||||||
// Generated by 'wal'
|
// Generated by 'wal'
|
||||||
$wallpaper: "/home/joaov/wallpapers/Nijika Train.jpeg";
|
$wallpaper: "/home/joaov/wallpapers/Kagamine Rin Yellow Tapes.png";
|
||||||
|
|
||||||
// Special
|
// Special
|
||||||
$background: #11151b;
|
$background: #190b14;
|
||||||
$foreground: #c3c4c6;
|
$foreground: #c5c2c4;
|
||||||
$cursor: #c3c4c6;
|
$cursor: #c5c2c4;
|
||||||
|
|
||||||
// Colors
|
// Colors
|
||||||
$color0: #11151b;
|
$color0: #190b14;
|
||||||
$color1: #967557;
|
$color1: #905027;
|
||||||
$color2: #4f5869;
|
$color2: #685345;
|
||||||
$color3: #665d63;
|
$color3: #766b0c;
|
||||||
$color4: #576872;
|
$color4: #a78117;
|
||||||
$color5: #787375;
|
$color5: #ad9527;
|
||||||
$color6: #998c7f;
|
$color6: #425c6e;
|
||||||
$color7: #90949a;
|
$color7: #998e95;
|
||||||
$color8: #5c6371;
|
$color8: #6e5a67;
|
||||||
$color9: #C99D75;
|
$color9: #C06B35;
|
||||||
$color10: #6A768C;
|
$color10: #8B6F5D;
|
||||||
$color11: #897C84;
|
$color11: #9E8F11;
|
||||||
$color12: #748B99;
|
$color12: #DFAC1F;
|
||||||
$color13: #A19A9D;
|
$color13: #E7C735;
|
||||||
$color14: #CDBBAA;
|
$color14: #597B93;
|
||||||
$color15: #c3c4c6;
|
$color15: #c5c2c4;
|
||||||
|
|||||||
+13
-15
@@ -4,19 +4,23 @@ 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";
|
||||||
|
|
||||||
|
|
||||||
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;
|
||||||
if(!img) return undefined;
|
|
||||||
|
|
||||||
if(!img.includes('/')) return undefined;
|
if(!img || !img.includes('/'))
|
||||||
|
return undefined;
|
||||||
|
|
||||||
if(img.startsWith('/'))
|
switch(true) {
|
||||||
|
case /^[/]/.test(img):
|
||||||
return `file://${img}`;
|
return `file://${img}`;
|
||||||
|
|
||||||
if(img.startsWith('~') || img.startsWith("file://~"))
|
case /^[~]/.test(img):
|
||||||
return `file://${GLib.get_home_dir()}/${img.replace(/^(file\:\/\/|\~|file\:\/\/~)/g, "")}`;
|
case /^file:\/\/[~]/i.test(img):
|
||||||
|
return `file://${GLib.get_home_dir()}/${img.replace(/^(file\:\/\/|[~]|file\:\/\[~])/i, "")}`;
|
||||||
|
}
|
||||||
|
|
||||||
return img;
|
return img;
|
||||||
}
|
}
|
||||||
@@ -30,14 +34,6 @@ export function NotificationWidget(notification: AstalNotifd.Notification|number
|
|||||||
AstalNotifd.get_default().get_notification(notification)
|
AstalNotifd.get_default().get_notification(notification)
|
||||||
: notification;
|
: notification;
|
||||||
|
|
||||||
const body: string = notification.body.split(' ').map(strPart => {
|
|
||||||
if(/^\<(.*)\>/.test(strPart) || /<\/(.*)\>$/.test(strPart))
|
|
||||||
return strPart;
|
|
||||||
|
|
||||||
return strPart.length >= 25 ? `${strPart.substring(0, 22)}...`
|
|
||||||
: strPart
|
|
||||||
}).join(' ');
|
|
||||||
|
|
||||||
return new Widget.EventBox({
|
return new Widget.EventBox({
|
||||||
onClick: () => {
|
onClick: () => {
|
||||||
if(notification instanceof AstalNotifd.Notification) {
|
if(notification instanceof AstalNotifd.Notification) {
|
||||||
@@ -139,7 +135,9 @@ export function NotificationWidget(notification: AstalNotifd.Notification|number
|
|||||||
xalign: 0,
|
xalign: 0,
|
||||||
truncate: false,
|
truncate: false,
|
||||||
wrap: true,
|
wrap: true,
|
||||||
label: body.replace(/\&/g, "&")
|
singleLineMode: false,
|
||||||
|
wrapMode: Pango.WrapMode.WORD_CHAR,
|
||||||
|
label: notification.body.replace(/&/g, "&")
|
||||||
} as Widget.LabelProps)
|
} as Widget.LabelProps)
|
||||||
]
|
]
|
||||||
} as Widget.BoxProps)
|
} as Widget.BoxProps)
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 2.9 MiB |
Binary file not shown.
|
After Width: | Height: | Size: 5.5 MiB |
Binary file not shown.
|
After Width: | Height: | Size: 3.1 MiB |
Binary file not shown.
|
After Width: | Height: | Size: 2.9 MiB |
Reference in New Issue
Block a user