Browse Source

Fixed some comments.

Oliver 3 months ago
parent
commit
d3efe1d5e8
1 changed files with 4 additions and 5 deletions
  1. 4
    5
      styles.go

+ 4
- 5
styles.go View File

@@ -2,8 +2,7 @@ package tview
2 2
 
3 3
 import "github.com/gdamore/tcell"
4 4
 
5
-// Styles defines various colors used when primitives are initialized. These
6
-// may be changed to accommodate a different look and feel.
5
+// Theme defines the colors used when primitives are initialized.
7 6
 type Theme struct {
8 7
 	PrimitiveBackgroundColor    tcell.Color // Main background color for primitives.
9 8
 	ContrastBackgroundColor     tcell.Color // Background color for contrasting elements.
@@ -18,9 +17,9 @@ type Theme struct {
18 17
 	ContrastSecondaryTextColor  tcell.Color // Secondary text on ContrastBackgroundColor-colored backgrounds.
19 18
 }
20 19
 
21
-// Styles is the global singleton which effects the current theming of widgets
22
-// The default is for applications with a black background and basic colors:
23
-// black, white, yellow, green, and blue.
20
+// Styles defines the theme for applications. The default is for a black
21
+// background and some basic colors: black, white, yellow, green, cyan, and
22
+// blue.
24 23
 var Styles = Theme{
25 24
 	PrimitiveBackgroundColor:    tcell.ColorBlack,
26 25
 	ContrastBackgroundColor:     tcell.ColorBlue,

Loading…
Cancel
Save