Skip to contentSkip to conversation

qgit: Default the log window to wider than the file list and set monospaced font

PATCH In review Andy Parkins 8 participants 21 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qgit: Default the log window to wider than the file list and set monospaced font

The log window and changed files list would start at equal sizes. This patch gives them each a horizontal stretch factor making them have a 3:1 ratio.

The font for the log viewer is set to "Monospace", but this should really be done in software and given a config setting (perhaps use the patch view font)

---
 src/revsview.ui |   31 ++++++++++++++++++++++++++-----
 1 files changed, 26 insertions(+), 5 deletions(-)
src/revsview.ui +26 -5
index 3fb02ee..ad16200 100644
@@ -55,11 +55,32 @@
        <enum>Qt::Horizontal</enum>
       </property>
       <widget class="RevDesc" name="textBrowserDesc" >
+       <property name="sizePolicy" >
+        <sizepolicy>
+         <hsizetype>5</hsizetype>
+         <vsizetype>13</vsizetype>
+         <horstretch>3</horstretch>
+         <verstretch>0</verstretch>
+        </sizepolicy>
+       </property>
+       <property name="font" >
+        <font>
+         <family>Monospace</family>
+        </font>
+       </property>
        <property name="lineWrapMode" >
         <enum>QTextEdit::NoWrap</enum>
        </property>
       </widget>
       <widget class="FileList" name="fileList" >
+       <property name="sizePolicy" >
+        <sizepolicy>
+         <hsizetype>5</hsizetype>
+         <vsizetype>13</vsizetype>
+         <horstretch>1</horstretch>
+         <verstretch>0</verstretch>
+        </sizepolicy>
+       </property>
        <property name="contextMenuPolicy" >
         <enum>Qt::CustomContextMenu</enum>
        </property>
@@ -72,16 +93,16 @@
  <layoutdefault spacing="6" margin="11" />
  <customwidgets>
   <customwidget>
-   <class>ListView</class>
-   <extends>QTreeView</extends>
-   <header>listview.h</header>
-  </customwidget>
-  <customwidget>
    <class>FileList</class>
    <extends>QListWidget</extends>
    <header>filelist.h</header>
   </customwidget>
   <customwidget>
+   <class>ListView</class>
+   <extends>QTreeView</extends>
+   <header>listview.h</header>
+  </customwidget>
+  <customwidget>
    <class>RevDesc</class>
    <extends>QTextBrowser</extends>
    <header>revdesc.h</header>
Signature · 1 line
1.5.0.rc1.gf4b6c
#1 lore raw
Quoted 5 lines

The font for the log viewer is set to "Monospace", but this should really be done in software and given a config setting (perhaps use the patch view font)

Thanks Andy for patches, I will apply as soon as I have access to my box, probably this evening.

Regarding "Monospace" it should be changeable with Settings menu and should apply _only_ to fixed space font viewers, in our case only patch viewer and file content viewer.

Other fonts used in qgit are derived from system wide settings and are changeable with qtconfig tool.

If you see Monospace applied to list view or any other widget apart from the above mentioned ones then it's a bug.

Thanks
Marco

#2 lore raw
Quoted 3 lines · Marco Costalba

Regarding "Monospace" it should be changeable with Settings menu and should apply _only_ to fixed space font viewers, in our case only patch viewer and file content viewer.

The log message was the one I changed. Having the log message in variable width breaks any ascii-art in the message.

I completely agree about pulling the setting from the config. I'll see if I can find that and post a further patch.

Quoted 2 lines

If you see Monospace applied to list view or any other widget apart from the above mentioned ones then it's a bug.

True. I used "Monospaced" as the font as that defaults to the system-wide monospaced font; however it's pretty poor form. I raise my hand - shoot me :-) As I say, I'll try and do better and send a new patch.

Andy

Signature · 2 lines
Dr Andy Parkins, M Eng (hons), MIEE
[email protected]
#3 lore raw
Quoted 12 lines · Andy Parkins
Quoted 3 lines · Marco Costalba

Regarding "Monospace" it should be changeable with Settings menu and should apply _only_ to fixed space font viewers, in our case only patch viewer and file content viewer.

The log message was the one I changed. Having the log message in variable width breaks any ascii-art in the message.

I completely agree about pulling the setting from the config. I'll see if I can find that and post a further patch.

Quoted 8 lines
Quoted 2 lines

If you see Monospace applied to list view or any other widget apart from the above mentioned ones then it's a bug.

