mirror of
https://github.com/tuxdotrs/tpanel.git
synced 2025-10-10 12:51:54 +05:30
feat: update style
This commit is contained in:
@@ -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>
|
||||
);
|
||||
};
|
||||
|
Reference in New Issue
Block a user