Checkpoint
This commit is contained in:
223 files changed
+14770
-18352
No files matched your search
+2
-10
@@ -1,15 +1,5 @@
|
||||
package config
|
||||
|
||||
import (
|
||||
"image/color"
|
||||
"strings"
|
||||
|
||||
"github.com/BeatGlow/beatglow/ui"
|
||||
"github.com/BeatGlow/beatglow/ui/font"
|
||||
"github.com/mazznoer/csscolorparser"
|
||||
"github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
type Style struct {
|
||||
Color string `hcl:"color,optional"`
|
||||
Font string `hcl:"font,optional"`
|
||||
@@ -19,6 +9,7 @@ type Style struct {
|
||||
}
|
||||
|
||||
// Apply styles; errors are logged but don't override styles, so we don't break visuals.
|
||||
/*
|
||||
func (s Style) Apply(style *ui.Style) {
|
||||
if s.Color != "" {
|
||||
c, err := csscolorparser.Parse(s.Color)
|
||||
@@ -75,3 +66,4 @@ func (s Style) Apply(style *ui.Style) {
|
||||
logrus.WithField("hinting", s.Hinting).Warn("font hinting invalid")
|
||||
}
|
||||
}
|
||||
*/
|
||||
Reference in new issue
Block a user