From 24a0635b62071aee56c090283b8c8527174be039 Mon Sep 17 00:00:00 2001 From: Petr Mrázek Date: Sun, 9 Nov 2014 19:48:35 +0100 Subject: Allow changing the console font family --- gui/pages/global/MultiMCPage.cpp | 11 +++++++++++ gui/pages/global/MultiMCPage.ui | 32 +++++++++++++++++++++++++++----- 2 files changed, 38 insertions(+), 5 deletions(-) (limited to 'gui/pages/global') diff --git a/gui/pages/global/MultiMCPage.cpp b/gui/pages/global/MultiMCPage.cpp index 4c050059..9e0a0ed8 100644 --- a/gui/pages/global/MultiMCPage.cpp +++ b/gui/pages/global/MultiMCPage.cpp @@ -293,6 +293,11 @@ void MultiMCPage::applySettings() s->set("IconTheme", "multimc"); break; } + + // Console settings + QString consoleFontFamily = ui->consoleFont->currentFont().family(); + s->set("ConsoleFont", consoleFontFamily); + // FTB s->set("TrackFTBInstances", ui->trackFtbBox->isChecked()); s->set("FTBLauncherRoot", ui->ftbLauncherBox->text()); @@ -365,6 +370,12 @@ void MultiMCPage::loadSettings() { ui->themeComboBox->setCurrentIndex(0); } + + // Console settings + QString fontFamily = MMC->settings()->get("ConsoleFont").toString(); + QFont consoleFont(fontFamily); + ui->consoleFont->setCurrentFont(consoleFont); + // FTB ui->trackFtbBox->setChecked(s->get("TrackFTBInstances").toBool()); ui->ftbLauncherBox->setText(s->get("FTBLauncherRoot").toString()); diff --git a/gui/pages/global/MultiMCPage.ui b/gui/pages/global/MultiMCPage.ui index 308d8842..81c21558 100644 --- a/gui/pages/global/MultiMCPage.ui +++ b/gui/pages/global/MultiMCPage.ui @@ -6,8 +6,8 @@ 0 0 - 545 - 609 + 556 + 559 @@ -42,7 +42,7 @@ QTabWidget::Rounded - 0 + 1 @@ -280,7 +280,7 @@ - By last launched + By &last launched sortingModeGroup @@ -290,7 +290,7 @@ - By name + By &name sortingModeGroup @@ -369,6 +369,28 @@ + + + + Console font + + + + + + + 0 + 0 + + + + QFontComboBox::MonospacedFonts + + + + + + -- cgit