True. I used "Monospaced" as the font as that defaults to the system-wide monospaced font; however it's pretty poor form. I raise my hand - shoot me :-) As I say, I'll try and do better and send a new patch.

I have applied and pushed all your patches. BTW you are referring to qgit4 at Pasky http://repo.or.cz/ site, not the stable qgit in kernel.org repo!

I didn't got it unti I tried to apply the patches :-)

Hint: Regarding application 'fixed width' font please refer to TYPE_WRITER_FONT variable defined in common.h in your new patch, this is where user choosen font is stored.

Not-fixed-width font is set with qtconfig tool.

Marco

P.S: Yes, I have noted this Qt::convertFromPlainText() misbehaviour, but I don't know if are the spaces that are not escaped correctly by the function or the QTextEdit rendering engine that eats the (escaped) spaces anyway.

P.P.S: Give a try to Bitstream Vera Sans Mono as fixed width font, it's muuuuuch better then Monospace IMHO ;-)

#4 lore raw
Quoted 3 lines · Marco Costalba

I have applied and pushed all your patches. BTW you are referring to qgit4 at Pasky http://repo.or.cz/ site, not the stable qgit in kernel.org repo!

My apologies - that was the first one I found when I typed qgit4 repository.

Quoted 3 lines

Hint: Regarding application 'fixed width' font please refer to TYPE_WRITER_FONT variable defined in common.h in your new patch, this is where user choosen font is stored.

Excellent; I'll use that then. More patches coming soon. I hope the git list is the right place for these patches.

Quoted 4 lines

P.S: Yes, I have noted this Qt::convertFromPlainText() misbehaviour, but I don't know if are the spaces that are not escaped correctly by the function or the QTextEdit rendering engine that eats the (escaped) spaces anyway.

I definitely think this is a bug in Qt; QTextBrowser will show the spaces in HTML mode if <pre> is used, so I don't think it's a fault in QTextBrowser.

Quoted 2 lines

P.P.S: Give a try to Bitstream Vera Sans Mono as fixed width font, it's muuuuuch better then Monospace IMHO ;-)

No need to persuade me; that's what I already use. Monospace isn't a font on most systems - it's an alias to the default monospaced font - and for me it's aliased to Bitstream Mono :-)

It seems to be done by the following in /etc/fonts/

<alias>
<family>Bitstream Vera Sans Mono</family> <family>DejaVu Sans Mono</family> <family>Courier</family> <family>Courier New</family> <family>Andale Mono</family> <family>Luxi Mono</family> <family>Cumberland AMT</family> <family>Nimbus Mono L</family> <family>NSimSun</family> <family>FreeMono</family> <default><family>monospace</family></default>
</alias>

In case that helps you.

Andy

Signature · 2 lines
Dr Andrew Parkins, M Eng (Hons), AMIEE
[email protected]
#5 lore raw
Quoted 9 lines · Andy Parkins
Quoted 3 lines · Marco Costalba

I have applied and pushed all your patches. BTW you are referring to qgit4 at Pasky http://repo.or.cz/ site, not the stable qgit in kernel.org repo!

My apologies - that was the first one I found when I typed qgit4 repository.

No problem, stable qgit has less layout problems, probably the only patch I will back port is the fixed font in log viewer.

qgit4 seems to have more layout weirdeness also in patch and file tabs. I didn't fixed it until because I'm still wondering if it is enough fixing the layout using stretch factors or bite the bullet and implement a geometry persistent saving with QSettings (Qt4 is quite powerful in this regard), of course saved geometry should work both with maximized and not-maximized window, so perhaps saving panes/splitters factors is better then save absolute value at least for 'internal' widget, and use absolute window geometry only for qgit main window.

Quoted 10 lines
Quoted 5 lines

P.S: Yes, I have noted this Qt::convertFromPlainText() misbehaviour, but I don't know if are the spaces that are not escaped correctly by the function or the QTextEdit rendering engine that eats the (escaped) spaces anyway.

I definitely think this is a bug in Qt; QTextBrowser will show the spaces in HTML mode if <pre> is used, so I don't think it's a fault in QTextBrowser.

Please add dbg(text) line in git.cpp, just below
Qt::convertFromPlainText(text) call

		text.append("\n\n    " + colorMatch(c->shortLog(), shortLogRE) +
		            '\n' + colorMatch(c->longLog(), longLogRE));
	}
	text = Qt::convertFromPlainText(text);
dbg(text);
	// highlight SHA's
	//
	// added to commit logs, we avoid to call git rev-parse for a
