import dracula.draw

def init(c):
    #c.colors.webpage.darkmode.enabled = True
    #c.colors.webpage.darkmode.policy.images = 'never'
    c.colors.webpage.preferred_color_scheme = 'dark'

    #c.content.proxy = "socks://localhost:9050/"
    c.content.headers.accept_language = "en-US,en;q=0.5"
    c.content.headers.custom = {
        "accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
    }

    c.downloads.position = 'bottom'

    c.fonts.hints = 'bold 18px default_family'

    c.tabs.background = True
    c.tabs.mousewheel_switching = False
    c.tabs.new_position.related = 'last'
    c.tabs.pinned.frozen = False

    c.url.searchengines = {
        'DEFAULT': 'https://duckduckgo.com/?q={}',
    }

    dracula.draw.blood(c, {
        'spacing': {
            'vertical': 1,
            'horizontal': 3
        }
    })