summaryrefslogtreecommitdiff
path: root/src/prefs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/prefs.c')
-rw-r--r--src/prefs.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/prefs.c b/src/prefs.c
new file mode 100644
index 00000000..d773acbd
--- /dev/null
+++ b/src/prefs.c
@@ -0,0 +1,23 @@
1#include "prefs.h"
2
3void init_Prefs(iPrefs *d) {
4 d->theme = dark_ColorTheme;
5 d->useSystemTheme = iTrue;
6 d->retainWindowSize = iTrue;
7 d->zoomPercent = 100;
8 d->forceLineWrap = iFalse;
9 d->lineWidth = 40;
10 d->bigFirstParagraph = iTrue;
11 d->docThemeDark = colorfulDark_GmDocumentTheme;
12 d->docThemeLight = white_GmDocumentTheme;
13 d->saturation = 1.0f;
14 init_String(&d->gopherProxy);
15 init_String(&d->httpProxy);
16 init_String(&d->downloadDir);
17}
18
19void deinit_Prefs(iPrefs *d) {
20 deinit_String(&d->gopherProxy);
21 deinit_String(&d->httpProxy);
22 deinit_String(&d->downloadDir);
23}