summaryrefslogtreecommitdiff
path: root/src/prefs.c
blob: 1fcb1b8ea886d02c5d1b9b9241f7a4dc756116b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include "prefs.h"

void init_Prefs(iPrefs *d) {
    d->dialogTab         = 0;
    d->theme             = dark_ColorTheme;
    d->useSystemTheme    = iTrue;
    d->retainWindowSize  = iTrue;
    d->zoomPercent       = 100;
    d->forceLineWrap     = iFalse;
    d->quoteIcon         = iTrue;
    d->font              = nunito_TextFont;
    d->headingFont       = nunito_TextFont;
    d->lineWidth         = 40;
    d->bigFirstParagraph = iTrue;
    d->sideIcon          = iTrue;
    d->hoverOutline      = iFalse;
    d->docThemeDark      = colorfulDark_GmDocumentTheme;
    d->docThemeLight     = white_GmDocumentTheme;
    d->saturation        = 1.0f;
    init_String(&d->gopherProxy);
    init_String(&d->httpProxy);
    init_String(&d->downloadDir);
}

void deinit_Prefs(iPrefs *d) {
    deinit_String(&d->gopherProxy);
    deinit_String(&d->httpProxy);
    deinit_String(&d->downloadDir);
}