Commit 32c1bd28 authored by Vildravn's avatar Vildravn
Browse files

Add lineWhite style

parent 05d8b083
......@@ -19,7 +19,7 @@
*/
const colors = {
bg: new Color('#1C1C1C'),
header: new Color('#FFFFFF'),
textWhite: new Color('#FFFFFF'),
textYellow: new Color('#FFD100'),
textGrey: new Color('#BBBBBB'),
faction: {
......@@ -35,7 +35,7 @@ const colors = {
const textStyles = {
header: {
font: new Font('HelveticaNeue-Bold', 12),
color: colors.header
color: colors.textWhite
},
line: {
font: new Font('HelveticaNeue', 12),
......@@ -44,6 +44,10 @@ const textStyles = {
lineBold: {
font: new Font('HelveticaNeue-Bold', 9),
color: colors.textGrey
},
lineWhite: {
font: new Font('HelveticaNeue', 12),
color: colors.textWhite
}
}
......@@ -128,13 +132,13 @@ async function createWidget(size) {
delete ($);
} else {
const text = widget.addText('The widget is not configured correctly.');
text.textColor = textStyles.header.color;
text.font = textStyles.header.font;
text.textColor = textStyles.lineWhite.color;
text.font = textStyles.lineWhite.font;
}
} else {
const text = widget.addText(`${size} widget is currently not supported.`);
text.textColor = textStyles.header.color;
text.font = textStyles.header.font;
text.textColor = textStyles.lineWhite.color;
text.font = textStyles.lineWhite.font;
}
return widget;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment