1
0
mirror of https://gitea.com/Sirherobrine23/tea.git synced 2024-07-16 13:36:22 -03:00
tea/vendor/github.com/alecthomas/chroma/styles/murphy.go
6543 89e93d90b3 Use glamour and termev to render/colorize content (#181)
Merge branch 'master' into use-glamour

select Glamour Theme based on BackgroundColor

Merge branch 'master' into use-glamour

Merge branch 'master' into use-glamour

update termev

update go.mod

label color colorate

use glamour for issue content

Vendor: Add glamour

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://gitea.com/gitea/tea/pulls/181
Reviewed-by: techknowlogick <techknowlogick@gitea.io>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
2020-09-19 16:00:50 +00:00

60 lines
2.2 KiB
Go

package styles
import (
"github.com/alecthomas/chroma"
)
// Murphy style.
var Murphy = Register(chroma.MustNewStyle("murphy", chroma.StyleEntries{
chroma.TextWhitespace: "#bbbbbb",
chroma.Comment: "#666 italic",
chroma.CommentPreproc: "#579 noitalic",
chroma.CommentSpecial: "#c00 bold",
chroma.Keyword: "bold #289",
chroma.KeywordPseudo: "#08f",
chroma.KeywordType: "#66f",
chroma.Operator: "#333",
chroma.OperatorWord: "bold #000",
chroma.NameBuiltin: "#072",
chroma.NameFunction: "bold #5ed",
chroma.NameClass: "bold #e9e",
chroma.NameNamespace: "bold #0e84b5",
chroma.NameException: "bold #F00",
chroma.NameVariable: "#036",
chroma.NameVariableInstance: "#aaf",
chroma.NameVariableClass: "#ccf",
chroma.NameVariableGlobal: "#f84",
chroma.NameConstant: "bold #5ed",
chroma.NameLabel: "bold #970",
chroma.NameEntity: "#800",
chroma.NameAttribute: "#007",
chroma.NameTag: "#070",
chroma.NameDecorator: "bold #555",
chroma.LiteralString: "bg:#e0e0ff",
chroma.LiteralStringChar: "#88F bg:",
chroma.LiteralStringDoc: "#D42 bg:",
chroma.LiteralStringInterpol: "bg:#eee",
chroma.LiteralStringEscape: "bold #666",
chroma.LiteralStringRegex: "bg:#e0e0ff #000",
chroma.LiteralStringSymbol: "#fc8 bg:",
chroma.LiteralStringOther: "#f88",
chroma.LiteralNumber: "bold #60E",
chroma.LiteralNumberInteger: "bold #66f",
chroma.LiteralNumberFloat: "bold #60E",
chroma.LiteralNumberHex: "bold #058",
chroma.LiteralNumberOct: "bold #40E",
chroma.GenericHeading: "bold #000080",
chroma.GenericSubheading: "bold #800080",
chroma.GenericDeleted: "#A00000",
chroma.GenericInserted: "#00A000",
chroma.GenericError: "#FF0000",
chroma.GenericEmph: "italic",
chroma.GenericStrong: "bold",
chroma.GenericPrompt: "bold #c65d09",
chroma.GenericOutput: "#888",
chroma.GenericTraceback: "#04D",
chroma.GenericUnderline: "underline",
chroma.Error: "#F00 bg:#FAA",
chroma.Background: " bg:#ffffff",
}))