diff options
| author | xXJSONDeruloXx <danielhimebauch@gmail.com> | 2025-07-17 23:44:51 -0400 |
|---|---|---|
| committer | xXJSONDeruloXx <danielhimebauch@gmail.com> | 2025-07-17 23:44:51 -0400 |
| commit | a921fc8168e13934bdfe6d159aee14ee2651949e (patch) | |
| tree | 5df5572a22e056ab2cc4afbe770efab0d7a3ecd1 /src | |
| parent | 0670041467ca5625d93e3e4dbc2f738da24d88b4 (diff) | |
| download | decky-lsfg-vk-a921fc8168e13934bdfe6d159aee14ee2651949e.tar.gz decky-lsfg-vk-a921fc8168e13934bdfe6d159aee14ee2651949e.zip | |
styling cleanup
Diffstat (limited to 'src')
| -rw-r--r-- | src/components/ConfigurationSection.tsx | 47 | ||||
| -rw-r--r-- | src/components/PluginUpdateChecker.tsx | 123 |
2 files changed, 105 insertions, 65 deletions
diff --git a/src/components/ConfigurationSection.tsx b/src/components/ConfigurationSection.tsx index 76b9bc2..0ee605c 100644 --- a/src/components/ConfigurationSection.tsx +++ b/src/components/ConfigurationSection.tsx @@ -94,17 +94,16 @@ export function ConfigurationSection({ /> </PanelSectionRow> - {/* Experimental Features Section */} <PanelSectionRow> <div style={{ fontSize: "14px", fontWeight: "bold", - marginTop: "24px", + marginTop: "16px", marginBottom: "8px", - borderBottom: "1px solid rgba(255, 165, 0, 0.4)", + borderBottom: "1px solid rgba(255, 255, 255, 0.2)", paddingBottom: "4px", - color: "rgba(255, 165, 0, 0.9)" + color: "white" }} > ⚠️ Experimental Features @@ -112,18 +111,34 @@ export function ConfigurationSection({ </PanelSectionRow> <PanelSectionRow> - <Dropdown - menuLabel="Present Mode" - selectedOption={config.experimental_present_mode} - onChange={(value) => onConfigChange('experimental_present_mode', value.data)} - rgOptions={[ - { data: "", label: "Default (FIFO)" }, - { data: "fifo", label: "FIFO" }, - { data: "vsync", label: "VSync" }, - { data: "mailbox", label: "Mailbox" }, - { data: "immediate", label: "Immediate" } - ]} - /> + <div style={{ marginBottom: "8px" }}> + <div style={{ + color: "white", + fontSize: "14px", + fontWeight: "500", + marginBottom: "4px" + }}> + Override Vulkan present mode + </div> + <div style={{ + color: "rgba(255, 255, 255, 0.7)", + fontSize: "12px", + marginBottom: "8px" + }}> + Select a specific Vulkan presentation mode for better performance or compatibility + </div> + <Dropdown + selectedOption={config.experimental_present_mode} + onChange={(value) => onConfigChange('experimental_present_mode', value.data)} + rgOptions={[ + { data: "", label: "Default (FIFO)" }, + { data: "fifo", label: "FIFO" }, + { data: "vsync", label: "VSync" }, + { data: "mailbox", label: "Mailbox" }, + { data: "immediate", label: "Immediate" } + ]} + /> + </div> </PanelSectionRow> <PanelSectionRow> diff --git a/src/components/PluginUpdateChecker.tsx b/src/components/PluginUpdateChecker.tsx index 0028a79..a3982c2 100644 --- a/src/components/PluginUpdateChecker.tsx +++ b/src/components/PluginUpdateChecker.tsx @@ -1,7 +1,8 @@ import React, { useState, useEffect } from 'react'; import { ButtonItem, - PanelSection + PanelSection, + PanelSectionRow } from '@decky/ui'; import { checkForPluginUpdate, downloadPluginUpdate, UpdateCheckResult, UpdateDownloadResult } from '../api/lsfgApi'; @@ -121,66 +122,90 @@ export const PluginUpdateChecker: React.FC<PluginUpdateCheckerProps> = () => { }; return ( - <PanelSection title="Plugin Updates"> - <ButtonItem - layout="below" - onClick={handleCheckForUpdate} - disabled={checkingUpdate} - description={getStatusMessage()} - > - {checkingUpdate ? 'Checking for updates...' : 'Check for Updates'} - </ButtonItem> + <PanelSection> + <PanelSectionRow> + <div + style={{ + fontSize: "14px", + fontWeight: "bold", + marginTop: "16px", + marginBottom: "8px", + borderBottom: "1px solid rgba(255, 255, 255, 0.2)", + paddingBottom: "4px", + color: "white" + }} + > + PLUGIN UPDATES + </div> + </PanelSectionRow> - {updateInfo && updateInfo.updateAvailable && !downloadResult?.success && ( + <PanelSectionRow> <ButtonItem layout="below" - onClick={handleDownloadUpdate} - disabled={downloadingUpdate} - description={`Download version ${updateInfo.latestVersion}`} + onClick={handleCheckForUpdate} + disabled={checkingUpdate} + description={getStatusMessage()} > - {downloadingUpdate ? 'Downloading...' : 'Download Update'} + {checkingUpdate ? 'Checking for updates...' : 'Check for Updates'} </ButtonItem> + </PanelSectionRow> + + {updateInfo && updateInfo.updateAvailable && !downloadResult?.success && ( + <PanelSectionRow> + <ButtonItem + layout="below" + onClick={handleDownloadUpdate} + disabled={downloadingUpdate} + description={`Download version ${updateInfo.latestVersion}`} + > + {downloadingUpdate ? 'Downloading...' : 'Download Update'} + </ButtonItem> + </PanelSectionRow> )} {downloadResult?.success && ( - <div style={{ - marginTop: '10px', - padding: '10px', - backgroundColor: 'rgba(0, 255, 0, 0.1)', - borderRadius: '4px', - border: '1px solid rgba(0, 255, 0, 0.3)' - }}> - <div style={{ color: 'lightgreen', fontWeight: 'bold', marginBottom: '5px' }}> - ✓ Download Complete! + <PanelSectionRow> + <div style={{ + marginTop: '10px', + padding: '10px', + backgroundColor: 'rgba(0, 255, 0, 0.1)', + borderRadius: '4px', + border: '1px solid rgba(0, 255, 0, 0.3)' + }}> + <div style={{ color: 'lightgreen', fontWeight: 'bold', marginBottom: '5px' }}> + ✓ Download Complete! + </div> + <div style={{ fontSize: '12px', marginBottom: '10px' }}> + File saved to: {downloadResult.download_path} + </div> + <div style={{ fontSize: '12px' }}> + <strong>Installation Instructions:</strong> + <ol style={{ paddingLeft: '20px', marginTop: '5px' }}> + <li>Go to Decky Loader settings</li> + <li>Click "Developer" tab</li> + <li>Click "Uninstall" next to "Lossless Scaling"</li> + <li>Click "Install from ZIP"</li> + <li>Select the downloaded file</li> + <li>Restart Steam or reload plugins</li> + </ol> + </div> </div> - <div style={{ fontSize: '12px', marginBottom: '10px' }}> - File saved to: {downloadResult.download_path} - </div> - <div style={{ fontSize: '12px' }}> - <strong>Installation Instructions:</strong> - <ol style={{ paddingLeft: '20px', marginTop: '5px' }}> - <li>Go to Decky Loader settings</li> - <li>Click "Developer" tab</li> - <li>Click "Uninstall" next to "Lossless Scaling"</li> - <li>Click "Install from ZIP"</li> - <li>Select the downloaded file</li> - <li>Restart Steam or reload plugins</li> - </ol> - </div> - </div> + </PanelSectionRow> )} {updateError && ( - <div style={{ - color: 'red', - marginTop: '10px', - padding: '8px', - backgroundColor: 'rgba(255, 0, 0, 0.1)', - borderRadius: '4px', - fontSize: '12px' - }}> - {updateError} - </div> + <PanelSectionRow> + <div style={{ + color: 'red', + marginTop: '10px', + padding: '8px', + backgroundColor: 'rgba(255, 0, 0, 0.1)', + borderRadius: '4px', + fontSize: '12px' + }}> + {updateError} + </div> + </PanelSectionRow> )} </PanelSection> ); |