possible abbreviated
	// sha if there isn't a leading trailing space or an open parenthesis and,

This will print the converted text as plain string, as you can see there is 'something' instead of spaces but I cannot guess what.

Quoted 23 lines
Quoted 2 lines

P.P.S: Give a try to Bitstream Vera Sans Mono as fixed width font, it's muuuuuch better then Monospace IMHO ;-)

No need to persuade me; that's what I already use. Monospace isn't a font on most systems - it's an alias to the default monospaced font - and for me it's aliased to Bitstream Mono :-)

It seems to be done by the following in /etc/fonts/

<alias>
<family>Bitstream Vera Sans Mono</family> <family>DejaVu Sans Mono</family> <family>Courier</family> <family>Courier New</family> <family>Andale Mono</family> <family>Luxi Mono</family> <family>Cumberland AMT</family> <family>Nimbus Mono L</family> <family>NSimSun</family> <family>FreeMono</family> <default><family>monospace</family></default>
</alias>

Quoted 2 lines

In case that helps you.

Thanks

#6 lore raw
Quoted 9 lines · Marco Costalba

qgit4 seems to have more layout weirdeness also in patch and file tabs. I didn't fixed it until because I'm still wondering if it is enough fixing the layout using stretch factors or bite the bullet and implement a geometry persistent saving with QSettings (Qt4 is quite powerful in this regard), of course saved geometry should work both with maximized and not-maximized window, so perhaps saving panes/splitters factors is better then save absolute value at least for 'internal' widget, and use absolute window geometry only for qgit main window.

Saving factors is definitely the way to go; and then you may as well use the stretch factors as that's all they are in essence. Setting a 3:1 stretch ratio would be the same as setting 75% and 25% factors. The ideal solution is really to set one of them based on the contents, probably the file list; but that's difficult to do as you don't want excessively deep trees to make the thing stupidly wide. In the end, I think making layouts that work in all situations in near impossible, so I usually just go for stretch factors that make it look reasonable in most situations.

Quoted 8 lines

Please add dbg(text) line in git.cpp, just below
Qt::convertFromPlainText(text) call

		text.append("\n\n    " + colorMatch(c->shortLog(), shortLogRE) +
		            '\n' + colorMatch(c->longLog(), longLogRE));
	}
	text = Qt::convertFromPlainText(text);

dbg(text);

Good idea. I tried it and the problem would seem to be that convertFromPlainText() doesn't do the conversion as completely as it should. The spaces are being left as spaces, but of course when those get passed to the HTML-ish parser of QTextBrowser, the spaces are being swallowed - as with all HTML parsers. I believe it should actually be replacing all the spaces with "&nbsp;" to /really/ do the plain->HTML conversion. However, the point is moot now anyway because I've dropped it in favour of a div with "white-space: pre" set, which does the job.

Andy

Signature · 2 lines
Dr Andrew Parkins, M Eng (Hons), AMIEE
[email protected]
#7 lore raw
In reply to Marco Costalba
Quoted 7 lines · Marco Costalba
Quoted 6 lines · Andy Parkins
Quoted 3 lines · Marco Costalba

I have applied and pushed all your patches. BTW you are referring to qgit4 at Pasky http://repo.or.cz/ site, not the stable qgit in kernel.org repo!

Quoted 7 lines
Quoted 3 lines

My apologies - that was the first one I found when I typed qgit4 repository.

No problem, stable qgit has less layout problems, probably the only patch I will back port is the fixed font in log viewer.

And also the short log resize mode one, sorry, I forget to mention.

BTW it's a little bit funny when you try to resize with mouse the author column and see short log column moving instead :-)

Marco

#8 lore raw
Quoted 2 lines · Marco Costalba

BTW it's a little bit funny when you try to resize with mouse the author column and see short log column moving instead :-)

Yeah, I'm not entirely sure I like it. What I really want, but Qt won't do it is
* all columns resizable
* default date width to fit contents
* columns always take up whole width of view, never introducing a horizontal scrollbar

If you want to drop it, I won't be upset. It is very disconcerting, the only thing in that patches favour is that the view starts out basically correct.

Andy

Signature · 2 lines
Dr Andrew Parkins, M Eng (Hons), AMIEE
[email protected]
#9 lore raw

PATCH 1/1 qgit4: Add a header and set the font family appropriately to the log message

I've moved the short log to be the first header row, and highlighted it more strongly. I've also set the font family of the log div based on TYPE_WRITER_FONT as suggested by Marco.

