mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59:52 +08:00
add editor_font_size in vnote.ini
Change default editor font size to 12.
This commit is contained in:
parent
aee1b9d571
commit
b0f7add1bb
@ -13,6 +13,7 @@ highlight_searched_word=1
|
||||
current_background_color=System
|
||||
current_render_background_color=System
|
||||
language=System
|
||||
editor_font_size=12
|
||||
|
||||
[predefined_colors]
|
||||
1\name=White
|
||||
|
@ -35,7 +35,11 @@ void VConfigManager::initialize()
|
||||
userSettings = new QSettings(QSettings::IniFormat, QSettings::UserScope, orgName, appName);
|
||||
defaultSettings = new QSettings(defaultConfigFilePath, QSettings::IniFormat);
|
||||
|
||||
baseEditFont.setPointSize(11);
|
||||
m_editorFontSize = getConfigFromSettings("global", "editor_font_size").toInt();
|
||||
if (m_editorFontSize <= 0) {
|
||||
m_editorFontSize = 12;
|
||||
}
|
||||
baseEditFont.setPointSize(m_editorFontSize);
|
||||
baseEditPalette = QTextEdit().palette();
|
||||
|
||||
welcomePagePath = getConfigFromSettings("global", "welcome_page_path").toString();
|
||||
|
@ -130,6 +130,7 @@ private:
|
||||
// Update baseEditPalette according to curBackgroundColor
|
||||
void updatePaletteColor();
|
||||
|
||||
int m_editorFontSize;
|
||||
QFont baseEditFont;
|
||||
QPalette baseEditPalette;
|
||||
QFont mdEditFont;
|
||||
|
Loading…
x
Reference in New Issue
Block a user