feat: update style

This commit is contained in:
tux
2025-06-09 05:00:00 +05:30
parent 72f9c24482
commit 9f7a23809e
8 changed files with 42 additions and 61 deletions

View File

@@ -48,9 +48,14 @@ export const WorkspaceButton = () => {
export const FocusedClient = () => {
const hyprland = AstalHyprland.get_default();
const title = bind(hyprland, "focusedClient").as(
(fcsClient) => fcsClient.title,
);
const focused = bind(hyprland, "focusedClient");
return <label cssClasses={["focused-client"]}>{title}</label>;
return (
<box cssClasses={["focused-client"]} visible={focused.as(Boolean)}>
{focused.as(
(client) =>
client && <label label={bind(client, "initialTitle").as(String)} />,
)}
</box>
);
};