summaryrefslogtreecommitdiff
path: root/src/components/StatusDisplay.tsx
diff options
context:
space:
mode:
authorxXJSONDeruloXx <danielhimebauch@gmail.com>2026-09-05 23:44:37 -0400
committerxXJSONDeruloXx <danielhimebauch@gmail.com>2026-09-05 23:44:37 -0400
commite8e469f99078858dc953663cba6f3428e80b1c5d (patch)
tree6d0e6730bf439ec2cb5b3564c636ce8342466df1 /src/components/StatusDisplay.tsx
parent77656ad88655effe0411808baf2fb90c629a24f8 (diff)
downloaddecky-lsfg-vk-e8e469f99078858dc953663cba6f3428e80b1c5d.tar.gz
decky-lsfg-vk-e8e469f99078858dc953663cba6f3428e80b1c5d.zip
refactor: delegate runtime checks to lsfg-vk
Diffstat (limited to 'src/components/StatusDisplay.tsx')
-rw-r--r--src/components/StatusDisplay.tsx21
1 files changed, 13 insertions, 8 deletions
diff --git a/src/components/StatusDisplay.tsx b/src/components/StatusDisplay.tsx
index 3a48a15..31584eb 100644
--- a/src/components/StatusDisplay.tsx
+++ b/src/components/StatusDisplay.tsx
@@ -1,24 +1,24 @@
import { PanelSectionRow } from "@decky/ui";
interface StatusDisplayProps {
- dllDetected: boolean;
- dllDetectionStatus: string;
isInstalled: boolean;
installationStatus: string;
+ losslessScalingInstalled: boolean;
+ losslessScalingStatus: string;
}
export function StatusDisplay({
- dllDetected,
- dllDetectionStatus,
isInstalled,
- installationStatus
+ installationStatus,
+ losslessScalingInstalled,
+ losslessScalingStatus
}: StatusDisplayProps) {
return (
<PanelSectionRow>
<div style={{ marginBottom: "8px", fontSize: "14px" }}>
<div
style={{
- color: dllDetected ? "#4CAF50" : "#F44336",
+ color: losslessScalingInstalled ? "#4CAF50" : "#F44336",
fontWeight: "600",
marginBottom: "6px",
display: "flex",
@@ -27,10 +27,15 @@ export function StatusDisplay({
}}
>
<span style={{ fontSize: "16px" }}>
- {dllDetected ? "✅" : "❌"}
+ {losslessScalingInstalled ? "✅" : "❌"}
</span>
- {dllDetectionStatus}
+ {losslessScalingInstalled ? "Lossless Scaling Installed" : "Lossless Scaling Not Installed"}
</div>
+ {!losslessScalingInstalled && losslessScalingStatus && (
+ <div style={{ color: "#B8B8B8", fontSize: "12px", margin: "0 0 6px 22px" }}>
+ {losslessScalingStatus}
+ </div>
+ )}
<div
style={{
color: isInstalled ? "#4CAF50" : "#FF9800",