Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
•All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
appearancewidget.cpp
Go to the documentation of this file.
40 ui->fontFamily->addItem(GUIUtil::fontFamilyToString(fontSystem), QVariant(static_cast<int>(fontSystem)));
41 ui->fontFamily->addItem(GUIUtil::fontFamilyToString(fontMontserrat), QVariant(static_cast<int>(fontMontserrat)));
49 connect(ui->theme, SIGNAL(currentTextChanged(const QString&)), this, SLOT(updateTheme(const QString&)));
52 connect(ui->fontWeightNormalSlider, SIGNAL(valueChanged(int)), this, SLOT(updateFontWeightNormal(int)));
53 connect(ui->fontWeightBoldSlider, SIGNAL(valueChanged(int)), this, SLOT(updateFontWeightBold(int)));
58 connect(ui->fontWeightNormalSlider, &QSlider::sliderReleased, [=]() { Q_EMIT appearanceChanged(); });
59 connect(ui->fontWeightBoldSlider, &QSlider::sliderReleased, [=]() { Q_EMIT appearanceChanged(); });
118 GUIUtil::setFontFamily(static_cast<GUIUtil::FontFamily>(ui->fontFamily->itemData(index).toInt()));
135 GUIUtil::setFontWeightNormal(GUIUtil::supportedWeightFromIndex(ui->fontWeightNormalSlider->value()));
146 GUIUtil::setFontWeightBold(GUIUtil::supportedWeightFromIndex(ui->fontWeightBoldSlider->value()));
const std::vector< QString > listThemes()
Return a list of all theme css files.
Definition: guiutil.cpp:1139
AppearanceWidget(QWidget *parent=0)
Definition: appearancewidget.cpp:21
QFont::Weight supportedWeightFromIndex(int nIndex)
Convert an index to a weight in the supported weights vector.
Definition: guiutil.cpp:1751
Definition: addressbookpage.h:12
void setFontWeightNormal(QFont::Weight weight)
Definition: guiutil.cpp:1366
void loadTheme(QWidget *widget, bool fForce)
Load the theme and update all UI elements according to the appearance settings.
Definition: guiutil.cpp:1782
Definition: optionsmodel.h:47
void updateFontFamily(int index)
Definition: appearancewidget.cpp:116
QString fontFamilyToString(FontFamily family)
Definition: guiutil.cpp:1284
void updateTheme(const QString &toTheme=QString())
Definition: appearancewidget.cpp:106
void updateFontWeightBold(int nValue, bool fForce=false)
Definition: appearancewidget.cpp:138
std::vector< QFont::Weight > getSupportedWeights()
Return supported weights for the current font family.
Definition: guiutil.cpp:1745
Definition: optionsmodel.h:51
Definition: optionsmodel.h:48
Interface from Qt to configuration data structure for Bitcoin client.
Definition: optionsmodel.h:25
Definition: optionsmodel.h:50
Definition: optionsmodel.h:49
void updateFontWeightNormal(int nValue, bool fForce=false)
Definition: appearancewidget.cpp:127
void updateFontScale(int nScale)
Definition: appearancewidget.cpp:122
Definition: appearancewidget.h:22