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

void init_Prefs(iPrefs *d) {
    d->theme             = dark_ColorTheme;
    d->useSystemTheme    = iTrue;
    d->retainWindowSize  = iTrue;
    d->zoomPercent       = 100;
    d->forceLineWrap     = iFalse;
    d->lineWidth         = 40;
    d->bigFirstParagraph = iTrue;
    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);
}