---
 src/git.cpp |   23 ++++++++++++++++-------
 1 files changed, 16 insertions(+), 7 deletions(-)
src/git.cpp +16 -7
index 1fa4479..a0873b6 100644
@@ -979,15 +979,25 @@ const QString Git::getDesc(SCRef sha, QRegExp& shortLogRE, QRegExp& longLogRE) {
 		text = Qt::convertFromPlainText( c->longLog() );
 	else {
 		text = "<html><head><style type=\"text/css\">"
+				"tr.head { background-color: #a0a0e0 }\n"
 				"td.h { font-weight: bold; }\n"
 				"table { background-color: #e0e0f0; }\n"
-				"div.l { white-space: pre; font-family: Monospace; }\n"
-				"</style></head><body>\n";
-		text.append( "<div class='t'><table>\n" );
-		text.append( QString("<tr><td class='h'>Author</th> <td>" + c->author()
-					+ "</td></tr>\n<tr><td class='h'>Date</th><td>") );
+				"span.h { font-weight: bold; font-size: medium; }\n"
+				"div.l { white-space: pre; font-family: ";
+		text.append( TYPE_WRITER_FONT.family() );
+		text.append( "; }\n"
+				"</style></head><body>\n" );
+
+		text.append( "<div class='t'><table border=0 cellspacing=0 cellpadding=2>\n" );
+		text.append("<tr class='head'> <th colspan=2> <span class='h'>" );
+		text.append(colorMatch(c->shortLog(), shortLogRE));
+		text.append("</span></th></tr>\n");
+
+		text.append( QString("<tr><td class='h'>Author</td> <td>" + c->author()
+					+ "</td></tr>\n<tr><td class='h'>Date</td><td>") );
 		text.append(getLocalDate(c->authorDate()));
 		text.append("</td></tr>\n");
+
 		if (!c->isUnApplied && !c->isApplied) {
 			text.append("<tr><td class='h'>Parent</td> <td>").append(c->parents()
 					.join("</td></tr>\n<tr><td class='h'>Parent</td> <td>"));
@@ -1016,8 +1026,7 @@ const QString Git::getDesc(SCRef sha, QRegExp& shortLogRE, QRegExp& longLogRE) {
 			text.append("</td></tr>\n");
 		}
 		text.append( "</table></div>\n" );
-		text.append("\n\n<div class='l'>    " + colorMatch(c->shortLog(), shortLogRE) +
-		            '\n' + colorMatch(c->longLog(), longLogRE));
+		text.append("\n\n<div class='l'>" + colorMatch(c->longLog(), longLogRE));
 		text.append( "</div></body></html>\n" );
 	}
 //	text = Qt::convertFromPlainText(text);
Signature · 1 line
1.5.0.rc1.gf4b6c
#10 lore raw

Re: [PATCH] qgit4: Add a header and set the font family appropriately to the log message

In case you did not already know, --numbered is a wonderful option to git-format-patch. It automatically numbers the commits by placing a sequence into the subject header (e.g. [PATCH 1/3]), making it easier for everyone to know how many patches are in your series.

Signature · 1 line
Shawn.
#11 lore raw

Re: [PATCH] qgit4: Add a header and set the font family appropriately to the log message

Quoted 4 lines · Shawn O. Pearce

In case you did not already know, --numbered is a wonderful option to git-format-patch. It automatically numbers the commits by placing a sequence into the subject header (e.g. [PATCH 1/3]), making it easier for everyone to know how many patches are in your series.

This came up before, but when you have more than 9 in your series, we _could_ do [PATCH 01/12] ... [PATCH 12/12] to line them up in e-mail client of the recipients better. Currently I think we do [PATCH 1/12] ... [PATCH 12/12].

#12 lore raw

Re: [PATCH] qgit4: Add a header and set the font family appropriately to the log message

Quoted 10 lines

Quoting Junio C Hamano <[email protected]>:
Subject: Re: [PATCH] qgit4: Add a header and set the font family appropriately to the log message

Quoted 4 lines · Shawn O. Pearce

In case you did not already know, --numbered is a wonderful option to git-format-patch. It automatically numbers the commits by placing a sequence into the subject header (e.g. [PATCH 1/3]), making it easier for everyone to know how many patches are in your series.

Quoted 4 lines

This came up before, but when you have more than 9 in your series, we _could_ do [PATCH 01/12] ... [PATCH 12/12] to line them up in e-mail client of the recipients better. Currently I think we do [PATCH 1/12] ... [PATCH 12/12].

Like this (lightly tested)?

---

log-tree.c +10 -2
index 85acd66..6f6aa5a 100644
@@ -102,6 +102,14 @@ static int append_signoff(char *buf, int buf_sz, int at, const char *signoff)
 	return at;
 }
 
+static int get_width(unsigned nr)
+{
+	int i;
+        for (i = 1; nr > 10; ++i)
+		nr = nr / 10;
+	return i;
+}
+
 void show_log(struct rev_info *opt, const char *sep)
 {
 	static char this_header[16384];
@@ -155,8 +163,8 @@ void show_log(struct rev_info *opt, const char *sep)
 		if (opt->total > 0) {
 			static char buffer[64];
 			snprintf(buffer, sizeof(buffer),
-					"Subject: [PATCH %d/%d] ",
-					opt->nr, opt->total);
+					"Subject: [PATCH %0*d/%d] ",
+					get_width(opt->total), opt->nr, opt->total);
 			subject = buffer;
 		} else if (opt->total == 0)
 			subject = "Subject: [PATCH] ";
Signature · 1 line
MST
#13 lore raw

Re: [PATCH] qgit4: Add a header and set the font family appropriately to the log message

In reply to Junio C Hamano
Quoted 4 lines · Junio C Hamano

This came up before, but when you have more than 9 in your series, we _could_ do [PATCH 01/12] ... [PATCH 12/12] to line them up in e-mail client of the recipients better.

Not just "line them up". It's more than just a visual thing.

So I long ago I asked Andrew to do that for me in his scripts, because when he sends me 150+ patches in one go, and I want to sort them to be in order, I can't depend on arrival order (because it won't be reliable) and I can't necessarily depend on date order (because he can send more than one patch a second), so what do I do? I sort by subject.

