forked from Shinonome/dots-hyprland
Update waifu.js
This commit is contained in:
@@ -36,11 +36,11 @@ export const waifuTabIcon = Box({
|
|||||||
|
|
||||||
const WaifuImage = (taglist) => {
|
const WaifuImage = (taglist) => {
|
||||||
const ImageState = (icon, name) => Box({
|
const ImageState = (icon, name) => Box({
|
||||||
className: 'spacing-h-5',
|
className: 'spacing-h-5 txt',
|
||||||
children: [
|
children: [
|
||||||
Box({ hexpand: true }),
|
Box({ hexpand: true }),
|
||||||
Label({
|
Label({
|
||||||
className: 'sidebar-waifu-txt txt-smallie txt',
|
className: 'sidebar-waifu-txt txt-smallie',
|
||||||
xalign: 0,
|
xalign: 0,
|
||||||
label: name,
|
label: name,
|
||||||
}),
|
}),
|
||||||
@@ -161,6 +161,9 @@ const WaifuImage = (taglist) => {
|
|||||||
else Utils.execAsync(['bash', '-c', `wget -O '${thisBlock._imagePath}' '${url}'`])
|
else Utils.execAsync(['bash', '-c', `wget -O '${thisBlock._imagePath}' '${url}'`])
|
||||||
.then(showImage)
|
.then(showImage)
|
||||||
.catch(print);
|
.catch(print);
|
||||||
|
blockHeading.get_children().forEach((child) => {
|
||||||
|
child.setCss(`border-color: ${dominant_color};`);
|
||||||
|
})
|
||||||
colorIndicator.css = `background-color: ${dominant_color};`;
|
colorIndicator.css = `background-color: ${dominant_color};`;
|
||||||
}],
|
}],
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user