Browse Source

add margins

CPP-GTK4
yggverse 1 month ago
parent
commit
ebbaf772f0
  1. 8
      src/app/browser/main/tab/page/content/text/gemini/reader.cpp
  2. 6
      src/app/browser/main/tab/page/content/text/gemini/reader.hpp

8
src/app/browser/main/tab/page/content/text/gemini/reader.cpp

@ -91,6 +91,14 @@ Reader::Reader(
Gtk::Align::START Gtk::Align::START
); );
set_margin_start(
MARGIN_START
);
set_margin_end(
MARGIN_END
);
set_wrap( set_wrap(
true true
); );

6
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 * Internal members
*/ */
// Shared actions
Glib::RefPtr<Gio::SimpleAction> action__open_link_variant; Glib::RefPtr<Gio::SimpleAction> action__open_link_variant;
// Defaults
const int MARGIN_START = 6;
const int MARGIN_END = 6;
/* /*
* Reader class API * Reader class API
*/ */

Loading…
Cancel
Save