mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 03:20:05 +00:00 
			
		
		
		
	Update title font sizes for macOS
This commit is contained in:
		
							parent
							
								
									b8a0dae042
								
							
						
					
					
						commit
						788bd114cc
					
				
					 2 changed files with 18 additions and 6 deletions
				
			
		|  | @ -42,13 +42,19 @@ public: | |||
| UpdateDialog::UpdateDialog(QWidget* parent) : | ||||
|     QDialog(parent), p {std::make_unique<Impl>(this)}, ui(new Ui::UpdateDialog) | ||||
| { | ||||
| #if !defined(__APPLE__) | ||||
|    static constexpr int titleFontSize = 12; | ||||
| #else | ||||
|    static constexpr int titleFontSize = 16; | ||||
| #endif | ||||
| 
 | ||||
|    ui->setupUi(this); | ||||
| 
 | ||||
|    int titleFontId = | ||||
|    const int titleFontId = | ||||
|       manager::FontManager::Instance().GetFontId(types::Font::din1451alt_g); | ||||
|    QString titleFontFamily = | ||||
|    const QString titleFontFamily = | ||||
|       QFontDatabase::applicationFontFamilies(titleFontId).at(0); | ||||
|    QFont titleFont(titleFontFamily, 12); | ||||
|    const QFont titleFont(titleFontFamily, titleFontSize); | ||||
|    ui->bannerLabel->setFont(titleFont); | ||||
| 
 | ||||
|    ui->releaseNotesText->setOpenExternalLinks(true); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat