about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--CONTRIBUTING.md6
-rw-r--r--src/ui/console.c6
-rw-r--r--src/xmpp/stanza.c2
-rw-r--r--themes/gruvbox_transparent82
4 files changed, 92 insertions, 4 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 60bac6ef..688235c6 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -16,6 +16,11 @@ When working on a new feature we usually use `git checkout -b feature/optionalis
 However this is not a rule just a recommendation to keep an overview of things.
 If your change isn't a bugfix or new feature you can also just use any branch name.
 
+## Commit messages
+Write commit messages that make sense. Explain what and *why* you change.
+Write in present tense.
+Please give [this guideline](https://gist.github.com/robertpainsi/b632364184e70900af4ab688decf6f53) a read.
+
 ### GitHub
 We would like to encourage people to use GitHub to create pull requests.
 It makes it easy for us to review the patches, track WIP branches, organize branches with labels and milestones,
@@ -46,6 +51,7 @@ We will then pull from your repository and merge manually.
 * Each patch or pull request should only contain related modifications.
 * Run the tests and code formatters before submitting (c.f. Chapter 'Check everything' of this README).
 * When changing the UI it would be appreciated if you could add a before and after screenshot for comparison.
+* Squash fixup commits into one
 
 ### Hints and Pitfalls
 
diff --git a/src/ui/console.c b/src/ui/console.c
index 95a70a30..822e6d3e 100644
--- a/src/ui/console.c
+++ b/src/ui/console.c
@@ -395,8 +395,8 @@ cons_show_incoming_private_message(const char* const nick, const char* const roo
 static void
 _cons_welcome_first_start(void)
 {
-    gchar* prefs_loc = files_get_config_path(FILE_PROFANITY_IDENTIFIER);
-    if (!g_file_test(prefs_loc, G_FILE_TEST_EXISTS)) {
+    gchar* ident_loc = files_get_data_path(FILE_PROFANITY_IDENTIFIER);
+    if (!g_file_test(ident_loc, G_FILE_TEST_EXISTS)) {
         ProfWin* console = wins_get_console();
         win_println(console, THEME_DEFAULT, "-", "This seems to be your first time starting Profanity.");
         win_println(console, THEME_DEFAULT, "-", "");
@@ -410,7 +410,7 @@ _cons_welcome_first_start(void)
         win_println(console, THEME_DEFAULT, "-", "/register myjid myserver.org");
         win_println(console, THEME_DEFAULT, "-", "");
     }
-    g_free(prefs_loc);
+    g_free(ident_loc);
 }
 
 void
diff --git a/src/xmpp/stanza.c b/src/xmpp/stanza.c
index c6bf19fb..6b8377b6 100644
--- a/src/xmpp/stanza.c
+++ b/src/xmpp/stanza.c
@@ -2661,7 +2661,7 @@ stanza_create_avatar_metadata_publish_iq(xmpp_ctx_t* ctx, const char* img_data,
     xmpp_stanza_set_name(info, STANZA_NAME_INFO);
     xmpp_stanza_set_attribute(info, "id", sha1);
     xmpp_free(ctx, sha1);
-    char* bytes = g_strdup_printf("%lu", len);
+    char* bytes = g_strdup_printf("%" G_GSIZE_FORMAT, len);
     char* h = g_strdup_printf("%d", height);
     char* w = g_strdup_printf("%d", width);
     xmpp_stanza_set_attribute(info, "bytes", bytes);
diff --git a/themes/gruvbox_transparent b/themes/gruvbox_transparent
new file mode 100644
index 00000000..0ecd6f4b
--- /dev/null
+++ b/themes/gruvbox_transparent
@@ -0,0 +1,82 @@
+[colours]
+bkgnd=Black
+titlebar=Grey19
+titlebar.text=yellow
+titlebar.brackets=IndianRed
+titlebar.unencrypted=IndianRed
+titlebar.encrypted=Grey66
+titlebar.untrusted=yellow
+titlebar.trusted=Grey66
+titlebar.online=DarkOliveGreen3
+titlebar.offline=IndianRed
+titlebar.away=Grey66
+titlebar.chat=Grey66
+titlebar.dnd=Grey66
+titlebar.xa=Grey66
+
+statusbar=Grey19
+statusbar.text=NavajoWhite1
+statusbar.time=DarkOliveGreen3
+statusbar.brackets=IndianRed
+statusbar.active=Grey66
+statusbar.current=Yellow
+statusbar.new=DarkOliveGreen3
+main.text=NavajoWhite1
+main.text.me=NavajoWhite1
+main.text.them=NavajoWhite1
+main.splash=yellow
+main.help.header=yellow
+main.time=Grey66
+
+input.text=NavajoWhite1
+subscribed=DarkOliveGreen3
+unsubscribed=IndianRed
+otr.started.trusted=DarkOliveGreen3
+otr.started.untrusted=yellow
+otr.ended=IndianRed
+otr.trusted=DarkOliveGreen3
+otr.untrusted=yellow
+online=DarkOliveGreen3
+away=Grey39
+chat=DarkOliveGreen3
+dnd=IndianRed
+xa=Grey39
+offline=IndianRed
+incoming=yellow
+mention=yellow
+trigger=yellow
+typing=yellow
+gone=yellow
+error=IndianRed
+roominfo=yellow
+roommention=yellow
+roommention.term=yellow
+roomtrigger=yellow
+roomtrigger.term=yellow
+me=yellow
+them=DarkOliveGreen3
+roster.header=yellow
+roster.chat=DarkOliveGreen3
+roster.online=DarkOliveGreen3
+roster.away=Grey39
+roster.xa=Grey39
+roster.dnd=IndianRed
+roster.offline=IndianRed
+roster.chat.active=DarkOliveGreen3
+roster.online.active=DarkOliveGreen3
+roster.away.active=Grey39
+roster.xa.active=Grey39
+roster.dnd.active=IndianRed
+roster.offline.active=IndianRed
+roster.chat.unread=DarkOliveGreen3
+roster.online.unread=DarkOliveGreen3
+roster.away.unread=Grey39
+roster.xa.unread=Grey39
+roster.dnd.unread=IndianRed
+roster.offline.unread=IndianRed
+roster.room=DarkOliveGreen3
+roster.room.unread=DarkOliveGreen3
+roster.room.mention=DarkOliveGreen3
+roster.room.trigger=DarkOliveGreen3
+occupants.header=yellow
+receipt.sent=IndianRed