From 658d4667356a0f71632fb3d97a151a8f7d752509 Mon Sep 17 00:00:00 2001
From: xXJSONDeruloXx <danielhimebauch@gmail.com>
Date: Tue, 22 Jul 2025 15:45:31 -0400
Subject: l and r plus minus fps buttons initial

---
 src/components/ConfigurationSection.tsx | 96 +++++++++++++++++++++++++++------
 1 file changed, 80 insertions(+), 16 deletions(-)

(limited to 'src/components/ConfigurationSection.tsx')

diff --git a/src/components/ConfigurationSection.tsx b/src/components/ConfigurationSection.tsx
index eb036ae..c1554f3 100644
--- a/src/components/ConfigurationSection.tsx
+++ b/src/components/ConfigurationSection.tsx
@@ -1,4 +1,4 @@
-import { PanelSectionRow, ToggleField, SliderField, DropdownItem } from "@decky/ui";
+import { PanelSectionRow, ToggleField, SliderField, DropdownItem, ButtonItem, Field, DialogButton, Focusable } from "@decky/ui";
 import { ConfigurationData } from "../config/configSchema";
 import {
   MULTIPLIER, FLOW_SCALE, PERFORMANCE_MODE, HDR_MODE, 
@@ -34,21 +34,85 @@ export function ConfigurationSection({
       </PanelSectionRow>
 
       <PanelSectionRow>
-        <DropdownItem
-          label="FPS Multiplier"
-          description="Traditional FPS multiplier value"
-          menuLabel="Select FPS multiplier"
-          selectedOption={config.multiplier}
-          onChange={(value) => onConfigChange(MULTIPLIER, value.data)}
-          rgOptions={[
-            { data: 1, label: "OFF" },
-            { data: 2, label: "2X" },
-            { data: 3, label: "3X" },
-            { data: 4, label: "4X" },
-            { data: 5, label: "5X" },
-            { data: 6, label: "6X" },
-          ]}
-        />
+        <div
+          style={{
+            fontSize: "14px",
+            fontWeight: "bold",
+            marginTop: "16px",
+            marginBottom: "8px",
+            color: "white"
+          }}
+        >
+          FPS Multiplier
+        </div>
+        <div
+          style={{
+            fontSize: "12px",
+            color: "#cccccc",
+            marginBottom: "8px"
+          }}
+        >
+          Traditional FPS multiplier value
+        </div>
+        <Focusable
+          style={{ 
+            marginTop: "10px", 
+            marginBottom: "10px", 
+            display: "flex",
+            justifyContent: "center"
+          }}
+          flow-children="horizontal"
+        >
+          <DialogButton
+            style={{
+              marginLeft: "0px",
+              height: "30px",
+              display: "flex",
+              alignItems: "center",
+              justifyContent: "center",
+              padding: "5px 0px 0px 0px",
+              minWidth: "40px",
+            }}
+            onClick={() => onConfigChange(MULTIPLIER, Math.max(1, config.multiplier - 1))}
+            disabled={config.multiplier <= 1}
+          >
+            −
+          </DialogButton>
+          <div
+            style={{
+              marginLeft: "5px",
+              marginRight: "5px",
+              height: "30px",
+              display: "flex",
+              alignItems: "center",
+              justifyContent: "center",
+              padding: "5px 0px 0px 0px",
+              minWidth: "60px",
+              fontWeight: "bold",
+              color: "white",
+              backgroundColor: "rgba(255, 255, 255, 0.1)",
+              borderRadius: "3px",
+              border: "1px solid rgba(255, 255, 255, 0.2)"
+            }}
+          >
+            {config.multiplier < 2 ? "OFF" : `${config.multiplier}X`}
+          </div>
+          <DialogButton
+            style={{
+              marginLeft: "0px",
+              height: "30px",
+              display: "flex",
+              alignItems: "center",
+              justifyContent: "center",
+              padding: "5px 0px 0px 0px",
+              minWidth: "40px",
+            }}
+            onClick={() => onConfigChange(MULTIPLIER, Math.min(6, config.multiplier + 1))}
+            disabled={config.multiplier >= 6}
+          >
+            +
+          </DialogButton>
+        </Focusable>
       </PanelSectionRow>
 
       <PanelSectionRow>
-- 
cgit v1.2.3

