Skip to content

Commit

Permalink
Merge pull request #1 from jamescowens/PR1908
Browse files Browse the repository at this point in the history
Modifications to PR1908 to get fonts to initialize correctly
  • Loading branch information
opsinphark authored Oct 4, 2020
2 parents 730d3ab + 440c8f3 commit 8d1bb87
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/qt/bitcoingui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ BitcoinGUI::BitcoinGUI(QWidget *parent):

setGeometry(QStyle::alignedRect(Qt::LeftToRight,Qt::AlignCenter,QDesktopWidget().availableGeometry(this).size() * 0.6,QDesktopWidget().availableGeometry(this)));

QFontDatabase::addApplicationFont(":/fonts/Inter-Regular.ttf");
QFontDatabase::addApplicationFont(":/fonts/inter-regular");
QFontDatabase::addApplicationFont(":/fonts/inconsolata-regular");
setWindowTitle(tr("Gridcoin") + " " + tr("Wallet"));

#ifndef Q_OS_MAC
Expand Down
2 changes: 1 addition & 1 deletion src/qt/res/stylesheets/dark_stylesheet.qss
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ QTextEdit {
}

/* RPC Console */
#messagesWidget {
#messagesWidget, #lineEdit {
font-family: "Inconsolata";
font-size: 10pt;
}
Expand Down
2 changes: 1 addition & 1 deletion src/qt/res/stylesheets/light_stylesheet.qss
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ QTextEdit {
}

/* RPC Console */
#messagesWidget {
#messagesWidget, #lineEdit {
font-family: "Inconsolata";
font-size: 10pt;
}
Expand Down
2 changes: 1 addition & 1 deletion src/qt/res/stylesheets/native_stylesheet.qss
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ QTextEdit {
}

/* RPC Console */
#messagesWidget {
#messagesWidget, #lineEdit {
font-family: "Inconsolata";
font-size: 10pt;
}
Expand Down
1 change: 0 additions & 1 deletion src/qt/rpcconsole.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,6 @@ void RPCConsole::clear()
}

// Set default style sheet
QFontDatabase::addApplicationFont(":/fonts/Inconsolata-Regular.ttf");
ui->messagesWidget->document()->setDefaultStyleSheet(
"table { }"
"td.time { color: #808080; valign: bottom;} "
Expand Down

0 comments on commit 8d1bb87

Please sign in to comment.