| 1 |
# -*- coding: utf-8 -*- |
| 2 |
""" |
| 3 |
Pygments (light) version of the sublime Mariana theme. |
| 4 |
|
| 5 |
Pygments template by Jan T. Sott (https://github.com/idleberg) |
| 6 |
""" |
| 7 |
|
| 8 |
from pygments.style import Style |
| 9 |
from pygments.token import ( |
| 10 |
Keyword, |
| 11 |
Name, |
| 12 |
Comment, |
| 13 |
String, |
| 14 |
Error, |
| 15 |
Text, |
| 16 |
Number, |
| 17 |
Operator, |
| 18 |
Generic, |
| 19 |
Whitespace, |
| 20 |
Punctuation, |
| 21 |
Other, |
| 22 |
Literal, |
| 23 |
) |
| 24 |
|
| 25 |
|
| 26 |
BACKGROUND = "#f8f9fb" |
| 27 |
CURRENT_LINE = "#b7c0c8" |
| 28 |
SELECTION = "#d0d6dc" |
| 29 |
FOREGROUND = "#161c27" |
| 30 |
COMMENT = "#8d95a5" |
| 31 |
RED = "#e7323b" |
| 32 |
ORANGE = "#f79626" |
| 33 |
YELLOW = "#f9b52f" |
| 34 |
GREEN = "#70b069" |
| 35 |
AQUA = "#3d8f88" |
| 36 |
BLUE = "#407fbf" |
| 37 |
PURPLE = "#b474b4" |
| 38 |
|
| 39 |
|
| 40 |
class MarianaLight(Style): |
| 41 |
default_style = "" |
| 42 |
|
| 43 |
background_color = BACKGROUND |
| 44 |
highlight_color = SELECTION |
| 45 |
|
| 46 |
background_color = BACKGROUND |
| 47 |
highlight_color = SELECTION |
| 48 |
|
| 49 |
styles = { |
| 50 |
# No corresponding class for the following: |
| 51 |
Text: FOREGROUND, # class: '' |
| 52 |
Whitespace: "", # class: 'w' |
| 53 |
Error: RED, # class: 'err' |
| 54 |
Other: "", # class 'x' |
| 55 |
Comment: COMMENT, # class: 'c' |
| 56 |
Comment.Multiline: "", # class: 'cm' |
| 57 |
Comment.Preproc: "", # class: 'cp' |
| 58 |
Comment.Single: "", # class: 'c1' |
| 59 |
Comment.Special: "", # class: 'cs' |
| 60 |
Keyword: PURPLE, # class: 'k' |
| 61 |
Keyword.Constant: RED, # class: 'kc' |
| 62 |
Keyword.Declaration: "", # class: 'kd' |
| 63 |
Keyword.Namespace: PURPLE, # class: 'kn' |
| 64 |
Keyword.Pseudo: RED, # class: 'kp' |
| 65 |
Keyword.Reserved: "", # class: 'kr' |
| 66 |
Keyword.Type: YELLOW, # class: 'kt' |
| 67 |
Operator: RED, # class: 'o' |
| 68 |
Operator.Word: "", # class: 'ow' - like keywords |
| 69 |
Punctuation: AQUA, # class: 'p' |
| 70 |
Name: FOREGROUND, # class: 'n' |
| 71 |
Name.Attribute: BLUE, # class: 'na' - to be revised |
| 72 |
Name.Builtin: BLUE, # class: 'nb' |
| 73 |
Name.Builtin.Pseudo: RED, # class: 'bp' |
| 74 |
Name.Class: ORANGE, # class: 'nc' - to be revised |
| 75 |
Name.Constant: RED, # class: 'no' - to be revised |
| 76 |
Name.Decorator: AQUA, # class: 'nd' - to be revised |
| 77 |
Name.Entity: BLUE, # class: 'ni' |
| 78 |
Name.Exception: RED, # class: 'ne' |
| 79 |
Name.Function: AQUA, # class: 'nf' |
| 80 |
Name.Function.Magic: BLUE, # class: 'nf' |
| 81 |
Name.Property: BLUE, # class: 'py' |
| 82 |
Name.Label: BLUE, # class: 'nl' |
| 83 |
Name.Namespace: BLUE, # class: 'nn' - to be revised |
| 84 |
Name.Other: BLUE, # class: 'nx' |
| 85 |
Name.Tag: AQUA, # class: 'nt' - like a keyword |
| 86 |
Name.Variable: RED, # class: 'nv' - to be revised |
| 87 |
Name.Variable.Class: "", # class: 'vc' - to be revised |
| 88 |
Name.Variable.Global: "", # class: 'vg' - to be revised |
| 89 |
Name.Variable.Instance: "", # class: 'vi' - to be revised |
| 90 |
Number: ORANGE, # class: 'm' |
| 91 |
Number.Float: "", # class: 'mf' |
| 92 |
Number.Hex: "", # class: 'mh' |
| 93 |
Number.Integer: "", # class: 'mi' |
| 94 |
Number.Integer.Long: "", # class: 'il' |
| 95 |
Number.Oct: "", # class: 'mo' |
| 96 |
Literal: ORANGE, # class: 'l' |
| 97 |
Literal.Date: GREEN, # class: 'ld' |
| 98 |
String: GREEN, # class: 's' |
| 99 |
String.Backtick: "", # class: 'sb' |
| 100 |
String.Char: FOREGROUND, # class: 'sc' |
| 101 |
String.Doc: COMMENT, # class: 'sd' - like a comment |
| 102 |
String.Double: "", # class: 's2' |
| 103 |
String.Escape: ORANGE, # class: 'se' |
| 104 |
String.Heredoc: "", # class: 'sh' |
| 105 |
String.Interpol: ORANGE, # class: 'si' |
| 106 |
String.Other: "", # class: 'sx' |
| 107 |
String.Regex: "", # class: 'sr' |
| 108 |
String.Single: "", # class: 's1' |
| 109 |
String.Symbol: "", # class: 'ss' |
| 110 |
Generic: "", # class: 'g' |
| 111 |
Generic.Deleted: RED, # class: 'gd', |
| 112 |
Generic.Emph: "italic", # class: 'ge' |
| 113 |
Generic.Error: "", # class: 'gr' |
| 114 |
Generic.Heading: "bold " + FOREGROUND, # class: 'gh' |
| 115 |
Generic.Inserted: GREEN, # class: 'gi' |
| 116 |
Generic.Output: "", # class: 'go' |
| 117 |
Generic.Prompt: "bold " + COMMENT, # class: 'gp' |
| 118 |
Generic.Strong: "bold", # class: 'gs' |
| 119 |
Generic.Subheading: "bold " + AQUA, # class: 'gu' |
| 120 |
Generic.Traceback: "", # class: 'gt' |
| 121 |
} |