diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-09-21 08:19:02 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-09-21 08:19:02 +0300 |
commit | 9721a5f46bd2e3b1cc564cf615ef716658ef9c1a (patch) | |
tree | ad5a5197991ef7e7d4a6a44c954f8f946a5e9463 /src/prefs.c | |
parent | fb01da68c401287376699409858d2b0ec507e52b (diff) |
Added Prefs; placeholders for new options
Diffstat (limited to 'src/prefs.c')
-rw-r--r-- | src/prefs.c | 23 |
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 | |||
3 | void 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 | |||
19 | void deinit_Prefs(iPrefs *d) { | ||
20 | deinit_String(&d->gopherProxy); | ||
21 | deinit_String(&d->httpProxy); | ||
22 | deinit_String(&d->downloadDir); | ||
23 | } | ||