config.h 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. #ifndef CONFIG_H_INCLUDED
  2. #define CONFIG_H_INCLUDED
  3. /* BADWOLF_TAB_POSITION: Position of the tab listing, can be one of:
  4. * - GTK_POS_TOP
  5. * - GTK_POS_BOTTOM
  6. * - GTK_POS_RIGHT
  7. * - GTK_POS_LEFT
  8. *
  9. * See https://developer.gnome.org/gtk3/stable/gtk3-Standard-Enumerations.html#GtkPositionType
  10. */
  11. #define BADWOLF_TAB_POSITION GTK_POS_TOP
  12. /* BADWOLF_TAB_LABEL_CHARWIDTH: Amount of characters the tab label text fits
  13. * Quite conflicts with BADWOLF_TAB_BOX_WIDTH, recommended to only define one
  14. */
  15. #define BADWOLF_TAB_LABEL_CHARWIDTH 26
  16. /* BADWOLF_TAB_BOX_WIDTH: Requested width (in pixels) for the whole tab
  17. * Quite conflicts with BADWOLF_TAB_LABEL_CHARWIDTH, recommended to only define one
  18. */
  19. //#define BADWOLF_TAB_BOX_WIDTH 120
  20. // BADWOLF_TAB_HEXPAND: Should the tab try to fill the available horizontal space?
  21. #define BADWOLF_TAB_HEXPAND FALSE
  22. /* BADWOLF_TAB_LABEL_ELLIPSIZE: pango ellipsize mode of the tab label text, can be one of:
  23. * - PANGO_ELLIPSIZE_NONE
  24. * - PANGO_ELLIPSIZE_START
  25. * - PANGO_ELLIPSIZE_MIDDLE
  26. * - PANGO_ELLIPSIZE_END
  27. *
  28. * See https://developer.gnome.org/pango/stable/pango-Layout-Objects.html#PangoEllipsizeMode
  29. */
  30. #define BADWOLF_TAB_LABEL_ELLIPSIZE PANGO_ELLIPSIZE_MIDDLE
  31. // BADWOLF_BOX_PADDING: Amount of padding between browser’s box (tab child) elements
  32. #define BADWOLF_BOX_PADDING 0
  33. // BADWOLF_TOOLBAR_PADDING: Amount of padding between toolbar elements
  34. #define BADWOLF_TOOLBAR_PADDING 0
  35. // BADWOLF_STATUSBAR_PADDING: Amount of padding between statusbar elements
  36. #define BADWOLF_STATUSBAR_PADDING 0
  37. /* BADWOLF_DEFAULT_WIDTH / BADWOLF_DEFAULT_HEIGHT:
  38. * Used to define the default width/height of the window,
  39. * useful for floating Window Managers, probably useless in tiling ones
  40. *
  41. * See https://developer.gnome.org/gtk3/stable/GtkWindow.html#gtk-window-set-default-size
  42. */
  43. #define BADWOLF_DEFAULT_WIDTH 800
  44. #define BADWOLF_DEFAULT_HEIGHT 600
  45. /* BADWOLF_WEBKIT_SETTINGS:
  46. * Used when creating a new view with webkit_settings_new_with_settings the usage is:
  47. * setting-name, setting-value, setting-name, …, NULL
  48. *
  49. * See: https://webkitgtk.org/reference/webkit2gtk/stable/WebKitSettings.html
  50. */
  51. // clang-format off
  52. #define BADWOLF_WEBKIT_SETTINGS \
  53. "default-charset", "utf-8", \
  54. "enable-accelerated-2d-canvas", FALSE, \
  55. "enable-caret-browsing", FALSE, \
  56. "enable-developer-extras", TRUE, \
  57. "enable-dns-prefetching", FALSE, \
  58. "enable-hyperlink-auditing", FALSE, \
  59. "enable-java", FALSE, \
  60. "enable-javascript-markup", FALSE, \
  61. "enable-javascript", TRUE, \
  62. "enable-plugins", FALSE, \
  63. "javascript-can-access-clipboard", FALSE, \
  64. "javascript-can-open-windows-automatically", FALSE, \
  65. "media-playback-requires-user-gesture", TRUE, \
  66. "minimum-font-size", 9, \
  67. NULL
  68. // clang-format on
  69. /* BADWOLF_STATUSLABEL_ELLIPSIZE: pango ellipsize mode of the status bar label text, can be one of:
  70. * - PANGO_ELLIPSIZE_NONE
  71. * - PANGO_ELLIPSIZE_START
  72. * - PANGO_ELLIPSIZE_MIDDLE
  73. * - PANGO_ELLIPSIZE_END
  74. *
  75. * See https://developer.gnome.org/pango/stable/pango-Layout-Objects.html#PangoEllipsizeMode
  76. */
  77. #define BADWOLF_STATUSLABEL_ELLIPSIZE PANGO_ELLIPSIZE_MIDDLE
  78. /* BADWOLF_PREFER_DARK_THEME: Overwrites user GtkSettings for gtk-application-prefer-dark-theme
  79. * Done as a temporary workaround against https://bugs.webkit.org/show_bug.cgi?id=197947
  80. * Remove definition to keep user settings, should only be done once the bug is fixed.
  81. */
  82. #define BADWOLF_PREFER_DARK_THEME FALSE
  83. #endif /* CONFIG_H_INCLUDED */