Exemple #1
0
# -*- coding: utf-8 -*-
"""An example compilation module."""

from theme_builder.compilation import Compilation

comp = Compilation("Lyte")
comp.copy_all("Lyte-Dark")
Exemple #2
0
# -*- coding: utf-8 -*-
"""An example compilation module."""

from theme_builder.color import Color
from theme_builder.compilation import Compilation

comp = Compilation("Lyte-Solarized-Light")
comp.copy_all("Lyte-Solarized")

new_options = {
    # Colors
    "fg":         Color("#002b36"),
    "bg":         Color("#fdf6e3"),
    "max_fg":     Color("#657b83"),
    "max_bg":     Color("#839496"),
}

for x in new_options:
    comp.options[x] = new_options[x]
Exemple #3
0
# -*- coding: utf-8 -*-
"""Create a Light version of our Lyte-Dark theme."""

from theme_builder.color import Color
from theme_builder.compilation import Compilation

# Create our compilation with a unique name
comp = Compilation("Lyte-Light")

# Copy everything from the given theme name
comp.copy_all("Lyte-Monokai")

# Use the light icons
comp.theme.set_iconset("Lyte-Light")

# Modified theme options - we really just flip the background and foreground colors
# The theme processor will take care of everything else
new_options = {
    # Base Colors
    "fg": Color(16, 16, 16),
    "bg": Color(250, 250, 250),
    "max_fg": Color(120, 120, 120),
    "max_bg": Color(128, 128, 128),
}

for x in new_options:
    comp.options[x] = new_options[x]

# Need more info as to what's going on? Check out this theme's parent theme, Lyte-Dark
Exemple #4
0
# -*- coding: utf-8 -*-
"""An example compilation module."""

from theme_builder.color import Color
from theme_builder.compilation import Compilation

comp = Compilation("Lyte-Solarized-Light")
comp.copy_all("Lyte-Solarized")

new_options = {
    # Colors
    "fg": Color("#002b36"),
    "bg": Color("#fdf6e3"),
    "max_fg": Color("#657b83"),
    "max_bg": Color("#839496"),
}

for x in new_options:
    comp.options[x] = new_options[x]
Exemple #5
0
# -*- coding: utf-8 -*-
"""An example compilation module."""

from theme_builder.color import Color
from theme_builder.compilation import Compilation

comp = Compilation("Lyte-Solarized")
comp.copy_all("Lyte-Monokai")

new_options = {
    # Colors
    "bg":         Color("#002b36"),
    "fg":         Color("#fdf6e3"),
    "max_bg":     Color("#657b83"),
    "max_fg":     Color("#839496"),

    "red": Color("#dc322f"),
    "orange": Color("#cb4b16"),
    "yellow": Color("#b58900"),
    "green": Color("#859900"),
    "cyan": Color("#2aa198"),
    "blue": Color("#268bd2"),
    "indigo": Color("#6c71c4"),
    "brown": Color("#d33682"),
}

for x in new_options:
    comp.options[x] = new_options[x]