-
Notifications
You must be signed in to change notification settings - Fork 1
/
Theme.cs
66 lines (61 loc) · 1.7 KB
/
Theme.cs
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
55
56
57
58
59
60
61
62
63
64
65
66
using Koioto.Support.Theme;
namespace Koioto.SamplePlugin.SyncLyrics
{
/// <summary>
/// SyncLyrics's theme configuration.
/// </summary>
public class Theme
{
/// <summary>
/// Offset of lyric's appear timing.
/// Smaller is faster.
/// Default: 100ms
/// </summary>
public int Offset { get; set; } = -100 * 1000;
/// <summary>
/// Position, scaling, opacity, and alignment setting.
/// </summary>
public NormalTexture Lyric { get; set; }
= new NormalTexture()
{
X = 960,
Y = 1080,
ScaleX = 1,
ScaleY = 1,
Opacity = 1,
ReferencePoint = Amaoto.ReferencePoint.BottomCenter
};
/// <summary>
/// Font setting.
/// </summary>
public StringTexture LyricFont { get; set; }
= new StringTexture()
{
Font = new Font()
{
FontSize = 48,
EdgeSize = 8
},
ForeColor = new Color()
{
Red = 255,
Green = 255,
Blue = 255,
},
BackColor = new Color()
{
Red = 0,
Green = 0,
Blue = 0
}
};
/// <summary>
/// Maximum width.
/// </summary>
public int MaximumWidth { get; set; } = 1520;
/// <summary>
/// Custom font.
/// </summary>
public string CustomFont { get; set; } = null;
}
}