But I don't know of a _single_ email reader (and certainly not the one I use) that can "sort numerically by subject, using field #2". So it's a lot easier if the numbering is sorted _alphabetically_ rather than numerically.

Otherwise I tend to see things like

	[PATCH 1/89]
	[PATCH 10/89]
	[PATCH 11/89]
	...
	[PATCH 2/89]
	[PATCH 20/89]
	[PATCH 21/89]
	...

(note that this was mostly a problem just when syncing with Andrew: if the patch series is just in the teens or something, it may not sort easily, but you can just pick out the individual emails in order. When you have hundreds of patches, suddenly you realize that computers sorting them for you is really convenient).

Linus

#14 lore raw

PATCH 1/1 format-patch -n: make sorting easier by padding number

Now, when format-patch outputs more than 9 patches, the numbers are padded accordingly. Example:

	[PATCH 009/167] The 9th patch of a series of 167

---

On Thu, 8 Feb 2007, Linus Torvalds wrote:

> On Thu, 8 Feb 2007, Junio C Hamano wrote:
> >
> > This came up before, but when you have more than 9 in your > > series, we _could_ do [PATCH 01/12] ... [PATCH 12/12] to line > > them up in e-mail client of the recipients better. >
> Not just "line them up". It's more than just a visual thing.

How about this?

Yes, it calculates the width over and over again, but it's not like it's a really performance critical part.

 log-tree.c |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)
log-tree.c +12 -1
index 85acd66..89c29e2 100644
@@ -102,6 +102,16 @@ static int append_signoff(char *buf, int buf_sz, int at, const char *signoff)
 	return at;
 }
 
