summaryrefslogtreecommitdiff
path: root/src/prefs.h
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-11-28 09:55:20 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-11-28 09:55:20 +0200
commitab44b19cf747c348099c5aa86fcaf8bf0be628c9 (patch)
treec5d83666eab5c3f7f1dc5c2ccdd4ee8db31696c3 /src/prefs.h
parente05a704154712184d73d85a3033e01337a11b380 (diff)
Cleanup
Diffstat (limited to 'src/prefs.h')
-rw-r--r--src/prefs.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/prefs.h b/src/prefs.h
index 2fbff9de..c9abfc8e 100644
--- a/src/prefs.h
+++ b/src/prefs.h
@@ -33,6 +33,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
33iDeclareType(Prefs) 33iDeclareType(Prefs)
34 34
35enum iPrefsString { 35enum iPrefsString {
36 /* General */
36 uiLanguage_PrefsString, 37 uiLanguage_PrefsString,
37 downloadDir_PrefsString, 38 downloadDir_PrefsString,
38 searchUrl_PrefsString, 39 searchUrl_PrefsString,
@@ -56,25 +57,27 @@ enum iPrefsString {
56 convention for notifications. */ 57 convention for notifications. */
57struct Impl_Prefs { 58struct Impl_Prefs {
58 iString strings[max_PrefsString]; 59 iString strings[max_PrefsString];
59 /* UI state */ 60 /* UI state (belongs to state.lgr...) */
60 int dialogTab; 61 int dialogTab;
61 int langFrom; 62 int langFrom;
62 int langTo; 63 int langTo;
63 /* Window */ 64 /* Colors */
64 iBool useSystemTheme; 65 iBool useSystemTheme;
65 enum iColorTheme systemPreferredColorTheme[2]; /* dark, light */ 66 enum iColorTheme systemPreferredColorTheme[2]; /* dark, light */
66 enum iColorTheme theme; 67 enum iColorTheme theme;
67 enum iColorAccent accent; 68 enum iColorAccent accent;
69 /* Window and User Interface */
68 iBool customFrame; /* when LAGRANGE_ENABLE_CUSTOM_FRAME is defined */ 70 iBool customFrame; /* when LAGRANGE_ENABLE_CUSTOM_FRAME is defined */
69 iBool retainWindowSize; 71 iBool retainWindowSize;
70 iBool uiAnimations; 72 iBool uiAnimations;
71 float uiScale; 73 float uiScale;
74 iBool hideToolbarOnScroll;
75 /* Document presentation */
72 int zoomPercent; 76 int zoomPercent;
73 iBool sideIcon; 77 iBool sideIcon;
74 iBool hideToolbarOnScroll;
75 int pinSplit; /* 0: no pinning, 1: left doc, 2: right doc */
76 iBool time24h; 78 iBool time24h;
77 /* Behavior */ 79 /* Behavior */
80 int pinSplit; /* 0: no pinning, 1: left doc, 2: right doc */
78 int returnKey; 81 int returnKey;
79 iBool hoverLink; 82 iBool hoverLink;
80 iBool smoothScrolling; 83 iBool smoothScrolling;