From 15110e5f7c74d153510fcfd76f5a67374bb3a10a Mon Sep 17 00:00:00 2001
From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>
Date: Sun, 23 Feb 2025 22:18:10 +1100
Subject: launcher: italic xwayland windows

---
 src/modules/launcher.tsx | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

(limited to 'src/modules/launcher.tsx')

diff --git a/src/modules/launcher.tsx b/src/modules/launcher.tsx
index b7d4c01..56343d6 100644
--- a/src/modules/launcher.tsx
+++ b/src/modules/launcher.tsx
@@ -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();
-- 
cgit v1.2.3-freya