+static unsigned int log10(unsigned int number)
+{
+	unsigned int i = 10, result = 1;
+	while (i < number) {
+		i *= 10;
+		result++;
+	}
+	return result;
+}
+
 void show_log(struct rev_info *opt, const char *sep)
 {
 	static char this_header[16384];
@@ -155,7 +165,8 @@ void show_log(struct rev_info *opt, const char *sep)
 		if (opt->total > 0) {
 			static char buffer[64];
 			snprintf(buffer, sizeof(buffer),
-					"Subject: [PATCH %d/%d] ",
+					"Subject: [PATCH %0*d/%d] ",
+					log10(opt->total),
 					opt->nr, opt->total);
 			subject = buffer;
 		} else if (opt->total == 0)
#15 lore raw

Re: [PATCH] format-patch -n: make sorting easier by padding number

Hi,

log-tree.c static int append_signoff(char *buf, int buf_sz, int at, const char *signoff) · line 108

Quoted 4 lines · Johannes Schindelin
log-tree.c +4 -0
+static unsigned int log10(unsigned int number)
+{
+	unsigned int i = 10, result = 1;
+	while (i < number) {

D'oh. Make that "<=", please.

log-tree.c static int append_signoff(char *buf, int buf_sz, int at, const char *signoff) · line 113

Quoted 5 lines
log-tree.c +5 -0
+		i *= 10;
+		result++;
+	}
+	return result;
+}

Ciao,
Dscho

#16 lore raw

Re: [PATCH] qgit4: Add a header and set the font family appropriately to the log message

In reply to Andy Parkins
Quoted 6 lines · Andy Parkins

I've moved the short log to be the first header row, and highlighted it more strongly. I've also set the font family of the log div based on TYPE_WRITER_FONT as suggested by Marco.

---

This patch does not apply on my qgit4 repo, it seems it is on the top of a your not published previous patch. Could you please rebase against current public qgi4 repo (git://repo.or.cz/qgit4.git)

Other two patches has been applied and pushed.

Thanks
Marco

#17 lore raw

PATCH 1/1 qgit4: Removed the monospace font override from the log viewer box

In reply to Andy Parkins

The font is now set in software and is made up of both variable and monospaced fonts, therefore this override is no longer appropriate.

---
 src/revsview.ui |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)
src/revsview.ui +0 -5
index ad16200..870110e 100644
@@ -63,11 +63,6 @@
          <verstretch>0</verstretch>
         </sizepolicy>
        </property>
-       <property name="font" >
-        <font>
-         <family>Monospace</family>
-        </font>
-       </property>
        <property name="lineWrapMode" >
         <enum>QTextEdit::NoWrap</enum>
        </property>
Signature · 1 line
1.5.0.rc1.gf4b6c
#18 lore raw

PATCH 1/1 qgit4: Set a 5:1 stretch ratio on the left and right halves of the patch viewer

In reply to Andy Parkins

This stops the file list taking up half the screen by default. The exact ratio is probably not to important, as long as it's not 1:1.

---
 src/patchview.ui |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)
src/patchview.ui +16 -0
index bd723e8..4537dd7 100644
@@ -132,6 +132,14 @@
         <enum>Qt::Horizontal</enum>
        </property>
        <widget class="QSplitter" name="splitter" >
+        <property name="sizePolicy" >
+         <sizepolicy>
+          <hsizetype>5</hsizetype>
+          <vsizetype>7</vsizetype>
+          <horstretch>5</horstretch>
+          <verstretch>0</verstretch>
+         </sizepolicy>
+        </property>
         <property name="orientation" >
          <enum>Qt::Vertical</enum>
         </property>
@@ -156,6 +164,14 @@
         </widget>
        </widget>
        <widget class="FileList" name="fileList" >
+        <property name="sizePolicy" >
+         <sizepolicy>
+          <hsizetype>13</hsizetype>
+          <vsizetype>13</vsizetype>
+          <horstretch>1</horstretch>
+          <verstretch>0</verstretch>
+         </sizepolicy>
+        </property>
         <property name="contextMenuPolicy" >
          <enum>Qt::CustomContextMenu</enum>
         </property>
Signature · 1 line
1.5.0.rc1.gf4b6c
#19 lore raw
In reply to Marco Costalba
Quoted 3 lines · Marco Costalba

Regarding "Monospace" it should be changeable with Settings menu and should apply _only_ to fixed space font viewers, in our case only patch viewer and file content viewer.

Incidentally, regarding monospaced fonts and Qt. While developing these patches I noticed that Qt::convertFromPlainText() swallows leading white space from the lines. I dropped it and used a style sheet to set the font instead; but in case you use it elsewhere I thought you might be interested.

Andy

Signature · 2 lines
Dr Andy Parkins, M Eng (hons), MIEE
[email protected]
#20 lore raw
In reply to Marco Costalba
Quoted 11 lines · Marco Costalba
Quoted 4 lines

The font for the log viewer is set to "Monospace", but this should really be done in software and given a config setting (perhaps use the patch view font)

Thanks Andy for patches, I will apply as soon as I have access to my box, probably this evening.

Regarding "Monospace" it should be changeable with Settings menu and should apply _only_ to fixed space font viewers, in our case only patch viewer and file content viewer.

Shouldn't commit message be also in fixed-width (monospace) font? Sometimes there is ASCII-art used (mainly for diagrams) in commit messages; gitweb uses monospace font for commit messages.

Signature · 3 lines
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git