[polari] chatView: Make sure active and inactive nicks use distinct colors
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari] chatView: Make sure active and inactive nicks use distinct colors
- Date: Thu, 30 Jul 2015 14:53:08 +0000 (UTC)
commit 0df771dc13ff5a2a39ed4f953631459831f25cae
Author: Florian Müllner <fmuellner gnome org>
Date: Tue Jul 28 21:45:04 2015 +0200
chatView: Make sure active and inactive nicks use distinct colors
Commit c96929c701 introduced different styling for active and inactive
nicks. However simply desaturating the theme's link color will not
result in a different color if the original color was already a shade
of gray (for instance when using the High Contrast theme).
To address this, dim the inactive-nick color via its alpha channel in
that case.
https://bugzilla.gnome.org/show_bug.cgi?id=752968
src/chatView.js | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/chatView.js b/src/chatView.js
index a3ea51a..72b79b3 100644
--- a/src/chatView.js
+++ b/src/chatView.js
@@ -211,6 +211,8 @@ const ChatView = new Lang.Class({
green: desaturatedNickColor,
blue: desaturatedNickColor,
alpha: 1.0 });
+ if (this._activeNickColor.equal(this._inactiveNickColor))
+ this._inactiveNickColor.alpha = 0.5;
let buffer = this._view.get_buffer();
let tagTable = buffer.get_tag_table();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]