Theme Editor: Changed default font to monospaced, changed organization for the application to rockbox.org, moved tab bar in preferences dialog to the top of the window
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26677 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
42b065f04a
commit
24647bace9
4 changed files with 14 additions and 6 deletions
|
@ -35,9 +35,9 @@ int main(int argc, char* argv[])
|
|||
{
|
||||
QApplication app(argc, argv);
|
||||
|
||||
QCoreApplication::setApplicationName(QObject::tr("Rockbox Theme Editor"));
|
||||
QCoreApplication::setApplicationVersion(QObject::tr("Pre-Alpha"));
|
||||
QCoreApplication::setOrganizationName(QObject::tr("Rockbox"));
|
||||
QCoreApplication::setApplicationName("Rockbox Theme Editor");
|
||||
QCoreApplication::setApplicationVersion("Pre-Alpha");
|
||||
QCoreApplication::setOrganizationName("rockbox.org");
|
||||
|
||||
EditorWindow mainWindow;
|
||||
mainWindow.show();
|
||||
|
|
|
@ -92,7 +92,10 @@ void PreferencesDialog::loadFont()
|
|||
QSettings settings;
|
||||
settings.beginGroup("SkinDocument");
|
||||
|
||||
QVariant family = settings.value("fontFamily", QFont());
|
||||
QFont def("Monospace");
|
||||
def.setStyleHint(QFont::TypeWriter);
|
||||
|
||||
QVariant family = settings.value("fontFamily", def);
|
||||
int size = settings.value("fontSize", 12).toInt();
|
||||
|
||||
settings.endGroup();
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
<item>
|
||||
<widget class="QTabWidget" name="prefsGroups">
|
||||
<property name="tabPosition">
|
||||
<enum>QTabWidget::West</enum>
|
||||
<enum>QTabWidget::North</enum>
|
||||
</property>
|
||||
<property name="currentIndex">
|
||||
<number>0</number>
|
||||
|
@ -120,6 +120,9 @@
|
|||
<property name="text">
|
||||
<string>Error Color</string>
|
||||
</property>
|
||||
<property name="buddy">
|
||||
<cstring>errorButton</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
|
|
|
@ -151,7 +151,9 @@ void SkinDocument::settingsChanged()
|
|||
errorColor.setProperty(QTextFormat::FullWidthSelection, true);
|
||||
|
||||
/* Setting the font */
|
||||
QFont family = settings.value("fontFamily", QFont()).value<QFont>();
|
||||
QFont def("Monospace");
|
||||
def.setStyleHint(QFont::TypeWriter);
|
||||
QFont family = settings.value("fontFamily", def).value<QFont>();
|
||||
family.setPointSize(settings.value("fontSize", 12).toInt());
|
||||
editor->setFont(family);
|
||||
|
||||
|
|
Loading…
Reference in a new issue