From ebbaf772f0b333c816502f60539a2da7d2f03e00 Mon Sep 17 00:00:00 2001 From: yggverse Date: Sun, 15 Sep 2024 19:44:14 +0300 Subject: [PATCH] add margins --- .../browser/main/tab/page/content/text/gemini/reader.cpp | 8 ++++++++ .../browser/main/tab/page/content/text/gemini/reader.hpp | 6 ++++++ 2 files changed, 14 insertions(+) diff --git a/src/app/browser/main/tab/page/content/text/gemini/reader.cpp b/src/app/browser/main/tab/page/content/text/gemini/reader.cpp index 5b9b3d4a..69803124 100644 --- a/src/app/browser/main/tab/page/content/text/gemini/reader.cpp +++ b/src/app/browser/main/tab/page/content/text/gemini/reader.cpp @@ -91,6 +91,14 @@ Reader::Reader( Gtk::Align::START ); + set_margin_start( + MARGIN_START + ); + + set_margin_end( + MARGIN_END + ); + set_wrap( true ); diff --git a/src/app/browser/main/tab/page/content/text/gemini/reader.hpp b/src/app/browser/main/tab/page/content/text/gemini/reader.hpp index 5aea57dc..eacc9f69 100644 --- a/src/app/browser/main/tab/page/content/text/gemini/reader.hpp +++ b/src/app/browser/main/tab/page/content/text/gemini/reader.hpp @@ -67,8 +67,14 @@ namespace app::browser::main::tab::page::content::text::gemini /* * Internal members */ + + // Shared actions Glib::RefPtr action__open_link_variant; + // Defaults + const int MARGIN_START = 6; + const int MARGIN_END = 6; + /* * Reader class API */