summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-02-03 10:56:22 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-02-03 10:56:22 +0200
commit91ddc716d5b1516f1a277bfa01b276fcacb2bb43 (patch)
tree63e8a71636209d1ddbd6c3e85975296151ca1b0d /src
parent37221b0511b6a937d4612f5cebf17eb2bfadec32 (diff)
Improved first-run experience
Use a remote source for Getting Started bookmarks. Tweaked default values of preferences.
Diffstat (limited to 'src')
-rw-r--r--src/app.c25
-rw-r--r--src/prefs.c2
-rw-r--r--src/ui/window.c2
3 files changed, 11 insertions, 18 deletions
diff --git a/src/app.c b/src/app.c
index c2b95bdb..3fc1da34 100644
--- a/src/app.c
+++ b/src/app.c
@@ -354,7 +354,9 @@ static void init_App_(iApp *d, int argc, char **argv) {
354 d->launchCommands = new_StringList(); 354 d->launchCommands = new_StringList();
355 iZap(d->lastDropTime); 355 iZap(d->lastDropTime);
356 init_CommandLine(&d->args, argc, argv); 356 init_CommandLine(&d->args, argc, argv);
357 /* Where was the app started from? */ { 357 /* Where was the app started from? We ask SDL first because the command line alone is
358 not a reliable source of this information, particularly when it comes to different
359 operating systems. */ {
358 char *exec = SDL_GetBasePath(); 360 char *exec = SDL_GetBasePath();
359 if (exec) { 361 if (exec) {
360 d->execPath = newCStr_String(concatPath_CStr( 362 d->execPath = newCStr_String(concatPath_CStr(
@@ -411,25 +413,16 @@ static void init_App_(iApp *d, int argc, char **argv) {
411 if (isFirstRun) { 413 if (isFirstRun) {
412 /* Create the default bookmarks for a quick start. */ 414 /* Create the default bookmarks for a quick start. */
413 add_Bookmarks(d->bookmarks, 415 add_Bookmarks(d->bookmarks,
414 collectNewCStr_String("gemini://gemini.circumlunar.space/"),
415 collectNewCStr_String("Project Gemini"),
416 NULL,
417 0x264a /* Gemini symbol */);
418 add_Bookmarks(d->bookmarks,
419 collectNewCStr_String("gemini://gemini.circumlunar.space/capcom/"),
420 collectNewCStr_String("CAPCOM Geminispace aggregator"),
421 NULL,
422 0x264a /* Gemini symbol */);
423 add_Bookmarks(d->bookmarks,
424 collectNewCStr_String("gemini://gus.guru/"),
425 collectNewCStr_String("GUS - Gemini Universal Search"),
426 NULL,
427 0x2690);
428 add_Bookmarks(d->bookmarks,
429 collectNewCStr_String("gemini://skyjake.fi/lagrange/"), 416 collectNewCStr_String("gemini://skyjake.fi/lagrange/"),
430 collectNewCStr_String("Lagrange"), 417 collectNewCStr_String("Lagrange"),
431 NULL, 418 NULL,
432 0x1f306); 419 0x1f306);
420 add_Bookmarks(d->bookmarks,
421 collectNewCStr_String("gemini://skyjake.fi/lagrange/getting_started.gmi"),
422 collectNewCStr_String("Getting Started"),
423 collectNewCStr_String("remotesource"),
424 0x1f306);
425 fetchRemote_Bookmarks(d->bookmarks);
433 } 426 }
434#if defined (iHaveLoadEmbed) 427#if defined (iHaveLoadEmbed)
435 /* Load the resources from a file. */ { 428 /* 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) {
39 d->headingFont = nunito_TextFont; 39 d->headingFont = nunito_TextFont;
40 d->monospaceGemini = iFalse; 40 d->monospaceGemini = iFalse;
41 d->monospaceGopher = iFalse; 41 d->monospaceGopher = iFalse;
42 d->lineWidth = 40; 42 d->lineWidth = 38;
43 d->bigFirstParagraph = iTrue; 43 d->bigFirstParagraph = iTrue;
44 d->quoteIcon = iTrue; 44 d->quoteIcon = iTrue;
45 d->docThemeDark = colorfulDark_GmDocumentTheme; 45 d->docThemeDark = colorfulDark_GmDocumentTheme;
diff --git a/src/ui/window.c b/src/ui/window.c
index 4b05d891..b198dd15 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. */
56 56
57static iWindow *theWindow_ = NULL; 57static iWindow *theWindow_ = NULL;
58 58
59#if defined (iPlatformApple) 59#if defined (iPlatformApple) || defined (iPlatformLinux)
60static float initialUiScale_ = 1.0f; 60static float initialUiScale_ = 1.0f;
61#else 61#else
62static float initialUiScale_ = 1.1f; 62static float initialUiScale_ = 1.1f;