From: Enrico Forestieri Date: Thu, 21 Dec 2006 02:49:27 +0000 (+0000) Subject: Use a larger font for displaying the version number on the splash screen X-Git-Tag: 1.6.10~11486 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=b892a6bc43c3218547ee0fcc708dec7eeb74733a;p=features.git Use a larger font for displaying the version number on the splash screen * 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 --- diff --git a/Status.15x b/Status.15x index 1aaa177ae6..6d8583a402 100644 --- a/Status.15x +++ b/Status.15x @@ -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) + diff --git a/src/frontends/qt4/GuiWorkArea.C b/src/frontends/qt4/GuiWorkArea.C index d2ff528ebd..8e87582262 100644 --- a/src/frontends/qt4/GuiWorkArea.C +++ b/src/frontends/qt4/GuiWorkArea.C @@ -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(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));