[gitg] diff-view: use unicode triangles to expand/collapse
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg] diff-view: use unicode triangles to expand/collapse
- Date: Wed, 24 Dec 2014 12:11:23 +0000 (UTC)
commit 9e50bd6edcec60c50b0289e34efee6a84db384a2
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Wed Dec 24 13:08:50 2014 +0100
diff-view: use unicode triangles to expand/collapse
libgitg/resources/diff-view.html | 3 ++-
libgitg/resources/diff-view.js | 8 +++++---
2 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/libgitg/resources/diff-view.html b/libgitg/resources/diff-view.html
index 76744f0..d2e5da0 100644
--- a/libgitg/resources/diff-view.html
+++ b/libgitg/resources/diff-view.html
@@ -22,7 +22,8 @@
<tbody>
<tr class="file_header">
<td colspan="4">
- <span class="expander">-</span>
+ <!-- BLACK DOWN-POINTING TRIANGLE -->
+ <span class="expander">▼</span>
<!-- ${FILE_STATS} -->
<span class="file_path"><!-- ${FILE_PATH} --></span>
</td>
diff --git a/libgitg/resources/diff-view.js b/libgitg/resources/diff-view.js
index 589b5ce..9ce9839 100644
--- a/libgitg/resources/diff-view.js
+++ b/libgitg/resources/diff-view.js
@@ -246,17 +246,19 @@ function expand_collapse()
var expander = $(this);
// If expanded, will be true
- var toExpand = expander.text() == "+";
+ var toExpand = expander.text() == "\u25B6";
if (toExpand)
{
// next step to close it
- expander.text("-");
+ // BLACK DOWN-POINTING TRIANGLE
+ expander.text("\u25BC");
}
else
{
// next step is to open it
- expander.text("+");
+ // BLACK RIGHT-POINTING TRIANGLE
+ expander.text("\u25B6");
}
expander.closest('tbody').toggleClass("collapsed");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]