From 621e47d890d71220fc7c2cc463e06c652b4badf0 Mon Sep 17 00:00:00 2001 From: un1versal Date: Mon, 16 Nov 2015 14:00:34 +0000 Subject: revert theme manager: we dont need huge icons pixelated Until we have a proper dialog this at least should be semi-sane. https://github.com/kvirc/KVIrc/issues/1737 (has proposal and awaiting @pragmaware) --- src/modules/theme/ThemeManagementDialog.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/modules/theme/ThemeManagementDialog.cpp') diff --git a/src/modules/theme/ThemeManagementDialog.cpp b/src/modules/theme/ThemeManagementDialog.cpp index 99e0757a3..fe5b58249 100644 --- a/src/modules/theme/ThemeManagementDialog.cpp +++ b/src/modules/theme/ThemeManagementDialog.cpp @@ -90,7 +90,7 @@ ThemeListWidgetItem::ThemeListWidgetItem(KviTalListWidget * pBox, KviThemeInfo * if(!pInfo->author().isEmpty()) { - szText += " "; + szText += " "; szText += __tr2qs_ctx("by","theme"); szText += " "; szText += pInfo->author(); @@ -180,9 +180,9 @@ ThemeManagementDialog::ThemeManagementDialog(QWidget * parent) m_pListWidget = new KviTalListWidget(this); m_pListWidget->setContextMenuPolicy(Qt::CustomContextMenu); m_pItemDelegate = new KviTalIconAndRichTextItemDelegate(m_pListWidget); - m_pItemDelegate->setDefaultIcon(g_pIconManager->getBigIcon(QString(KVI_BIGICON_THEME))->scaled(200,180,Qt::KeepAspectRatio)); // FIXME! - m_pItemDelegate->setMinimumSize(QSize(400,60)); - m_pItemDelegate->setIconSize(QSize(200,180)); + m_pItemDelegate->setDefaultIcon(g_pIconManager->getBigIcon(QString(KVI_BIGICON_THEME))->scaled(64,64,Qt::KeepAspectRatio)); // FIXME! + m_pItemDelegate->setMinimumSize(QSize(64,64)); + m_pItemDelegate->setIconSize(QSize(64,64)); m_pListWidget->setItemDelegate(m_pItemDelegate); m_pListWidget->setMinimumHeight(400); m_pListWidget->setMinimumWidth(520); @@ -352,7 +352,7 @@ void ThemeManagementDialog::applyCurrentTheme() if(!it) return; - if(!KviMessageBox::yesNo(__tr2qs_ctx("Apply theme - KVIrc","theme"), + if(!KviMessageBox::yesNo(__tr2qs_ctx("Apply Theme - KVIrc","theme"), __tr2qs_ctx("Do you wish to apply theme \"%Q\" (version %Q)?","theme"), &(it->themeInfo()->name()),&(it->themeInfo()->version()))) return; @@ -365,13 +365,13 @@ void ThemeManagementDialog::applyCurrentTheme() { QString szErr = out.lastError(); QString szMsg = QString(__tr2qs_ctx("Failed to apply the specified theme: %1","theme")).arg(szErr); - QMessageBox::critical(this,__tr2qs_ctx("Apply theme - KVIrc","theme"),szMsg, + QMessageBox::critical(this,__tr2qs_ctx("Apply Theme - KVIrc","theme"),szMsg, QMessageBox::Ok,QMessageBox::NoButton,QMessageBox::NoButton); return; } m_pCurrentInstalledThemeLabel->setText(__tr2qs_ctx("Current Installed Theme: ","theme")+KVI_OPTION_STRING(KviOption_stringIconThemeSubdir)+""); - m_pItemDelegate->setDefaultIcon(g_pIconManager->getBigIcon(QString(KVI_BIGICON_THEME))); + m_pItemDelegate->setDefaultIcon(g_pIconManager->getBigIcon(QString(KVI_BIGICON_THEME))->scaled(64,64,Qt::KeepAspectRatio)); } void ThemeManagementDialog::deleteTheme() @@ -477,7 +477,7 @@ void ThemeManagementDialog::fillThemeBox(bool bBuiltin) QPixmap pixmap=inf->smallScreenshot(); if(!pixmap.isNull()) - it->setIcon(pixmap.scaled(200,180,Qt::KeepAspectRatio)); + it->setIcon(pixmap.scaled(300,280,Qt::KeepAspectRatio)); } else { delete inf; } -- cgit v1.3.1-10-gc9f91