From 176fd8d4a1e92ddecb84438b3a6b8694d8c3e27c Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Wed, 21 Feb 2024 22:54:01 +0700 Subject: [PATCH] overview: re add window title --- .../ags/modules/overview/overview_hyprland.js | 29 ++++++++++--------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/.config/ags/modules/overview/overview_hyprland.js b/.config/ags/modules/overview/overview_hyprland.js index f6983161f..6029e8d70 100644 --- a/.config/ags/modules/overview/overview_hyprland.js +++ b/.config/ags/modules/overview/overview_hyprland.js @@ -159,20 +159,21 @@ export default () => { children: [ appIcon, // TODO: Add xwayland tag instead of just having italics - // Widget.Revealer({ - // transition: 'slide_down', - // revealChild: revealInfoCondition, - // child: Widget.Label({ - // truncate: 'end', - // className: `${xwayland ? 'txt txt-italic' : 'txt'}`, - // css: ` - // font-size: ${Math.min(SCREEN_WIDTH, SCREEN_HEIGHT) * OVERVIEW_SCALE / 14.6}px; - // margin: 0px ${Math.min(SCREEN_WIDTH, SCREEN_HEIGHT) * OVERVIEW_SCALE / 10}px; - // `, - // // If the title is too short, include the class - // label: (title.length <= 1 ? `${c}: ${title}` : title), - // }) - // }) + Widget.Revealer({ + transition: 'slide_down', + revealChild: revealInfoCondition, + child: Widget.Label({ + maxWidthChars: 10, // Doesn't matter what number + truncate: 'end', + className: `${xwayland ? 'txt txt-italic' : 'txt'}`, + css: ` + font-size: ${Math.min(SCREEN_WIDTH, SCREEN_HEIGHT) * OVERVIEW_SCALE / 14.6}px; + margin: 0px ${Math.min(SCREEN_WIDTH, SCREEN_HEIGHT) * OVERVIEW_SCALE / 10}px; + `, + // If the title is too short, include the class + label: (title.length <= 1 ? `${c}: ${title}` : title), + }) + }) ] }) }),