aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCrystalwarrior <Varsash@Gmail.com>2020-07-31 23:06:55 +0300
committerGitHub <noreply@github.com>2020-07-31 15:06:55 -0500
commit740d825fd2ac34e052b8cd69f7fd86cea75e324d (patch)
treed7922b9f8577c15fffb2c56583a322f043d784ea /include
parenta0ce2089f2246f8e275604c95485afbd4844361b (diff)
Add a p_char optional argument to set_fonts() (#209)
Add overrides to set_font for font name and size (this is to preserve the chat_size and chat_font char.ini arguments that were implemented way earlier) Cease the baddening with set_font that was there before and condense it into a proper set_font function call Implement set_font for custom showname shenanigans from the misc folder
Diffstat (limited to 'include')
-rw-r--r--include/courtroom.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/courtroom.h b/include/courtroom.h
index af3059ac..33117586 100644
--- a/include/courtroom.h
+++ b/include/courtroom.h
@@ -118,7 +118,7 @@ public:
void set_widgets();
// sets font size based on theme ini files
- void set_font(QWidget *widget, QString class_name, QString p_identifier);
+ void set_font(QWidget *widget, QString class_name, QString p_identifier, QString p_char="", QString font_name="", int f_pointsize=0);
// Get the properly constructed font
QFont get_qfont(QString font_name, int f_pointsize, bool antialias = true);
@@ -128,7 +128,7 @@ public:
QColor f_color = Qt::black, bool bold = false);
// helper function that calls above function on the relevant widgets
- void set_fonts();
+ void set_fonts(QString p_char="");
// sets dropdown menu stylesheet
void set_dropdown(QWidget *widget);