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);

     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://skyjake.fi/lagrange/"),

                   collectNewCStr_String("Lagrange"),

                   NULL,

                   0x1f306);

 }

#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

Proxy Information
Original URL
gemini://git.skyjake.fi/lagrange/dev/patch/0fba84f9dee6765c66be1b94aeac75acd134ce00.patch
Status Code
Success (20)
Meta
text/plain
Capsule Response Time
27.709846 milliseconds
Gemini-to-HTML Time
1.0601 milliseconds

This content has been proxied by September (ba2dc).