summaryrefslogtreecommitdiff
path: root/src/prefs.c
blob: af48123362e7ae5fe453c7b4942530366dbb40f3 (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
#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->font              = 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);
}