12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- #ifndef CONFIG_H_INCLUDED
- #define CONFIG_H_INCLUDED
- #include <libconfig.h>
- extern config_t config; // badwolf.c
- int read_config(config_t *config, const char *config_path);
- #define BADWOLF_TAB_LABEL_CHARWIDTH 26
- /* BADWOLF_TAB_LABEL_ELLIPSIZE: pango ellipsize mode of the tab label text, can be one of:
- * - PANGO_ELLIPSIZE_NONE
- * - PANGO_ELLIPSIZE_START
- * - PANGO_ELLIPSIZE_MIDDLE
- * - PANGO_ELLIPSIZE_END
- *
- * See https://developer.gnome.org/pango/stable/pango-Layout-Objects.html#PangoEllipsizeMode
- */
- #define BADWOLF_TAB_LABEL_ELLIPSIZE PANGO_ELLIPSIZE_MIDDLE
- // BADWOLF_BOX_PADDING: Amount of padding between browser’s box (tab child) elements
- #define BADWOLF_BOX_PADDING 0
- // BADWOLF_TOOLBAR_PADDING: Amount of padding between toolbar elements
- #define BADWOLF_TOOLBAR_PADDING 0
- // BADWOLF_TOOLBAR_PADDING: Amount of padding between toolbar elements
- #define BADWOLF_TOOLBAR_SEPARATOR_PADDING 4
- // BADWOLF_STATUSBAR_PADDING: Amount of padding between statusbar elements
- #define BADWOLF_STATUSBAR_PADDING 0
- // BADWOLF_DOWNLOAD_PADDING: Amount of padding between download list row-elements
- #define BADWOLF_DOWNLOAD_PADDING 5
- /* BADWOLF_WEBKIT_SETTINGS:
- * Used when creating a new view with webkit_settings_new_with_settings the usage is:
- * setting-name, setting-value, setting-name, …, NULL
- *
- * See: https://webkitgtk.org/reference/webkit2gtk/stable/WebKitSettings.html
- */
- // clang-format off
- #define BADWOLF_WEBKIT_SETTINGS \
- "default-charset", "utf-8", \
- "enable-accelerated-2d-canvas", FALSE, \
- "enable-caret-browsing", FALSE, \
- "enable-developer-extras", TRUE, \
- "enable-dns-prefetching", FALSE, \
- "enable-hyperlink-auditing", FALSE, \
- "enable-java", FALSE, \
- "enable-javascript-markup", FALSE, \
- "enable-javascript", TRUE, \
- "enable-plugins", FALSE, \
- "javascript-can-access-clipboard", FALSE, \
- "javascript-can-open-windows-automatically", FALSE, \
- "media-playback-requires-user-gesture", TRUE, \
- "minimum-font-size", 9, \
- "allow-top-navigation-to-data-urls", FALSE, \
- NULL
- // clang-format on
- /* BADWOLF_STATUSLABEL_ELLIPSIZE: pango ellipsize mode of the status bar label text, can be one of:
- * - PANGO_ELLIPSIZE_NONE
- * - PANGO_ELLIPSIZE_START
- * - PANGO_ELLIPSIZE_MIDDLE
- * - PANGO_ELLIPSIZE_END
- *
- * See https://developer.gnome.org/pango/stable/pango-Layout-Objects.html#PangoEllipsizeMode
- */
- #define BADWOLF_STATUSLABEL_ELLIPSIZE PANGO_ELLIPSIZE_MIDDLE
- /* BADWOLF_DOWNLOAD_FILE_PATH_ELLIPSIZE: pango ellipsize mode of the download destination path,
- * can be one of:
- * - PANGO_ELLIPSIZE_NONE
- * - PANGO_ELLIPSIZE_START
- * - PANGO_ELLIPSIZE_MIDDLE
- * - PANGO_ELLIPSIZE_END
- *
- * See https://developer.gnome.org/pango/stable/pango-Layout-Objects.html#PangoEllipsizeMode
- */
- #define BADWOLF_DOWNLOAD_FILE_PATH_ELLIPSIZE PANGO_ELLIPSIZE_MIDDLE
- #endif /* CONFIG_H_INCLUDED */
|