From 0fba84f9dee6765c66be1b94aeac75acd134ce00 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jaakko=20Ker=C3=A4nen?= jaakko.keranen@iki.fi
Date: Wed, 3 Feb 2021 10:56:22 +0200
Subject: [PATCH 1/1] Improved first-run experience
Use a remote source for Getting Started bookmarks. Tweaked default
values of preferences.
src/app.c | 25 +++++++++----------------
src/prefs.c | 2 +-
src/ui/window.c | 2 +-
3 files changed, 11 insertions(+), 18 deletions(-)
diff --git a/src/app.c b/src/app.c
index a2d80bf2..10e6d4ee 100644
--- a/src/app.c
+++ b/src/app.c
@@ -353,7 +353,9 @@ static void init_App_(iApp *d, int argc, char **argv) {
d->launchCommands = new_StringList();
iZap(d->lastDropTime);
init_CommandLine(&d->args, argc, argv);
not a reliable source of this information, particularly when it comes to different
operating systems. */ {
char *exec = SDL_GetBasePath();
if (exec) {
d->execPath = newCStr_String(concatPath_CStr(
@@ -409,26 +411,17 @@ static void init_App_(iApp *d, int argc, char **argv) {
load_MimeHooks(d->mimehooks, dataDir_App_);
if (isFirstRun) {
/* Create the default bookmarks for a quick start. */
add_Bookmarks(d->bookmarks,
collectNewCStr_String("gemini://gemini.circumlunar.space/"),
collectNewCStr_String("Project Gemini"),
NULL,
0x264a /* Gemini symbol */);
add_Bookmarks(d->bookmarks,
collectNewCStr_String("gemini://gemini.circumlunar.space/capcom/"),
collectNewCStr_String("CAPCOM Geminispace aggregator"),
NULL,
0x264a /* Gemini symbol */);
add_Bookmarks(d->bookmarks,
collectNewCStr_String("gemini://gus.guru/"),
collectNewCStr_String("GUS - Gemini Universal Search"),
NULL,
0x2690);
add_Bookmarks(d->bookmarks,
collectNewCStr_String("gemini://skyjake.fi/lagrange/"),
collectNewCStr_String("Lagrange"),
NULL,
0x1f306);
add_Bookmarks(d->bookmarks,
collectNewCStr_String("gemini://skyjake.fi/lagrange/getting_started.gmi"),
collectNewCStr_String("Getting Started"),
collectNewCStr_String("remotesource"),
0x1f306);
fetchRemote_Bookmarks(d->bookmarks);
}
#if defined (iHaveLoadEmbed)
/* Load the resources from a file. */ {
diff --git a/src/prefs.c b/src/prefs.c
index ce32962b..fe755c63 100644
--- a/src/prefs.c
+++ b/src/prefs.c
@@ -39,7 +39,7 @@ void init_Prefs(iPrefs *d) {
d->headingFont = nunito_TextFont;
d->monospaceGemini = iFalse;
d->monospaceGopher = iFalse;
d->bigFirstParagraph = iTrue;
d->quoteIcon = iTrue;
d->docThemeDark = colorfulDark_GmDocumentTheme;
diff --git a/src/ui/window.c b/src/ui/window.c
index f8123a17..1fed8025 100644
--- a/src/ui/window.c
+++ b/src/ui/window.c
@@ -56,7 +56,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
static iWindow *theWindow_ = NULL;
-#if defined (iPlatformApple)
+#if defined (iPlatformApple) || defined (iPlatformLinux)
static float initialUiScale_ = 1.0f;
#else
static float initialUiScale_ = 1.1f;
--
2.25.1
text/plain
This content has been proxied by September (ba2dc).