summaryrefslogtreecommitdiff
path: root/src/utils/constants.ts
blob: 6c16960727ee5b6f52a0b0a7bc0280e0ba12dcdc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
// Common style definitions
export const STYLES = {
  resultBox: {
    padding: '12px',
    marginTop: '16px',
    backgroundColor: 'var(--decky-selected-ui-bg)',
    borderRadius: '8px',
    border: '1px solid var(--decky-border-color)',
    fontSize: '14px'
  },
  statusInstalled: {
    color: '#22c55e',
    fontWeight: 'bold',
    fontSize: '14px'
  },
  statusNotInstalled: {
    color: '#f97316',
    fontWeight: 'bold',
    fontSize: '14px'
  },
  statusSuccess: { color: '#22c55e' },
  statusError: { color: '#ef4444' },
  preWrap: { whiteSpace: 'pre-wrap' as const },
  instructionCard: {
    padding: '14px',
    backgroundColor: 'var(--decky-selected-ui-bg)',
    borderRadius: '8px',
    border: '1px solid var(--decky-border-color)',
    marginTop: '8px',
    fontSize: '13px',
    lineHeight: '1.4'
  }
};

// Common timeout values
export const TIMEOUTS = {
  resultDisplay: 5000,
  pathCheck: 3000
};

// Message strings
export const MESSAGES = {
  modInstalled: '✅ Prefix-managed OptiScaler runtime installed',
  modNotInstalled: '❌ Prefix-managed OptiScaler runtime not installed',
  installing: 'Installing prefix-managed runtime...',
  installButton: 'Install Prefix-Managed Runtime',
  uninstalling: 'Removing runtime and cleaning prefixes...',
  uninstallButton: 'Remove Runtime + Clean Prefixes',
  installSuccess: '✅ Prefix-managed OptiScaler runtime installed successfully!',
  uninstallSuccess: '✅ Prefix-managed OptiScaler runtime removed successfully.',
  instructionTitle: 'How it works:',
  instructionText:
    'Use the Steam game integration section to enable OptiScaler for a specific game, or copy the launch command manually.\n\nOn launch, the plugin stages OptiScaler into compatdata/<appid>/pfx/drive_c/windows/system32 and keeps its writable INI under compatdata/<appid>/optiscaler-managed. The game install directory is left untouched.\n\nThe live config UI now parses the bundled OptiScaler.ini template and exposes its sections/settings with Decky controls. Changes autosave immediately, and if the selected game is running they are mirrored into the live prefix INI automatically.\n\nDefault proxy fallback: winmm.dll. In-game: press Insert to open the OptiScaler menu.'
};