1
0
Fork 0
freesewing/sites/shared/components/workbench/menus/ui-settings/config.mjs
Joost De Cock ddbbbda2bc chore(shared): Changes kiosk/expand/flags/header
- Revamped the flags ui to be consistent with the rest
- The expand setting is on by default now. Tweaks to its dialog and
  header
- Added a new kiosk mode that will use the entire screen for the
  workbench
- Got rid of the auto-hiding behaviour of the header which gets annoying
  quick
2023-09-09 17:58:44 +02:00

46 lines
1.1 KiB
JavaScript

import { RocketIcon, ControlIcon, KioskIcon } from 'shared/components/icons.mjs'
export const loadSettingsConfig = () => {
const uiSettings = {
control: {
control: 1, // Show when control > 0
emoji: '🖥️',
list: [1, 2, 3, 4, 5],
choiceTitles: {},
icon: ControlIcon,
},
kiosk: {
control: 4, // Show when control > 3
list: [0, 1],
choiceTitles: {
0: 'ui-settings:websiteMode',
1: 'ui-settings:kioskMode',
},
//valueTitles: {
// react: 'ui-settings:regular',
// svg: 'ui-settings:kiosk',
//},
dflt: 0,
icon: KioskIcon,
},
renderer: {
control: 4, // Show when control > 3
list: ['react', 'svg'],
choiceTitles: {
react: 'ui-settings:renderWithReact',
svg: 'ui-settings:renderWithCore',
},
valueTitles: {
react: 'React',
svg: 'SVG',
},
dflt: 'react',
icon: RocketIcon,
},
}
uiSettings.control.list.forEach(
(i) => (uiSettings.control.choiceTitles[i] = 'account:control' + i)
)
return uiSettings
}