forked from Shinonome/dots-hyprland
hide overview window title to prevent messed up size
This commit is contained in:
@@ -133,25 +133,25 @@ export default (overviewMonitor = 0) => {
|
|||||||
children: [
|
children: [
|
||||||
appIcon,
|
appIcon,
|
||||||
// TODO: Add xwayland tag instead of just having italics
|
// TODO: Add xwayland tag instead of just having italics
|
||||||
Widget.Revealer({
|
// Widget.Revealer({
|
||||||
transition: 'slide_right',
|
// transition: 'slide_right',
|
||||||
revealChild: revealInfoCondition,
|
// revealChild: revealInfoCondition,
|
||||||
child: Widget.Revealer({
|
// child: Widget.Revealer({
|
||||||
transition: 'slide_down',
|
// transition: 'slide_down',
|
||||||
revealChild: revealInfoCondition,
|
// revealChild: revealInfoCondition,
|
||||||
child: Widget.Label({
|
// child: Widget.Label({
|
||||||
maxWidthChars: 10, // Doesn't matter what number
|
// maxWidthChars: 10, // Doesn't matter what number
|
||||||
truncate: 'end',
|
// truncate: 'end',
|
||||||
className: `margin-top-5 ${xwayland ? 'txt txt-italic' : 'txt'}`,
|
// className: `margin-top-5 ${xwayland ? 'txt txt-italic' : 'txt'}`,
|
||||||
css: `
|
// css: `
|
||||||
font-size: ${Math.min(monitors[monitor].width, monitors[monitor].height) * userOptions.overview.scale / 14.6}px;
|
// font-size: ${Math.min(monitors[monitor].width, monitors[monitor].height) * userOptions.overview.scale / 14.6}px;
|
||||||
margin: 0px ${Math.min(monitors[monitor].width, monitors[monitor].height) * userOptions.overview.scale / 10}px;
|
// margin: 0px ${Math.min(monitors[monitor].width, monitors[monitor].height) * userOptions.overview.scale / 10}px;
|
||||||
`,
|
// `,
|
||||||
// If the title is too short, include the class
|
// // If the title is too short, include the class
|
||||||
label: (title.length <= 1 ? `${c}: ${title}` : title),
|
// label: (title.length <= 1 ? `${c}: ${title}` : title),
|
||||||
})
|
// })
|
||||||
})
|
// })
|
||||||
})
|
// })
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in New Issue
Block a user