From f9864a24ed92fd06076bb456b498575940b758fd Mon Sep 17 00:00:00 2001
From: ouwou <26526779+ouwou@users.noreply.github.com>
Date: Thu, 27 Jan 2022 00:15:26 -0500
Subject: update readme
---
README.md | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
(limited to 'README.md')
diff --git a/README.md b/README.md
index 8588abd..1c72063 100644
--- a/README.md
+++ b/README.md
@@ -12,6 +12,7 @@ Current features:
* Completely styleable/customizable with CSS (if you have a system GTK theme it won't really use it though)
* Identifies to Discord as the web client unlike other clients so less likely to be falsely flagged as spam1
* Set status
+* Unread and mention indicators
* Start new DMs and group DMs
* View user profiles (notes, mutual servers, mutual friends)
* Kick, ban, and unban members
@@ -79,7 +80,6 @@ On Linux, `css` and `res` can also be loaded from `~/.local/share/abaddon` or `/
### TODO:
* Voice support
-* Unread indicators
* User activities
* Nicknames
* More server management stuff
@@ -204,11 +204,15 @@ For example, memory_db would be set by adding `memory_db = true` under the line
* animations (true or false, default true) - use animated images where available (e.g. server icons, emojis, avatars). false means static images will be used
* animated_guild_hover_only (true or false, default true) - only animate guild icons when the guild is being hovered over
* owner_crown (true or false, default true) - show a crown next to the owner
+* unreads (true or false, default true) - show unread indicators and mention badges
#### style
* linkcolor (string) - color to use for links in messages
* expandercolor (string) - color to use for the expander in the channel list
* nsfwchannelcolor (string) - color to use for NSFW channels in the channel list
+* channelcolor (string) - color to use for SFW channels in the channel list
+* mentionbadgecolor (string) - background color for mention badges
+* mentionbadgetextcolor (string) - color to use for number displayed on mention badges
### Environment variables
--
cgit v1.2.3
From ce238d08e96aafc956b5ecd7cf00796a227c5666 Mon Sep 17 00:00:00 2001
From: ouwou <26526779+ouwou@users.noreply.github.com>
Date: Fri, 28 Jan 2022 14:46:33 -0500
Subject: add style option for unread indicator color
---
README.md | 1 +
src/components/channelscellrenderer.cpp | 12 ++++++++----
src/settings.cpp | 2 ++
src/settings.hpp | 1 +
4 files changed, 12 insertions(+), 4 deletions(-)
(limited to 'README.md')
diff --git a/README.md b/README.md
index 1c72063..8d99cca 100644
--- a/README.md
+++ b/README.md
@@ -213,6 +213,7 @@ For example, memory_db would be set by adding `memory_db = true` under the line
* channelcolor (string) - color to use for SFW channels in the channel list
* mentionbadgecolor (string) - background color for mention badges
* mentionbadgetextcolor (string) - color to use for number displayed on mention badges
+* unreadcolor (string) - color to use for the unread indicator
### Environment variables
diff --git a/src/components/channelscellrenderer.cpp b/src/components/channelscellrenderer.cpp
index 1f7b6a7..e657ed3 100644
--- a/src/components/channelscellrenderer.cpp
+++ b/src/components/channelscellrenderer.cpp
@@ -258,7 +258,8 @@ void CellRendererChannels::render_vfunc_guild(const Cairo::RefPtrset_source_rgb(1.0, 1.0, 1.0);
+ static const auto color = Gdk::RGBA(Abaddon::Get().GetSettings().UnreadIndicatorColor);
+ cr->set_source_rgb(color.get_red(), color.get_green(), color.get_blue());
const auto x = background_area.get_x();
const auto y = background_area.get_y();
const auto w = background_area.get_width();
@@ -403,7 +404,8 @@ void CellRendererChannels::render_vfunc_channel(const Cairo::RefPtrset_source_rgb(1.0, 1.0, 1.0);
+ static const auto color = Gdk::RGBA(Abaddon::Get().GetSettings().UnreadIndicatorColor);
+ cr->set_source_rgb(color.get_red(), color.get_green(), color.get_blue());
const auto x = background_area.get_x();
const auto y = background_area.get_y();
const auto w = background_area.get_width();
@@ -474,7 +476,8 @@ void CellRendererChannels::render_vfunc_thread(const Cairo::RefPtrset_source_rgb(1.0, 1.0, 1.0);
+ static const auto color = Gdk::RGBA(Abaddon::Get().GetSettings().UnreadIndicatorColor);
+ cr->set_source_rgb(color.get_red(), color.get_green(), color.get_blue());
const auto x = background_area.get_x();
const auto y = background_area.get_y();
const auto w = background_area.get_width();
@@ -614,7 +617,8 @@ void CellRendererChannels::render_vfunc_dm(const Cairo::RefPtr &
if (unread_state < 0) return;
if (!is_muted) {
- cr->set_source_rgb(1.0, 1.0, 1.0);
+ static const auto color = Gdk::RGBA(Abaddon::Get().GetSettings().UnreadIndicatorColor);
+ cr->set_source_rgb(color.get_red(), color.get_green(), color.get_blue());
const auto x = background_area.get_x();
const auto y = background_area.get_y();
const auto w = background_area.get_width();
diff --git a/src/settings.cpp b/src/settings.cpp
index 9435999..242bd7c 100644
--- a/src/settings.cpp
+++ b/src/settings.cpp
@@ -56,6 +56,7 @@ void SettingsManager::ReadSettings() {
SMSTR("style", "channelcolor", ChannelColor);
SMSTR("style", "mentionbadgecolor", MentionBadgeColor);
SMSTR("style", "mentionbadgetextcolor", MentionBadgeTextColor);
+ SMSTR("style", "unreadcolor", UnreadIndicatorColor);
#undef SMBOOL
#undef SMSTR
@@ -108,6 +109,7 @@ void SettingsManager::Close() {
SMSTR("style", "channelcolor", ChannelColor);
SMSTR("style", "mentionbadgecolor", MentionBadgeColor);
SMSTR("style", "mentionbadgetextcolor", MentionBadgeTextColor);
+ SMSTR("style", "unreadcolor", UnreadIndicatorColor);
#undef SMSTR
#undef SMBOOL
diff --git a/src/settings.hpp b/src/settings.hpp
index 2f48248..52b20b9 100644
--- a/src/settings.hpp
+++ b/src/settings.hpp
@@ -40,6 +40,7 @@ public:
std::string ChannelColor { "#fbfbfb" };
std::string MentionBadgeColor { "#b82525" };
std::string MentionBadgeTextColor { "#fbfbfb" };
+ std::string UnreadIndicatorColor { "#ffffff" };
};
SettingsManager(const std::string &filename);
--
cgit v1.2.3
From 7e3976785fde867a078c679b2d72dc5a2fbbaf2e Mon Sep 17 00:00:00 2001
From: social reject <94141577+9xN@users.noreply.github.com>
Date: Sun, 13 Feb 2022 21:58:51 -0700
Subject: Update README.md (#57)
include command to clone necessary submodules
---
README.md | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
(limited to 'README.md')
diff --git a/README.md b/README.md
index 8d99cca..be0c488 100644
--- a/README.md
+++ b/README.md
@@ -43,9 +43,10 @@ Or, do steps 1 and 2, and open CMakeLists.txt in Visual Studio if `vcpkg integra
#### Mac:
1. `git clone https://github.com/uowuo/abaddon && cd abaddon`
2. `brew install gtkmm3 nlohmann-json`
-3. `mkdir build && cd build`
-4. `cmake ..`
-5. `make`
+3. `git submodule update --init subprojects`
+4. `mkdir build && cd build`
+5. `cmake ..`
+6. `make`
#### Linux:
1. Install dependencies: `libgtkmm-3.0-dev`, `libcurl4-gnutls-dev`, and [nlohmann-json](https://github.com/nlohmann/json)
--
cgit v1.2.3