]> git.lyx.org Git - features.git/commitdiff
Use a larger font for displaying the version number on the splash screen
authorEnrico Forestieri <forenr@lyx.org>
Thu, 21 Dec 2006 02:49:27 +0000 (02:49 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Thu, 21 Dec 2006 02:49:27 +0000 (02:49 +0000)
* src/frontends/qt4/GuiWorkArea.C
(GuiWorkArea::doGreyOut): don't use LyXFont::SIZE_XXXX directly as
a font size as these are enum values and not the actual sizes.
Move the version number slightly to the right to make it more
readable against the splash screen.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16353 a592a061-630c-0410-9148-cb99ea01b6c8

Status.15x
src/frontends/qt4/GuiWorkArea.C

index 1aaa177ae6a107eed758a333ebc3c4ed535142db..6d8583a40252706ba00fc4c279c7e8ab1c47cb67 100644 (file)
@@ -244,9 +244,6 @@ PAINTING & PERFORMANCE
   this is important for the test case); add a character into the note 
   => the complete footnote is expanded but only the current line is repainted
 
-* In the splash screen, the LyX version number is printed with a very, very
-  small font size such that it becomes almost invisible on Windows.
-
 * END_LABEL_* handling in RowPainer::paintLast() is broken. In regular text,
   label boxes are not completely visible (because we shrinked the margin on 
   screen?). Inside of insets, they don't work at all. 
@@ -611,3 +608,7 @@ CREDITS:
   (bug 3034). It was introduced by the conversion of mathed to unicode,
   because two methods Parser::tokenize() with different semantics existed.
 
+* In the splash screen, the LyX version number is printed with a very, very
+  small font size such that it becomes almost invisible on Windows.
+  FIXED (Enrico 2006-12-21)
+
index d2ff528ebd4c8eba47add3861edc0bfd05c17de5..8e87582262b7ba62f759052d2208e361a0e01a48 100644 (file)
@@ -31,6 +31,7 @@
 
 #include "support/filetools.h" // LibFileSearch
 #include "support/os.h"
+#include "support/convert.h"
 
 #include "graphics/GraphicsImage.h"
 #include "graphics/GraphicsLoader.h"
@@ -487,7 +488,7 @@ void GuiWorkArea::doGreyOut(QLPainter & pain)
        // The font used to display the version info
        font.setStyleHint(QFont::SansSerif);
        font.setWeight(QFont::Bold);
-       font.setPointSize(LyXFont::SIZE_NORMAL);
+       font.setPointSize(convert<int>(lyxrc.font_sizes[LyXFont::SIZE_LARGE]));
 
        int const w = pm.width();
        int const h = pm.height();
@@ -497,7 +498,7 @@ void GuiWorkArea::doGreyOut(QLPainter & pain)
 
        pain.drawPixmap(x, y, pm);
 
-       x += 260;
+       x += 300;
        y += 265;
 
        pain.setPen(QColor(255, 255, 0));