summaryrefslogtreecommitdiff
path: root/src/prefs.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/prefs.h')
-rw-r--r--src/prefs.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/prefs.h b/src/prefs.h
index ea864f51..d988399e 100644
--- a/src/prefs.h
+++ b/src/prefs.h
@@ -75,6 +75,7 @@ enum iPrefsBool {
75 hoverLink_PrefsBool, 75 hoverLink_PrefsBool,
76 smoothScrolling_PrefsBool, 76 smoothScrolling_PrefsBool,
77 loadImageInsteadOfScrolling_PrefsBool, 77 loadImageInsteadOfScrolling_PrefsBool,
78 openDataUrlImagesOnLoad_PrefsBool,
78 collapsePreOnLoad_PrefsBool, 79 collapsePreOnLoad_PrefsBool,
79 openArchiveIndexPages_PrefsBool, 80 openArchiveIndexPages_PrefsBool,
80 81
@@ -128,6 +129,7 @@ struct Impl_Prefs {
128 iBool hoverLink; 129 iBool hoverLink;
129 iBool smoothScrolling; 130 iBool smoothScrolling;
130 iBool loadImageInsteadOfScrolling; 131 iBool loadImageInsteadOfScrolling;
132 iBool openDataUrlImagesOnLoad;
131 iBool collapsePreOnLoad; 133 iBool collapsePreOnLoad;
132 iBool openArchiveIndexPages; 134 iBool openArchiveIndexPages;
133 135
@@ -172,6 +174,7 @@ struct Impl_Prefs {
172 /* Network */ 174 /* Network */
173 int maxCacheSize; /* MB */ 175 int maxCacheSize; /* MB */
174 int maxMemorySize; /* MB */ 176 int maxMemorySize; /* MB */
177 int maxUrlSize; /* bytes; longer ones will be disregarded */
175 /* Style */ 178 /* Style */
176 iStringSet * disabledFontPacks; 179 iStringSet * disabledFontPacks;
177 int gemtextAnsiEscapes; 180 int gemtextAnsiEscapes;
@@ -190,3 +193,7 @@ iLocalDef float scrollSpeedFactor_Prefs(const iPrefs *d, enum iScrollType type)
190 iAssert(type >= 0 && type < max_ScrollType); 193 iAssert(type >= 0 && type < max_ScrollType);
191 return 10.0f / iMax(1, d->smoothScrollSpeed[type]) * (type == mouse_ScrollType ? 0.5f : 1.0f); 194 return 10.0f / iMax(1, d->smoothScrollSpeed[type]) * (type == mouse_ScrollType ? 0.5f : 1.0f);
192} 195}
196
197iLocalDef enum iGmDocumentTheme docTheme_Prefs(const iPrefs *d) {
198 return isDark_ColorTheme(d->theme) ? d->docThemeDark : d->docThemeLight;
199}