-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update bromite to new version * Add patch for improving plain text rendering on mobile * Update patches to latest Bromite version * Add rebranding to welcome screen, fix auto-updater on welcome screen
- Loading branch information
1 parent
fb74844
commit 0716db3
Showing
6 changed files
with
1,692 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
0001-AG-Rebrand-to-Agregore.patch | ||
0001-AG-Improve-plain-text-rendering-on-mobile.patch | ||
0001-AG-IPFS-Daemon.patch | ||
0001-AG-Handle-IPFS-and-IPNS-URLs.patch | ||
0001-AG-Wifi-Auto-Connect.patch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
100.0.4896.135 | ||
101.0.4951.53 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
patches/0001-AG-Improve-plain-text-rendering-on-mobile.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
From 85015b1924acca9c57658ca2890ce30b30334d71 Mon Sep 17 00:00:00 2001 | ||
From: mauve <ranger@mauve.moe> | ||
Date: Mon, 30 May 2022 22:25:04 -0400 | ||
Subject: [PATCH] AG Improve plain text rendering on mobile | ||
|
||
--- | ||
.../renderer/core/html/parser/text_document_parser.cc | 11 ++++++++++- | ||
1 file changed, 10 insertions(+), 1 deletion(-) | ||
|
||
diff --git a/third_party/blink/renderer/core/html/parser/text_document_parser.cc b/third_party/blink/renderer/core/html/parser/text_document_parser.cc | ||
index 1cfe08f19d..6d05978e0f 100644 | ||
--- a/third_party/blink/renderer/core/html/parser/text_document_parser.cc | ||
+++ b/third_party/blink/renderer/core/html/parser/text_document_parser.cc | ||
@@ -63,9 +63,18 @@ void TextDocumentParser::InsertFakePreElement() { | ||
TreeBuilder()->ConstructTree(&fake_meta); | ||
attributes.clear(); | ||
|
||
+ // Scale up text to look good on Mobile | ||
+ attributes.push_back(Attribute(html_names::kNameAttr, "viewport")); | ||
+ attributes.push_back(Attribute(html_names::kContentAttr, | ||
+ "width=device-width, initial-scale=1.0, maximum-scale=1.0")); | ||
+ AtomicHTMLToken viewport_meta(HTMLToken::kStartTag, | ||
+ html_names::kMetaTag.LocalName(), attributes); | ||
+ TreeBuilder()->ConstructTree(&viewport_meta); | ||
+ attributes.clear(); | ||
+ | ||
// Wrap the actual contents of the text file in <pre>. | ||
attributes.push_back(Attribute( | ||
- html_names::kStyleAttr, "word-wrap: break-word; white-space: pre-wrap;")); | ||
+ html_names::kStyleAttr, "word-wrap: break-word; white-space: pre-wrap; font-family: system-ui;")); | ||
AtomicHTMLToken fake_pre(HTMLToken::kStartTag, | ||
html_names::kPreTag.LocalName(), attributes); | ||
TreeBuilder()->ConstructTree(&fake_pre); | ||
-- | ||
2.34.1 | ||
|
Oops, something went wrong.