Commit 528633a4 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix default font size and color for first start

Fixes #488
parent f9c980c5
...@@ -2231,7 +2231,7 @@ void TitleWidget::readChoices() ...@@ -2231,7 +2231,7 @@ void TitleWidget::readChoices()
const QByteArray geometry = titleConfig.readEntry("dialog_geometry", QByteArray()); const QByteArray geometry = titleConfig.readEntry("dialog_geometry", QByteArray());
restoreGeometry(QByteArray::fromBase64(geometry)); restoreGeometry(QByteArray::fromBase64(geometry));
font_family->setCurrentFont(titleConfig.readEntry("font_family", font_family->currentFont())); font_family->setCurrentFont(titleConfig.readEntry("font_family", font_family->currentFont()));
font_size->setValue(titleConfig.readEntry("font_pixel_size", font_size->value())); font_size->setValue(titleConfig.readEntry("font_pixel_size", m_frameHeight > 0 ? (int)(m_frameHeight / 20): font_size->value()));
m_scene->slotUpdateFontSize(font_size->value()); m_scene->slotUpdateFontSize(font_size->value());
QColor fontColor = QColor(titleConfig.readEntry("font_color", fontColorButton->color())); QColor fontColor = QColor(titleConfig.readEntry("font_color", fontColorButton->color()));
QColor outlineColor = QColor(titleConfig.readEntry("font_outline_color", textOutlineColor->color())); QColor outlineColor = QColor(titleConfig.readEntry("font_outline_color", textOutlineColor->color()));
......
...@@ -745,8 +745,8 @@ ...@@ -745,8 +745,8 @@
</property> </property>
<property name="color" stdset="0"> <property name="color" stdset="0">
<color> <color>
<red>85</red> <red>255</red>
<green>170</green> <green>255</green>
<blue>255</blue> <blue>255</blue>
</color> </color>
</property> </property>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment