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); font-size: lib.s(14);
} }
} }
&.italic {
font-style: italic;
}
} }
} }
} }

View file

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