@@ -6,12 +6,18 @@ type Styles struct {
6
6
Playfield lipgloss.Style
7
7
ColIndicator lipgloss.Style
8
8
TetriminoStyles map [byte ]lipgloss.Style
9
- Hold lipgloss. Style
9
+ Hold holdStyles
10
10
Information lipgloss.Style
11
11
RowIndicator lipgloss.Style
12
12
Bag lipgloss.Style
13
13
}
14
14
15
+ type holdStyles struct {
16
+ View lipgloss.Style
17
+ Label lipgloss.Style
18
+ Item lipgloss.Style
19
+ }
20
+
15
21
func DefaultStyles () * Styles {
16
22
s := Styles {
17
23
Playfield : lipgloss .NewStyle ().Border (lipgloss .RoundedBorder ()).Padding (0 ),
@@ -25,7 +31,11 @@ func DefaultStyles() *Styles {
25
31
'J' : lipgloss .NewStyle ().Foreground (lipgloss .Color ("#5C65A8" )),
26
32
'L' : lipgloss .NewStyle ().Foreground (lipgloss .Color ("#E07F3A" )),
27
33
},
28
- Hold : lipgloss .NewStyle ().Width (10 ).Height (5 ).Border (lipgloss .RoundedBorder (), true , false , true , true ).Align (lipgloss .Center , lipgloss .Center ),
34
+ Hold : holdStyles {
35
+ View : lipgloss .NewStyle ().Width (10 ).Height (5 ).Border (lipgloss .RoundedBorder (), true , false , true , true ).Align (lipgloss .Center , lipgloss .Center ),
36
+ Label : lipgloss .NewStyle ().Width (10 ).PaddingLeft (1 ).PaddingBottom (1 ),
37
+ Item : lipgloss .NewStyle ().Width (10 ).Height (2 ).Align (lipgloss .Center , lipgloss .Center ),
38
+ },
29
39
Information : lipgloss .NewStyle ().Width (13 ).Align (lipgloss .Left , lipgloss .Top ),
30
40
RowIndicator : lipgloss .NewStyle ().Foreground (lipgloss .Color ("#444049" )).Align (lipgloss .Left ).Padding (0 , 1 , 0 ),
31
41
Bag : lipgloss .NewStyle ().PaddingTop (1 ),
0 commit comments