[polari] stop doing weird stuff with font sizes
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari] stop doing weird stuff with font sizes
- Date: Thu, 8 Aug 2013 13:08:42 +0000 (UTC)
commit 7babe76b5731b18e195984c58c6a2da6f14b5ab6
Author: Florian Müllner <fmuellner gnome org>
Date: Wed Jul 24 20:42:20 2013 +0200
stop doing weird stuff with font sizes
src/chatView.js | 5 +----
src/roomList.js | 2 +-
2 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/src/chatView.js b/src/chatView.js
index e5b1c91..9696dba 100644
--- a/src/chatView.js
+++ b/src/chatView.js
@@ -8,8 +8,6 @@ const Lang = imports.lang;
const MAX_NICK_CHARS = 8;
-const HIGHLIGHT_SCALE = (1.0 / 1.1);
-
// http://daringfireball.net/2010/07/improved_regex_for_matching_urls
const _balancedParens = '\\((?:[^\\s()<>]+|(?:\\(?:[^\\s()<>]+\\)))*\\)';
const _leadingJunk = '[\\s`(\\[{\'\\"<\u00AB\u201C\u2018]';
@@ -139,8 +137,7 @@ const ChatView = new Lang.Class({
{ name: 'message',
indent: 0 },
{ name: 'highlight',
- weight: Pango.Weight.BOLD,
- scale: HIGHLIGHT_SCALE },
+ weight: Pango.Weight.BOLD },
{ name: 'status',
foreground_rgba: color,
left_margin: 0,
diff --git a/src/roomList.js b/src/roomList.js
index 3cf6137..76e8c3d 100644
--- a/src/roomList.js
+++ b/src/roomList.js
@@ -58,7 +58,7 @@ const RoomRow = new Lang.Class({
let pending = this._room.channel.dup_pending_messages();
for (let i = 0; i < pending.length && !highlight; i++)
highlight = this._room.should_highlight_message(pending[i]);
- this._roomLabel.label = (highlight ? "<b><small>%s</small></b>"
+ this._roomLabel.label = (highlight ? "<b>%s</b>"
: "%s").format(this._room.display_name);
}
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]