/************************
* Standard Setting Definitions *
************************/
const boxColorSettings = defineSetting('Box Colors', 'boxColor', 'group', {
settings: [
defineSetting('Border Color', 'border', 'color-input', {
defaultValue: '#0026ff',
}),
defineSetting('Border Width', 'borderWidth', 'number-input', {
defaultValue: 4,
step: 1,
min: 0,
max: 20,
slider: true,
}),
defineSetting('Username Box Color', 'usernameBoxColor', 'color-input',{
defaultValue: '#e5ff00',
}),
defineSetting('Message Color', 'message', 'color-input', {
defaultValue: '#00625f',
})
]
}
)
const textSettings = defineSetting('Text Styles', 'textStyles', 'group', {
settings: [
defineSetting('Custom Font Name', 'font', 'font-input'),
defineSetting('Font Size (px)', 'size', 'number-input', {
defaultValue: 30,
min: 0,
step: 1,
}),
defineSetting('Font Weight', 'weight', 'select-input', {
defaultValue: 800,
options: defineOptions(
['Normal', 'Bold']
.map(label => [label, label.toLowerCase()])
.concat(
[100, 200, 300, 400, 500, 600, 700, 800, 900].map(value => [
value.toString(),
value,
]),
),
),
}),
defineSetting('Username Size (px)', 'usernameSize', 'number-input', {
defaultValue: 30,
min: 0,
step: 1,
}),
defineSetting('Username Color', 'usernameColorOption', 'select-input', {
defaultValue: 'Custom',
options: defineOptions([
['Twitch Light', 'user-light'],
['Twitch Dark', 'user-dark'],
['Twitch', 'user'],
['Custom', 'custom'],
]),
description:
'Twitch Light/Dark are lightened/darkened versions of the username colors people have chosen in chat.',
}),
defineSetting('Custom Username Color', 'usernameColor', 'color-input', {
defaultValue: '#ffa200',
description: 'This will only be applied when you select "Custom" above.',
}),
defineSetting('Message Text Color', 'textColor', 'color-input', {
defaultValue: '#09ff00',
description: 'This will only be applied when you select "Custom" above.',
}),
defineSetting('Edge Style', 'edge', 'select-input', {
defaultValue: 'none',
options: defineOptions(
[
'Outline 1',
'Outline 2',
'Bottom Shadow 1',
'Bottom Shadow 2',
'Bottom Right Shadow 1',
'Bottom Right Shadow 2',
'None',
].map(label => [label, label.replaceAll(' ', '-').toLowerCase()]),
),
}),
defineSetting('Edge Color', 'edgeColor', 'color-input', {
defaultValue: 'black',
}),
],
})
/************************
* Mod Setting Definitions *
************************/
const modtextSettings = defineSetting('Text Styles', 'textStyles', 'group', {
settings: [
defineSetting('Custom Font Name', 'font', 'font-input'),
defineSetting('Font Size (px)', 'size', 'number-input', {
defaultValue: 30,
min: 0,
step: 1,
}),
defineSetting('Font Weight', 'weight', 'select-input', {
defaultValue: 800,
options: defineOptions(
['Normal', 'Bold']
.map(label => [label, label.toLowerCase()])
.concat(
[100, 200, 300, 400, 500, 600, 700, 800, 900].map(value => [
value.toString(),
value,
]),
),
),
}),
defineSetting('Username Size (px)', 'usernameSize', 'number-input', {
defaultValue: 30,
min: 0,
step: 1,
}),
defineSetting('Username Color', 'usernameColorOption', 'select-input', {
defaultValue: 'Custom',
options: defineOptions([
['Twitch Light', 'user-light'],
['Twitch Dark', 'user-dark'],
['Twitch', 'user'],
['Custom', 'custom'],
]),
description:
'Twitch Light/Dark are lightened/darkened versions of the username colors people have chosen in chat.',
}),
defineSetting('Custom Username Color', 'usernameColor', 'color-input', {
defaultValue: '#005eff',
description: 'This will only be applied when you select "Custom" above.',
}),
defineSetting('Message Text Color', 'textColor', 'color-input', {
defaultValue: '#99ff00',
description: 'This will only be applied when you select "Custom" above.',
}),
defineSetting('Edge Style', 'edge', 'select-input', {
defaultValue: 'none',
options: defineOptions(
[
'Outline 1',
'Outline 2',
'Bottom Shadow 1',
'Bottom Shadow 2',
'Bottom Right Shadow 1',
'Bottom Right Shadow 2',
'None',
].map(label => [label, label.replaceAll(' ', '-').toLowerCase()]),
),
}),
defineSetting('Edge Color', 'edgeColor', 'color-input', {
defaultValue: 'black',
}),
],
})
const modboxColorSettings = defineSetting('Box Colors', 'boxColor', 'group', {
settings: [
defineSetting('Border Color', 'border', 'color-input', {
defaultValue: '#dd00ff',
}),
defineSetting('Border Width', 'borderWidth', 'number-input', {
defaultValue: 4,
step: 1,
min: 0,
max: 20,
slider: true,
}),
defineSetting('Username Box Color', 'usernameBoxColor', 'color-input',{
defaultValue: '#008bbe',
}),
defineSetting('Message Color', 'message', 'color-input', {
defaultValue: '#404c4c',
})
]
}
)