summaryrefslogtreecommitdiff
path: root/src/prefs.h
blob: 53f5dfd7653ee82d011843b2a28106b6cf78f8bd (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
30
31
32
33
34
#pragma once
#include <the_Foundation/string.h>

#include "gmdocument.h"
#include "ui/color.h"
#include "ui/text.h"

/* User preferences */

iDeclareType(Prefs)

struct Impl_Prefs {
    iBool retainWindowSize;
    float uiScale;    
    int zoomPercent;
    iBool useSystemTheme;
    enum iColorTheme theme;
    iString gopherProxy;
    iString httpProxy;
    iString downloadDir;
    /* Content */
    enum iTextFont font;
    enum iTextFont headingFont;
    int lineWidth;
    iBool bigFirstParagraph;
    iBool forceLineWrap;
    iBool sideIcon;
    iBool hoverOutline;
    enum iGmDocumentTheme docThemeDark;
    enum iGmDocumentTheme docThemeLight;
    float saturation;
};

iDeclareTypeConstruction(Prefs)