[chronojump] Graphical improvements on last commit
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Graphical improvements on last commit
- Date: Tue, 5 Oct 2021 20:39:26 +0000 (UTC)
commit b8cb7146442811c797f299a9b39dfb4162602129
Author: Xavier de Blas <xaviblas gmail com>
Date: Tue Oct 5 22:39:05 2021 +0200
Graphical improvements on last commit
src/gui/cairo/bars.cs | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/gui/cairo/bars.cs b/src/gui/cairo/bars.cs
index cfde65ed6..f1b436f65 100644
--- a/src/gui/cairo/bars.cs
+++ b/src/gui/cairo/bars.cs
@@ -596,13 +596,13 @@ public abstract class CairoBars : CairoGeneric
do {
g.SetFontSize(messageTextHeight);
te = g.TextExtents(message);
- if(te.Width >= graphWidth)
+ if(te.Width >= .9 * graphWidth)
messageTextHeight --;
- } while (te.Width >= graphWidth && messageTextHeight >= 1);
+ } while (te.Width >= .9 * graphWidth && messageTextHeight >= 1);
g.Color = yellow; //to have contrast with the bar
g.Rectangle(graphWidth/2 -te.Width/2 -1, graphHeight/2 -messageTextHeight -1,
- te.Width +2, te.Height+2);
+ te.Width +2, te.Height+4);
g.Fill();
g.Color = black;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]