mirror of
https://gitlab.gnome.org/GNOME/gitg
synced 2024-11-04 23:34:39 +00:00
Use small "Authored by" & "Committed by" labels
Prefix the author name hyperlink, in a way that harmonizes it with the commiter label. Use small lettering for those portions to keep them compact, since they are not that important compared to the names. Related: https://gitlab.gnome.org/GNOME/gitg/-/issues/440
This commit is contained in:
parent
6fc9e8cd4e
commit
1335904f82
2 changed files with 4 additions and 4 deletions
|
@ -226,7 +226,7 @@ class Gitg.DiffViewCommitDetails : Gtk.Grid
|
|||
|
||||
var author = commit.get_author();
|
||||
|
||||
d_label_author.label = author_to_markup(author);
|
||||
d_label_author.label = _("<small>Authored by</small> %s").printf(author_to_markup(author));
|
||||
|
||||
var committer = commit.get_committer();
|
||||
|
||||
|
@ -234,7 +234,7 @@ class Gitg.DiffViewCommitDetails : Gtk.Grid
|
|||
committer.get_email() != author.get_email() ||
|
||||
committer.get_time().compare(author.get_time()) != 0)
|
||||
{
|
||||
d_label_committer.label = _("Committed by %s").printf(author_to_markup(committer));
|
||||
d_label_committer.label = _("<small>Committed by</small> %s").printf(author_to_markup(committer));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
<property name="can_focus">True</property>
|
||||
<property name="halign">start</property>
|
||||
<property name="valign">start</property>
|
||||
<property name="label">Author name &lt;<a href="email@example.com">email@example.com</a>&gt;</property>
|
||||
<property name="label">Authored by <a href="email@example.com" title="email@example.com">Author name</a></property>
|
||||
<property name="selectable">True</property>
|
||||
<property name="ellipsize">end</property>
|
||||
<property name="use_markup">True</property>
|
||||
|
@ -82,7 +82,7 @@
|
|||
<property name="halign">start</property>
|
||||
<property name="valign">start</property>
|
||||
<property name="margin_top">6</property>
|
||||
<property name="label">Committed by Committer name &lt;<a href="email@example.com">email@example.com</a>&gt;</property>
|
||||
<property name="label">Committed by <a href="email@example.com" title="email@example.com">Committer name</a></property>
|
||||
<property name="selectable">True</property>
|
||||
<property name="ellipsize">end</property>
|
||||
<property name="use_markup">True</property>
|
||||
|
|
Loading…
Reference in a new issue