launcher: italic xwayland windows

This commit is contained in:
2 * r + 2 * t 2025-02-23 22:18:10 +11:00
parent c51fb0982f
commit 15110e5f7c
2 changed files with 8 additions and 1 deletions

View file

@ -100,6 +100,10 @@
font-size: lib.s(14);
}
}
&.italic {
font-style: italic;
}
}
}
}

View file

@ -142,6 +142,7 @@ const Result = ({
label,
sublabel,
tooltip,
italic,
onClicked,
onSecondaryClick,
onMiddleClick,
@ -152,13 +153,14 @@ const Result = ({
label: string;
sublabel?: string;
tooltip?: string;
italic?: boolean;
onClicked: (self: Widget.Button) => void;
onSecondaryClick?: (self: Widget.Button) => void;
onMiddleClick?: (self: Widget.Button) => void;
onDestroy?: () => void;
}) => (
<button
className="result"
className={`result ${italic ? "italic" : ""}`}
cursor="pointer"
onClicked={onClicked}
onClick={(self, event) => {
@ -450,6 +452,7 @@ const WindowResult = ({ client, reload }: { client: Client; reload: () => void }
tooltip={`${classOrTitle("Title")}\n${classOrTitle("Class")}\n${prop("address")}\n${workspace(
true
)}\n${prop("pid", "Process ID")}\n${prop("floating")}\n${prop("inhibitingIdle", "Inhibiting idle")}`}
italic={client.xwayland}
onClicked={self => {
close(self);
astalClient?.focus();