Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
Utility functions used by the Dash Qt UI. More...
Classes | |
class | ClickableLabel |
class | ClickableProgressBar |
class | TableViewLastColumnResizingFixer |
Makes a QTableView last column feel as if it was being resized from its left border. More... | |
class | ToolTipToRichTextFilter |
Qt event filter that intercepts ToolTipChange events, and replaces the tooltip with a rich text representation if needed. More... | |
Typedefs | |
typedef ClickableProgressBar | ProgressBar |
Functions | |
QColor | getThemedQColor (ThemedColor color) |
Helper to get colors for various themes which can't be applied via css for some reason. More... | |
QString | getThemedStyleQString (ThemedStyle style) |
Helper to get css style strings which are injected into rich text through qt. More... | |
QIcon | getIcon (const QString &strIcon, ThemedColor color, ThemedColor colorAlternative, const QString &strIconPath=ICONS_PATH) |
Helper to get an icon colorized with the given color (replaces black) and colorAlternative (replaces white) More... | |
QIcon | getIcon (const QString &strIcon, const ThemedColor color, const QString &strIconPath) |
void | setIcon (QAbstractButton *button, const QString &strIcon, ThemedColor color, ThemedColor colorAlternative, const QSize &size) |
Helper to set an icon for a button with the given color (replaces black) and colorAlternative (replaces white). More... | |
void | setIcon (QAbstractButton *button, const QString &strIcon, const ThemedColor color, const QSize &size) |
QString | dateTimeStr (const QDateTime &date) |
QString | dateTimeStr (qint64 nTime) |
static std::string | DummyAddress (const CChainParams ¶ms) |
void | setupAddressWidget (QValidatedLineEdit *widget, QWidget *parent, bool fAllowURI) |
void | setupAmountWidget (QLineEdit *widget, QWidget *parent) |
void | setupAppearance (QWidget *parent, OptionsModel *model) |
bool | parseBitcoinURI (const QUrl &uri, SendCoinsRecipient *out) |
bool | parseBitcoinURI (QString uri, SendCoinsRecipient *out) |
bool | validateBitcoinURI (const QString &uri) |
QString | formatBitcoinURI (const SendCoinsRecipient &info) |
bool | isDust (const QString &address, const CAmount &amount) |
QString | HtmlEscape (const QString &str, bool fMultiLine) |
QString | HtmlEscape (const std::string &str, bool fMultiLine) |
void | copyEntryData (QAbstractItemView *view, int column, int role=Qt::EditRole) |
Copy a field of the currently selected entry of a view to the clipboard. More... | |
QList< QModelIndex > | getEntryData (QAbstractItemView *view, int column) |
Return a field of the currently selected entry as a QString. More... | |
QString | getSaveFileName (QWidget *parent, const QString &caption, const QString &dir, const QString &filter, QString *selectedSuffixOut) |
Get save filename, mimics QFileDialog::getSaveFileName, except that it appends a default suffix when no suffix is provided by the user. More... | |
QString | getOpenFileName (QWidget *parent, const QString &caption, const QString &dir, const QString &filter, QString *selectedSuffixOut) |
Get open filename, convenience wrapper for QFileDialog::getOpenFileName. More... | |
Qt::ConnectionType | blockingGUIThreadConnection () |
Get connection type to call object slot in GUI thread with invokeMethod. More... | |
bool | checkPoint (const QPoint &p, const QWidget *w) |
bool | isObscured (QWidget *w) |
void | bringToFront (QWidget *w) |
void | openDebugLogfile () |
void | openConfigfile () |
void | showBackups () |
void | SubstituteFonts (const QString &language) |
bool | GetStartOnSystemStartup () |
bool | SetStartOnSystemStartup (bool fAutoStart) |
void | migrateQtSettings () |
Modify Qt network specific settings on migration. More... | |
void | setStyleSheetDirectory (const QString &path) |
Change the stylesheet directory. More... | |
bool | isStyleSheetDirectoryCustom () |
Check if a custom css directory has been set with -custom-css-dir. More... | |
const std::vector< QString > | listStyleSheets () |
Return a list of all required css files. More... | |
const std::vector< QString > | listThemes () |
Return a list of all theme css files. More... | |
const QString | getDefaultTheme () |
Return the name of the default theme `. More... | |
void | loadStyleSheet (QWidget *widget=nullptr, bool fForceUpdate=false) |
Updates the widgets stylesheet and adds it to the list of ui debug elements. More... | |
FontFamily | fontFamilyFromString (const QString &strFamily) |
QString | fontFamilyToString (FontFamily family) |
void | setFontFamily (FontFamily family) |
FontFamily | getFontFamilyDefault () |
set/get font family: GUIUtil::fontFamily More... | |
FontFamily | getFontFamily () |
bool | weightFromArg (int nArg, QFont::Weight &weight) |
Convert weight value from args (0-8) to QFont::Weight. More... | |
int | weightToArg (const QFont::Weight weight) |
Convert QFont::Weight to an arg value (0-8) More... | |
QFont::Weight | getFontWeightNormalDefault () |
set/get normal font weight: GUIUtil::fontWeightNormal More... | |
QFont::Weight | toQFontWeight (FontWeight weight) |
Convert GUIUtil::FontWeight to QFont::Weight. More... | |
QFont::Weight | getFontWeightNormal () |
void | setFontWeightNormal (QFont::Weight weight) |
QFont::Weight | getFontWeightBoldDefault () |
set/get bold font weight: GUIUtil::fontWeightBold More... | |
QFont::Weight | getFontWeightBold () |
void | setFontWeightBold (QFont::Weight weight) |
int | getFontScaleDefault () |
set/get font scale: GUIUtil::fontScale More... | |
int | getFontScale () |
void | setFontScale (int nScale) |
double | getScaledFontSize (int nSize) |
get font size with GUIUtil::fontScale applied More... | |
bool | loadFonts () |
Load dash specific appliciation fonts. More... | |
void | setApplicationFont () |
Set an application wide default font, depends on the selected theme. More... | |
void | setFont (const std::vector< QWidget * > &vecWidgets, FontWeight weight, int nPointSize=-1, bool fItalic=false) |
Workaround to set correct font styles in all themes since there is a bug in macOS which leads to issues loading variations of montserrat in css it also keeps track of the set fonts to update on theme changes. More... | |
void | updateFonts () |
Update the font of all widgets where a custom font has been set with GUIUtil::setFont. More... | |
QFont | getFont (FontFamily family, QFont::Weight qWeight, bool fItalic=false, int nPointSize=-1) |
Get a properly weighted QFont object with the selected font. More... | |
QFont | getFont (QFont::Weight qWeight, bool fItalic, int nPointSize) |
QFont | getFont (FontWeight weight, bool fItalic, int nPointSize) |
QFont | getFontNormal () |
Get the default normal QFont. More... | |
QFont | getFontBold () |
Get the default bold QFont. More... | |
std::vector< QFont::Weight > | getSupportedWeights () |
Return supported weights for the current font family. More... | |
QFont::Weight | supportedWeightFromIndex (int nIndex) |
Convert an index to a weight in the supported weights vector. More... | |
int | supportedWeightToIndex (QFont::Weight weight) |
Convert a weight to an index in the supported weights vector. More... | |
QString | getActiveTheme () |
Return the name of the currently active theme. More... | |
bool | dashThemeActive () |
Check if a dash specific theme is activated (light/dark). More... | |
void | loadTheme (QWidget *widget=nullptr, bool fForce=false) |
Load the theme and update all UI elements according to the appearance settings. More... | |
void | disableMacFocusRect (const QWidget *w) |
Disable the OS default focus rect for macOS because we have custom focus rects set in the css files. More... | |
void | updateMacFocusRects () |
Enable/Disable the macOS focus rects depending on the current theme. More... | |
void | setClipboard (const QString &str) |
fs::path | qstringToBoostPath (const QString &path) |
QString | boostPathToQString (const fs::path &path) |
QString | formatDurationStr (int secs) |
QString | formatServicesStr (quint64 mask) |
QString | formatPingTime (double dPingTime) |
QString | formatTimeOffset (int64_t nTimeOffset) |
QString | formatNiceTimeOffset (qint64 secs) |
QString | formatBytes (uint64_t bytes) |
qreal | calculateIdealFontSize (int width, const QString &text, QFont font, qreal minPointSize, qreal font_size) |
Variables | |
static CCriticalSection | cs_css |
static const QString | defaultStylesheetDirectory = ":css" |
static QString | stylesheetDirectory = defaultStylesheetDirectory |
static const QString | traditionalTheme = "Traditional" |
static const QString | defaultTheme = "Light" |
static const QString | darkThemePrefix = "Dark" |
static const std::map< QString, QString > | mapStyleToTheme |
static std::unique_ptr< QFont > | osDefaultFont |
loadFonts stores the SystemDefault font in osDefaultFont to be able to reference it later again More... | |
static const FontFamily | defaultFontFamily = FontFamily::SystemDefault |
Font related default values. More... | |
static const int | defaultFontSize = 12 |
static const double | fontScaleSteps = 0.01 |
static const QFont::Weight | defaultFontWeightNormal = QFont::Light |
static const QFont::Weight | defaultFontWeightBold = QFont::Medium |
static const int | defaultFontScale = 0 |
static FontFamily | fontFamily = defaultFontFamily |
Font related variables. More... | |
static int | fontScale = defaultFontScale |
static QFont::Weight | fontWeightNormal = defaultFontWeightNormal |
static QFont::Weight | fontWeightBold = defaultFontWeightBold |
static std::map< QWidget *, std::tuple< FontWeight, bool, int > > | mapNormalFontUpdates |
static std::map< FontFamily, std::vector< QFont::Weight > > | mapSupportedWeights |
static const std::map< ThemedColor, QColor > | themedColors |
static const std::map< ThemedColor, QColor > | themedDarkColors |
static const std::map< ThemedStyle, QString > | themedStyles |
static const std::map< ThemedStyle, QString > | themedDarkStyles |
static const uint8_t | dummydata [] = {0xeb,0x15,0x23,0x1d,0xfc,0xeb,0x60,0x92,0x58,0x86,0xb6,0x7d,0x06,0x52,0x99,0x92,0x59,0x15,0xae,0xb1,0x72,0xc0,0x66,0x47} |
Detailed Description
Utility functions used by the Dash Qt UI.
Typedef Documentation
◆ ProgressBar
Enumeration Type Documentation
◆ FontFamily
|
strong |
◆ FontWeight
|
strong |
◆ ThemedColor
|
strong |
◆ ThemedStyle
|
strong |
Function Documentation
◆ blockingGUIThreadConnection()
Qt::ConnectionType GUIUtil::blockingGUIThreadConnection | ( | ) |
Get connection type to call object slot in GUI thread with invokeMethod.
The call will be blocking.
- Returns
- If called from the GUI thread, return a Qt::DirectConnection. If called from another thread, return a Qt::BlockingQueuedConnection.
Definition at line 606 of file guiutil.cpp.
Referenced by ThreadSafeMessageBox().
◆ boostPathToQString()
QString GUIUtil::boostPathToQString | ( | const fs::path & | path | ) |
Definition at line 1828 of file guiutil.cpp.
References utf8.
Referenced by BackupSettings(), ClientModel::dataDir(), Intro::getDefaultDataDirectory(), ipcServerName(), openConfigfile(), openDebugLogfile(), and showBackups().
◆ bringToFront()
void GUIUtil::bringToFront | ( | QWidget * | w | ) |
Definition at line 634 of file guiutil.cpp.
References ForceActivation().
Referenced by BitcoinGUI::showDebugWindow(), BitcoinGUI::showNormalIfMinimized(), WalletView::usedReceivingAddresses(), and WalletView::usedSendingAddresses().
◆ calculateIdealFontSize()
qreal GUIUtil::calculateIdealFontSize | ( | int | width, |
const QString & | text, | ||
QFont | font, | ||
qreal | minPointSize, | ||
qreal | font_size | ||
) |
Definition at line 1947 of file guiutil.cpp.
Referenced by ReceiveRequestDialog::update().
◆ checkPoint()
bool GUIUtil::checkPoint | ( | const QPoint & | p, |
const QWidget * | w | ||
) |
Definition at line 618 of file guiutil.cpp.
Referenced by isObscured().
◆ copyEntryData()
void GUIUtil::copyEntryData | ( | QAbstractItemView * | view, |
int | column, | ||
int | role = Qt::EditRole |
||
) |
Copy a field of the currently selected entry of a view to the clipboard.
Does nothing if nothing is selected.
- Parameters
-
[in] column Data column to extract from the model [in] role Data role to extract from the model
Definition at line 501 of file guiutil.cpp.
References setClipboard().
Referenced by TransactionView::copyAddress(), TransactionView::copyAmount(), TransactionView::copyLabel(), TransactionView::copyTxHex(), TransactionView::copyTxID(), TransactionView::copyTxPlainText(), TransactionView::eventFilter(), AddressBookPage::on_copyAddress_clicked(), and AddressBookPage::onCopyLabelAction().
◆ dashThemeActive()
bool GUIUtil::dashThemeActive | ( | ) |
Check if a dash specific theme is activated (light/dark).
Definition at line 1775 of file guiutil.cpp.
References traditionalTheme.
Referenced by RPCConsole::changeEvent(), disableMacFocusRect(), loadStyleSheet(), AmountLineEdit::minimumSizeHint(), and updateMacFocusRects().
◆ dateTimeStr() [1/2]
QString GUIUtil::dateTimeStr | ( | const QDateTime & | date | ) |
Definition at line 258 of file guiutil.cpp.
Referenced by CWallet::AutoBackupWallet(), RecentRequestsTableModel::data(), dateTimeStr(), TransactionTableModel::formatTxDate(), TransactionDesc::FormatTxStatus(), TransactionTableModel::formatTxStatus(), TransactionDesc::toHTML(), and CoinControlDialog::updateView().
◆ dateTimeStr() [2/2]
QString GUIUtil::dateTimeStr | ( | qint64 | nTime | ) |
Definition at line 263 of file guiutil.cpp.
References dateTimeStr().
◆ disableMacFocusRect()
void GUIUtil::disableMacFocusRect | ( | const QWidget * | w | ) |
Disable the OS default focus rect for macOS because we have custom focus rects set in the css files.
Definition at line 1789 of file guiutil.cpp.
References dashThemeActive().
Referenced by AddressBookPage::AddressBookPage(), AskPassphraseDialog::AskPassphraseDialog(), CoinControlDialog::CoinControlDialog(), EditAddressDialog::EditAddressDialog(), OpenURIDialog::OpenURIDialog(), OptionsDialog::OptionsDialog(), Intro::pickDataDirectory(), RPCConsole::RPCConsole(), SendCoinsEntry::SendCoinsEntry(), SignVerifyMessageDialog::SignVerifyMessageDialog(), and WalletView::WalletView().
◆ DummyAddress()
|
static |
Definition at line 272 of file guiutil.cpp.
References CChainParams::Base58Prefix(), dummydata, EncodeBase58(), IsValidDestinationString(), and CChainParams::PUBKEY_ADDRESS.
Referenced by setupAddressWidget().
◆ fontFamilyFromString()
FontFamily GUIUtil::fontFamilyFromString | ( | const QString & | strFamily | ) |
Definition at line 1273 of file guiutil.cpp.
References Montserrat, strprintf, and SystemDefault.
Referenced by loadFonts(), and main().
◆ fontFamilyToString()
QString GUIUtil::fontFamilyToString | ( | FontFamily | family | ) |
Definition at line 1284 of file guiutil.cpp.
References Montserrat, and SystemDefault.
Referenced by AppearanceWidget::AppearanceWidget(), getFont(), HelpMessageDialog::HelpMessageDialog(), OptionsModel::Init(), loadFonts(), main(), and setApplicationFont().
◆ formatBitcoinURI()
QString GUIUtil::formatBitcoinURI | ( | const SendCoinsRecipient & | info | ) |
Definition at line 445 of file guiutil.cpp.
References SendCoinsRecipient::address, SendCoinsRecipient::amount, BitcoinUnits::DASH, BitcoinUnits::format(), SendCoinsRecipient::label, SendCoinsRecipient::message, and BitcoinUnits::separatorNever.
Referenced by ReceiveCoinsDialog::copyURI(), ReceiveRequestDialog::on_btnCopyURI_clicked(), and ReceiveRequestDialog::update().
◆ formatBytes()
QString GUIUtil::formatBytes | ( | uint64_t | bytes | ) |
Definition at line 1935 of file guiutil.cpp.
Referenced by PeerTableModel::data(), TrafficGraphWidget::paintEvent(), and RPCConsole::updateNodeDetail().
◆ formatDurationStr()
QString GUIUtil::formatDurationStr | ( | int | secs | ) |
Definition at line 1833 of file guiutil.cpp.
Referenced by RPCConsole::setTrafficGraphRange(), and RPCConsole::updateNodeDetail().
◆ formatNiceTimeOffset()
QString GUIUtil::formatNiceTimeOffset | ( | qint64 | secs | ) |
Definition at line 1898 of file guiutil.cpp.
Referenced by SendCoinsDialog::setModel(), BitcoinGUI::setNumBlocks(), and ModalOverlay::tipUpdate().
◆ formatPingTime()
QString GUIUtil::formatPingTime | ( | double | dPingTime | ) |
Definition at line 1888 of file guiutil.cpp.
Referenced by PeerTableModel::data(), and RPCConsole::updateNodeDetail().
◆ formatServicesStr()
QString GUIUtil::formatServicesStr | ( | quint64 | mask | ) |
Definition at line 1853 of file guiutil.cpp.
References immer::detail::hamts::mask, NODE_BLOOM, NODE_GETUTXO, NODE_NETWORK, and NODE_XTHIN.
Referenced by RPCConsole::updateNodeDetail().
◆ formatTimeOffset()
QString GUIUtil::formatTimeOffset | ( | int64_t | nTimeOffset | ) |
Definition at line 1893 of file guiutil.cpp.
References nTimeOffset.
Referenced by RPCConsole::updateNodeDetail().
◆ getActiveTheme()
QString GUIUtil::getActiveTheme | ( | ) |
Return the name of the currently active theme.
Definition at line 1769 of file guiutil.cpp.
References defaultTheme.
Referenced by loadStyleSheet(), AppearanceWidget::updateTheme(), and AppearanceWidget::~AppearanceWidget().
◆ getDefaultTheme()
const QString GUIUtil::getDefaultTheme | ( | ) |
Return the name of the default theme `.
Definition at line 1150 of file guiutil.cpp.
References defaultTheme.
Referenced by OptionsModel::Init().
◆ getEntryData()
QList< QModelIndex > GUIUtil::getEntryData | ( | QAbstractItemView * | view, |
int | column | ||
) |
Return a field of the currently selected entry as a QString.
Does nothing if nothing is selected.
- Parameters
-
[in] column Data column to extract from the model
Definition at line 514 of file guiutil.cpp.
Referenced by RPCConsole::banSelectedNode(), RPCConsole::disconnectSelectedNode(), AddressBookPage::on_showAddressQRCode_clicked(), TransactionView::showAddressQRCode(), and RPCConsole::unbanSelectedNode().
◆ getFont() [1/3]
QFont GUIUtil::getFont | ( | FontFamily | family, |
QFont::Weight | qWeight, | ||
bool | fItalic = false , |
||
int | nPointSize = -1 |
||
) |
Get a properly weighted QFont object with the selected font.
Definition at line 1666 of file guiutil.cpp.
References Bold, fontFamilyToString(), gArgs, ArgsManager::GetBoolArg(), getScaledFontSize(), Montserrat, Normal, and osDefaultFont.
Referenced by getFont(), getFontBold(), getFontNormal(), loadFonts(), TxViewDelegate::paint(), TrafficGraphWidget::paintEvent(), and updateFonts().
◆ getFont() [2/3]
QFont GUIUtil::getFont | ( | QFont::Weight | qWeight, |
bool | fItalic, | ||
int | nPointSize | ||
) |
Definition at line 1726 of file guiutil.cpp.
References fontFamily, and getFont().
◆ getFont() [3/3]
QFont GUIUtil::getFont | ( | FontWeight | weight, |
bool | fItalic, | ||
int | nPointSize | ||
) |
Definition at line 1730 of file guiutil.cpp.
References getFont(), and toQFontWeight().
◆ getFontBold()
QFont GUIUtil::getFontBold | ( | ) |
Get the default bold QFont.
Definition at line 1740 of file guiutil.cpp.
References Bold, and getFont().
Referenced by SplashScreen::SplashScreen().
◆ getFontFamily()
FontFamily GUIUtil::getFontFamily | ( | ) |
Definition at line 1308 of file guiutil.cpp.
References fontFamily.
Referenced by AppearanceWidget::~AppearanceWidget().
◆ getFontFamilyDefault()
FontFamily GUIUtil::getFontFamilyDefault | ( | ) |
set/get font family: GUIUtil::fontFamily
Definition at line 1303 of file guiutil.cpp.
References defaultFontFamily.
Referenced by HelpMessageDialog::HelpMessageDialog(), OptionsModel::Init(), and main().
◆ getFontNormal()
QFont GUIUtil::getFontNormal | ( | ) |
Get the default normal QFont.
Definition at line 1735 of file guiutil.cpp.
References getFont(), and Normal.
Referenced by RPCConsole::clear(), AddressTableModel::data(), SplashScreen::paintEvent(), RPCConsole::RPCConsole(), setApplicationFont(), SplashScreen::SplashScreen(), UnitDisplayStatusBarControl::UnitDisplayStatusBarControl(), and ReceiveRequestDialog::update().
◆ getFontScale()
int GUIUtil::getFontScale | ( | ) |
Definition at line 1393 of file guiutil.cpp.
References fontScale.
Referenced by main(), and AppearanceWidget::~AppearanceWidget().
◆ getFontScaleDefault()
int GUIUtil::getFontScaleDefault | ( | ) |
set/get font scale: GUIUtil::fontScale
Definition at line 1388 of file guiutil.cpp.
References defaultFontScale.
Referenced by HelpMessageDialog::HelpMessageDialog(), and OptionsModel::Init().
◆ getFontWeightBold()
QFont::Weight GUIUtil::getFontWeightBold | ( | ) |
Definition at line 1377 of file guiutil.cpp.
References fontWeightBold.
Referenced by main(), toQFontWeight(), and AppearanceWidget::~AppearanceWidget().
◆ getFontWeightBoldDefault()
QFont::Weight GUIUtil::getFontWeightBoldDefault | ( | ) |
set/get bold font weight: GUIUtil::fontWeightBold
Definition at line 1372 of file guiutil.cpp.
References defaultFontWeightBold.
Referenced by HelpMessageDialog::HelpMessageDialog(), and OptionsModel::Init().
◆ getFontWeightNormal()
QFont::Weight GUIUtil::getFontWeightNormal | ( | ) |
Definition at line 1361 of file guiutil.cpp.
References fontWeightNormal.
Referenced by main(), setApplicationFont(), toQFontWeight(), updateFonts(), and AppearanceWidget::~AppearanceWidget().
◆ getFontWeightNormalDefault()
QFont::Weight GUIUtil::getFontWeightNormalDefault | ( | ) |
set/get normal font weight: GUIUtil::fontWeightNormal
Definition at line 1351 of file guiutil.cpp.
References defaultFontWeightNormal.
Referenced by HelpMessageDialog::HelpMessageDialog(), OptionsModel::Init(), and setApplicationFont().
◆ getIcon() [1/2]
QIcon GUIUtil::getIcon | ( | const QString & | strIcon, |
const ThemedColor | color, | ||
const ThemedColor | colorAlternative, | ||
const QString & | strIconPath | ||
) |
Helper to get an icon colorized with the given color (replaces black) and colorAlternative (replaces white)
Definition at line 216 of file guiutil.cpp.
References getThemedQColor(), and RGB_HALF.
Referenced by CoinControlDialog::buttonToggleLockClicked(), BitcoinGUI::changeEvent(), getIcon(), CoinControlDialog::lockCoin(), ModalOverlay::ModalOverlay(), BitcoinGUI::setAdditionalDataSyncProgress(), setIcon(), BitcoinGUI::startConnectingAnimation(), BitcoinGUI::startSpinner(), TransactionView::TransactionView(), TransactionTableModel::txAddressDecoration(), TransactionTableModel::txStatusDecoration(), TransactionTableModel::txWatchonlyDecoration(), BitcoinGUI::updateNetworkState(), and CoinControlDialog::updateView().
◆ getIcon() [2/2]
QIcon GUIUtil::getIcon | ( | const QString & | strIcon, |
const ThemedColor | color, | ||
const QString & | strIconPath | ||
) |
Definition at line 242 of file guiutil.cpp.
References getIcon(), and ICON_ALTERNATIVE_COLOR.
◆ getOpenFileName()
QString GUIUtil::getOpenFileName | ( | QWidget * | parent, |
const QString & | caption, | ||
const QString & | dir, | ||
const QString & | filter, | ||
QString * | selectedSuffixOut | ||
) |
Get open filename, convenience wrapper for QFileDialog::getOpenFileName.
- Parameters
-
[in] parent Parent window (or 0) [in] caption Window caption (or empty, for default) [in] dir Starting directory (or empty, to default to documents directory) [in] filter Filter specification such as "Comma Separated Files (*.csv)" [out] selectedSuffixOut Pointer to return the suffix (file type) that was selected (or 0). Can be useful when choosing the save file format based on suffix.
Definition at line 571 of file guiutil.cpp.
Referenced by OpenURIDialog::on_selectFileButton_clicked().
◆ getSaveFileName()
QString GUIUtil::getSaveFileName | ( | QWidget * | parent, |
const QString & | caption, | ||
const QString & | dir, | ||
const QString & | filter, | ||
QString * | selectedSuffixOut | ||
) |
Get save filename, mimics QFileDialog::getSaveFileName, except that it appends a default suffix when no suffix is provided by the user.
- Parameters
-
[in] parent Parent window (or 0) [in] caption Window caption (or empty, for default) [in] dir Starting directory (or empty, to default to documents directory) [in] filter Filter specification such as "Comma Separated Files (*.csv)" [out] selectedSuffixOut Pointer to return the suffix (file type) that was selected (or 0). Can be useful when choosing the save file format based on suffix.
Definition at line 521 of file guiutil.cpp.
Referenced by WalletView::backupWallet(), TransactionView::exportClicked(), AddressBookPage::on_exportButton_clicked(), QRGeneralImageWidget::saveImage(), and QRImageWidget::saveImage().
◆ getScaledFontSize()
double GUIUtil::getScaledFontSize | ( | int | nSize | ) |
get font size with GUIUtil::fontScale applied
Definition at line 1404 of file guiutil.cpp.
References fontScale, and fontScaleSteps.
Referenced by getFont(), TxViewDelegate::paint(), and updateFonts().
◆ GetStartOnSystemStartup()
bool GUIUtil::GetStartOnSystemStartup | ( | ) |
Definition at line 1103 of file guiutil.cpp.
Referenced by OptionsModel::data(), and OptionsModel::Reset().
◆ getSupportedWeights()
std::vector< QFont::Weight > GUIUtil::getSupportedWeights | ( | ) |
Return supported weights for the current font family.
Definition at line 1745 of file guiutil.cpp.
References fontFamily, and mapSupportedWeights.
Referenced by setupAppearance(), supportedWeightFromIndex(), supportedWeightToIndex(), and AppearanceWidget::updateWeightSlider().
◆ getThemedQColor()
QColor GUIUtil::getThemedQColor | ( | ThemedColor | color | ) |
Helper to get colors for various themes which can't be applied via css for some reason.
Definition at line 204 of file guiutil.cpp.
References darkThemePrefix, themedColors, and themedDarkColors.
Referenced by TransactionTableModel::addressColor(), TransactionTableModel::amountColor(), TransactionTableModel::data(), getIcon(), InitMessage(), TrafficGraphWidget::paintEvent(), SplashScreen::SplashScreen(), TransactionTableModel::txStatusDecoration(), QRDialog::update(), ReceiveRequestDialog::update(), and TransactionView::updateCalendarWidgets().
◆ getThemedStyleQString()
QString GUIUtil::getThemedStyleQString | ( | ThemedStyle | style | ) |
Helper to get css style strings which are injected into rich text through qt.
Definition at line 210 of file guiutil.cpp.
References darkThemePrefix, themedDarkStyles, and themedStyles.
Referenced by RPCConsole::clear(), SendCoinsDialog::coinControlChangeEdited(), TransactionView::computeSum(), OverviewPage::DisablePrivateSendCompletely(), HelpMessageDialog::HelpMessageDialog(), SignVerifyMessageDialog::on_signMessageButton_SM_clicked(), SignVerifyMessageDialog::on_verifyMessageButton_VM_clicked(), OverviewPage::privateSendStatus(), SendCoinsDialog::send(), Intro::setStatus(), QValidatedLineEdit::setValid(), BitcoinAmountField::setValid(), OptionsDialog::showRestartWarning(), ReceiveRequestDialog::update(), CoinControlDialog::updateLabels(), OverviewPage::updatePrivateSendProgress(), and OptionsDialog::updateProxyValidationState().
◆ HtmlEscape() [1/2]
QString GUIUtil::HtmlEscape | ( | const QString & | str, |
bool | fMultiLine | ||
) |
Definition at line 481 of file guiutil.cpp.
Referenced by GUIUtil::ToolTipToRichTextFilter::eventFilter(), HtmlEscape(), RPCConsole::message(), PaymentServer::netRequestFinished(), PaymentServer::processPaymentRequest(), SendCoinsDialog::send(), TransactionDesc::toHTML(), and ReceiveRequestDialog::update().
◆ HtmlEscape() [2/2]
QString GUIUtil::HtmlEscape | ( | const std::string & | str, |
bool | fMultiLine | ||
) |
Definition at line 496 of file guiutil.cpp.
References HtmlEscape().
◆ isDust()
bool GUIUtil::isDust | ( | const QString & | address, |
const CAmount & | amount | ||
) |
Definition at line 473 of file guiutil.cpp.
References DecodeDestination(), dustRelayFee, GetScriptForDestination(), and IsDust().
Referenced by SendCoinsEntry::validate().
◆ isObscured()
bool GUIUtil::isObscured | ( | QWidget * | w | ) |
Definition at line 625 of file guiutil.cpp.
References checkPoint().
Referenced by BitcoinGUI::showNormalIfMinimized().
◆ isStyleSheetDirectoryCustom()
bool GUIUtil::isStyleSheetDirectoryCustom | ( | ) |
Check if a custom css directory has been set with -custom-css-dir.
Definition at line 1125 of file guiutil.cpp.
References defaultStylesheetDirectory, and stylesheetDirectory.
Referenced by loadStyleSheet().
◆ listStyleSheets()
const std::vector< QString > GUIUtil::listStyleSheets | ( | ) |
Return a list of all required css files.
Definition at line 1130 of file guiutil.cpp.
References mapStyleToTheme.
Referenced by main().
◆ listThemes()
const std::vector< QString > GUIUtil::listThemes | ( | ) |
Return a list of all theme css files.
Definition at line 1139 of file guiutil.cpp.
References mapStyleToTheme.
Referenced by AppearanceWidget::AppearanceWidget().
◆ loadFonts()
bool GUIUtil::loadFonts | ( | ) |
Load dash specific appliciation fonts.
Definition at line 1409 of file guiutil.cpp.
References Bold, defaultFontSize, fontFamily, fontFamilyFromString(), fontFamilyToString(), fontScale, fontWeightBold, fontWeightNormal, gArgs, getFont(), ArgsManager::IsArgSet(), mapSupportedWeights, Montserrat, Normal, osDefaultFont, setApplicationFont(), SystemDefault, and weightFromArg().
Referenced by main().
◆ loadStyleSheet()
void GUIUtil::loadStyleSheet | ( | QWidget * | widget = nullptr , |
bool | fForceUpdate = false |
||
) |
Updates the widgets stylesheet and adds it to the list of ui debug elements.
Beeing on that list means the stylesheet of the widget gets updated if the related css files has been changed if -debug-ui mode is active.
Definition at line 1155 of file guiutil.cpp.
References AssertLockNotHeld, cs_css, dashThemeActive(), BitcoinGUI::DEFAULT_UIPLATFORM, gArgs, getActiveTheme(), ArgsManager::GetArg(), ArgsManager::GetBoolArg(), isStyleSheetDirectoryCustom(), LOCK, ShutdownRequested(), strprintf, and stylesheetDirectory.
Referenced by loadTheme(), Intro::pickDataDirectory(), RPCConsole::setClientModel(), and ShutdownWindow::ShutdownWindow().
◆ loadTheme()
void GUIUtil::loadTheme | ( | QWidget * | widget = nullptr , |
bool | fForce = false |
||
) |
Load the theme and update all UI elements according to the appearance settings.
Definition at line 1782 of file guiutil.cpp.
References loadStyleSheet(), updateFonts(), and updateMacFocusRects().
Referenced by BitcoinApplication::createWindow(), and AppearanceWidget::updateTheme().
◆ migrateQtSettings()
void GUIUtil::migrateQtSettings | ( | ) |
Modify Qt network specific settings on migration.
Definition at line 1108 of file guiutil.cpp.
Referenced by NetworkStyle::NetworkStyle().
◆ openConfigfile()
void GUIUtil::openConfigfile | ( | ) |
Definition at line 661 of file guiutil.cpp.
References BITCOIN_CONF_FILENAME, boostPathToQString(), gArgs, ArgsManager::GetArg(), and GetConfigFile().
Referenced by BitcoinGUI::showConfEditor().
◆ openDebugLogfile()
void GUIUtil::openDebugLogfile | ( | ) |
Definition at line 652 of file guiutil.cpp.
References boostPathToQString(), and GetDataDir().
Referenced by RPCConsole::on_openDebugLogfileButton_clicked().
◆ parseBitcoinURI() [1/2]
bool GUIUtil::parseBitcoinURI | ( | const QUrl & | uri, |
SendCoinsRecipient * | out | ||
) |
Definition at line 358 of file guiutil.cpp.
References SendCoinsRecipient::address, SendCoinsRecipient::amount, BitcoinUnits::DASH, SendCoinsRecipient::label, SendCoinsRecipient::message, and BitcoinUnits::parse().
Referenced by OpenURIDialog::accept(), PaymentServer::handleURIOrFile(), PaymentServer::ipcParseCommandLine(), SendCoinsEntry::on_payTo_textChanged(), parseBitcoinURI(), and validateBitcoinURI().
◆ parseBitcoinURI() [2/2]
bool GUIUtil::parseBitcoinURI | ( | QString | uri, |
SendCoinsRecipient * | out | ||
) |
Definition at line 425 of file guiutil.cpp.
References parseBitcoinURI().
◆ qstringToBoostPath()
fs::path GUIUtil::qstringToBoostPath | ( | const QString & | path | ) |
Definition at line 1823 of file guiutil.cpp.
References utf8.
Referenced by FreespaceChecker::check(), and Intro::pickDataDirectory().
◆ setApplicationFont()
void GUIUtil::setApplicationFont | ( | ) |
Set an application wide default font, depends on the selected theme.
Definition at line 1522 of file guiutil.cpp.
References defaultFontSize, fontFamily, fontFamilyToString(), getFontNormal(), getFontWeightNormal(), getFontWeightNormalDefault(), and Montserrat.
Referenced by loadFonts(), and setFontFamily().
◆ setClipboard()
void GUIUtil::setClipboard | ( | const QString & | str | ) |
Definition at line 1817 of file guiutil.cpp.
Referenced by CoinControlDialog::clipboardAfterFee(), CoinControlDialog::clipboardAmount(), CoinControlDialog::clipboardBytes(), CoinControlDialog::clipboardChange(), CoinControlDialog::clipboardFee(), CoinControlDialog::clipboardLowOutput(), CoinControlDialog::clipboardQuantity(), SendCoinsDialog::coinControlClipboardAfterFee(), SendCoinsDialog::coinControlClipboardAmount(), SendCoinsDialog::coinControlClipboardBytes(), SendCoinsDialog::coinControlClipboardChange(), SendCoinsDialog::coinControlClipboardFee(), SendCoinsDialog::coinControlClipboardLowOutput(), SendCoinsDialog::coinControlClipboardQuantity(), CoinControlDialog::copyAddress(), CoinControlDialog::copyAmount(), ReceiveCoinsDialog::copyColumnToClipboard(), copyEntryData(), CoinControlDialog::copyLabel(), CoinControlDialog::copyTransactionHash(), ReceiveCoinsDialog::copyURI(), ReceiveRequestDialog::on_btnCopyAddress_clicked(), ReceiveRequestDialog::on_btnCopyURI_clicked(), and SignVerifyMessageDialog::on_copySignatureButton_SM_clicked().
◆ setFont()
void GUIUtil::setFont | ( | const std::vector< QWidget * > & | vecWidgets, |
FontWeight | weight, | ||
int | nPointSize = -1 , |
||
bool | fItalic = false |
||
) |
Workaround to set correct font styles in all themes since there is a bug in macOS which leads to issues loading variations of montserrat in css it also keeps track of the set fonts to update on theme changes.
Definition at line 1552 of file guiutil.cpp.
References mapNormalFontUpdates.
Referenced by AskPassphraseDialog::AskPassphraseDialog(), CoinControlDialog::CoinControlDialog(), BitcoinGUI::createActions(), MasternodeList::MasternodeList(), ModalOverlay::ModalOverlay(), OptionsDialog::OptionsDialog(), OverviewPage::OverviewPage(), QRDialog::QRDialog(), ReceiveCoinsDialog::ReceiveCoinsDialog(), RPCConsole::RPCConsole(), SendCoinsDialog::SendCoinsDialog(), SendCoinsEntry::SendCoinsEntry(), setupAppearance(), SignVerifyMessageDialog::showPage(), OptionsDialog::showPage(), RPCConsole::showPage(), SignVerifyMessageDialog::SignVerifyMessageDialog(), and WalletView::WalletView().
◆ setFontFamily()
void GUIUtil::setFontFamily | ( | FontFamily | family | ) |
Definition at line 1296 of file guiutil.cpp.
References fontFamily, setApplicationFont(), and updateFonts().
Referenced by main(), AppearanceWidget::updateFontFamily(), and AppearanceWidget::~AppearanceWidget().
◆ setFontScale()
void GUIUtil::setFontScale | ( | int | nScale | ) |
Definition at line 1398 of file guiutil.cpp.
References fontScale, and updateFonts().
Referenced by main(), AppearanceWidget::updateFontScale(), and AppearanceWidget::~AppearanceWidget().
◆ setFontWeightBold()
void GUIUtil::setFontWeightBold | ( | QFont::Weight | weight | ) |
Definition at line 1382 of file guiutil.cpp.
References fontWeightBold, and updateFonts().
Referenced by main(), AppearanceWidget::updateFontWeightBold(), and AppearanceWidget::~AppearanceWidget().
◆ setFontWeightNormal()
void GUIUtil::setFontWeightNormal | ( | QFont::Weight | weight | ) |
Definition at line 1366 of file guiutil.cpp.
References fontWeightNormal, and updateFonts().
Referenced by main(), AppearanceWidget::updateFontWeightNormal(), and AppearanceWidget::~AppearanceWidget().
◆ setIcon() [1/2]
void GUIUtil::setIcon | ( | QAbstractButton * | button, |
const QString & | strIcon, | ||
ThemedColor | color, | ||
ThemedColor | colorAlternative, | ||
const QSize & | size | ||
) |
Helper to set an icon for a button with the given color (replaces black) and colorAlternative (replaces white).
Definition at line 247 of file guiutil.cpp.
References getIcon().
Referenced by SendCoinsEntry::setButtonIcons(), RPCConsole::setButtonIcons(), setIcon(), and SignVerifyMessageDialog::SignVerifyMessageDialog().
◆ setIcon() [2/2]
void GUIUtil::setIcon | ( | QAbstractButton * | button, |
const QString & | strIcon, | ||
const ThemedColor | color, | ||
const QSize & | size | ||
) |
Definition at line 253 of file guiutil.cpp.
References ICON_ALTERNATIVE_COLOR, and setIcon().
◆ SetStartOnSystemStartup()
bool GUIUtil::SetStartOnSystemStartup | ( | bool | fAutoStart | ) |
Definition at line 1104 of file guiutil.cpp.
Referenced by OptionsModel::Reset(), and OptionsModel::setData().
◆ setStyleSheetDirectory()
void GUIUtil::setStyleSheetDirectory | ( | const QString & | path | ) |
Change the stylesheet directory.
This is used by the parameter -custom-css-dir.
Definition at line 1120 of file guiutil.cpp.
References stylesheetDirectory.
Referenced by main().
◆ setupAddressWidget()
void GUIUtil::setupAddressWidget | ( | QValidatedLineEdit * | widget, |
QWidget * | parent, | ||
bool | fAllowURI | ||
) |
Definition at line 286 of file guiutil.cpp.
References DummyAddress(), Params(), and QValidatedLineEdit::setCheckValidator().
Referenced by EditAddressDialog::EditAddressDialog(), SendCoinsDialog::SendCoinsDialog(), SendCoinsEntry::SendCoinsEntry(), and SignVerifyMessageDialog::SignVerifyMessageDialog().
◆ setupAmountWidget()
void GUIUtil::setupAmountWidget | ( | QLineEdit * | widget, |
QWidget * | parent | ||
) |
Definition at line 300 of file guiutil.cpp.
◆ setupAppearance()
void GUIUtil::setupAppearance | ( | QWidget * | parent, |
OptionsModel * | model | ||
) |
Definition at line 309 of file guiutil.cpp.
References AppearanceWidget::accept(), Bold, fontFamily, fontWeightBold, fontWeightNormal, getSupportedWeights(), mapSupportedWeights, Normal, setFont(), AppearanceWidget::setModel(), SystemDefault, and weightToArg().
Referenced by BitcoinApplication::initializeResult().
◆ showBackups()
void GUIUtil::showBackups | ( | ) |
Definition at line 670 of file guiutil.cpp.
References boostPathToQString(), and GetBackupsDir().
Referenced by BitcoinGUI::showBackups().
◆ SubstituteFonts()
void GUIUtil::SubstituteFonts | ( | const QString & | language | ) |
Definition at line 679 of file guiutil.cpp.
Referenced by main().
◆ supportedWeightFromIndex()
QFont::Weight GUIUtil::supportedWeightFromIndex | ( | int | nIndex | ) |
Convert an index to a weight in the supported weights vector.
Definition at line 1751 of file guiutil.cpp.
References getSupportedWeights().
Referenced by OptionsModel::setData(), AppearanceWidget::updateFontWeightBold(), and AppearanceWidget::updateFontWeightNormal().
◆ supportedWeightToIndex()
int GUIUtil::supportedWeightToIndex | ( | QFont::Weight | weight | ) |
Convert a weight to an index in the supported weights vector.
Definition at line 1758 of file guiutil.cpp.
References getSupportedWeights().
Referenced by OptionsModel::data().
◆ toQFontWeight()
QFont::Weight GUIUtil::toQFontWeight | ( | FontWeight | weight | ) |
Convert GUIUtil::FontWeight to QFont::Weight.
Definition at line 1356 of file guiutil.cpp.
References Bold, getFontWeightBold(), and getFontWeightNormal().
Referenced by getFont().
◆ updateFonts()
void GUIUtil::updateFonts | ( | ) |
Update the font of all widgets where a custom font has been set with GUIUtil::setFont.
Definition at line 1563 of file guiutil.cpp.
References defaultFontSize, getFont(), getFontWeightNormal(), getScaledFontSize(), mapNormalFontUpdates, and osDefaultFont.
Referenced by AddressBookPage::AddressBookPage(), AskPassphraseDialog::AskPassphraseDialog(), CoinControlDialog::CoinControlDialog(), BitcoinGUI::createActions(), HelpMessageDialog::HelpMessageDialog(), loadTheme(), MasternodeList::MasternodeList(), ModalOverlay::ModalOverlay(), OpenURIDialog::OpenURIDialog(), OptionsDialog::OptionsDialog(), OverviewPage::OverviewPage(), QRDialog::QRDialog(), ReceiveCoinsDialog::ReceiveCoinsDialog(), ReceiveRequestDialog::ReceiveRequestDialog(), RPCConsole::RPCConsole(), SendCoinsDialog::SendCoinsDialog(), SendCoinsEntry::SendCoinsEntry(), SendConfirmationDialog::SendConfirmationDialog(), setFontFamily(), setFontScale(), setFontWeightBold(), setFontWeightNormal(), SignVerifyMessageDialog::showPage(), OptionsDialog::showPage(), RPCConsole::showPage(), ShutdownWindow::ShutdownWindow(), SignVerifyMessageDialog::SignVerifyMessageDialog(), TransactionDescDialog::TransactionDescDialog(), and WalletView::WalletView().
◆ updateMacFocusRects()
void GUIUtil::updateMacFocusRects | ( | ) |
Enable/Disable the macOS focus rects depending on the current theme.
Definition at line 1801 of file guiutil.cpp.
References dashThemeActive().
Referenced by loadTheme().
◆ validateBitcoinURI()
bool GUIUtil::validateBitcoinURI | ( | const QString & | uri | ) |
Definition at line 439 of file guiutil.cpp.
References parseBitcoinURI().
Referenced by BitcoinAddressEntryValidator::validate().
◆ weightFromArg()
bool GUIUtil::weightFromArg | ( | int | nArg, |
QFont::Weight & | weight | ||
) |
Convert weight value from args (0-8) to QFont::Weight.
Definition at line 1313 of file guiutil.cpp.
Referenced by OptionsModel::data(), loadFonts(), and main().
◆ weightToArg()
int GUIUtil::weightToArg | ( | const QFont::Weight | weight | ) |
Convert QFont::Weight to an arg value (0-8)
Definition at line 1334 of file guiutil.cpp.
Referenced by HelpMessageDialog::HelpMessageDialog(), OptionsModel::Init(), main(), OptionsModel::setData(), and setupAppearance().
Variable Documentation
◆ cs_css
|
static |
Definition at line 97 of file guiutil.cpp.
Referenced by loadStyleSheet().
◆ darkThemePrefix
|
static |
Definition at line 107 of file guiutil.cpp.
Referenced by getThemedQColor(), and getThemedStyleQString().
◆ defaultFontFamily
|
static |
Font related default values.
Definition at line 119 of file guiutil.cpp.
Referenced by getFontFamilyDefault().
◆ defaultFontScale
|
static |
Definition at line 129 of file guiutil.cpp.
Referenced by getFontScaleDefault().
◆ defaultFontSize
|
static |
Definition at line 120 of file guiutil.cpp.
Referenced by loadFonts(), setApplicationFont(), and updateFonts().
◆ defaultFontWeightBold
|
static |
Definition at line 128 of file guiutil.cpp.
Referenced by getFontWeightBoldDefault().
◆ defaultFontWeightNormal
|
static |
Definition at line 127 of file guiutil.cpp.
Referenced by getFontWeightNormalDefault().
◆ defaultStylesheetDirectory
|
static |
Definition at line 99 of file guiutil.cpp.
Referenced by isStyleSheetDirectoryCustom().
◆ defaultTheme
|
static |
Definition at line 105 of file guiutil.cpp.
Referenced by getActiveTheme(), and getDefaultTheme().
◆ dummydata
|
static |
Definition at line 269 of file guiutil.cpp.
Referenced by DummyAddress().
◆ fontFamily
|
static |
Font related variables.
Definition at line 134 of file guiutil.cpp.
Referenced by getFont(), getFontFamily(), getSupportedWeights(), loadFonts(), setApplicationFont(), setFontFamily(), and setupAppearance().
◆ fontScale
|
static |
Definition at line 136 of file guiutil.cpp.
Referenced by getFontScale(), getScaledFontSize(), loadFonts(), and setFontScale().
◆ fontScaleSteps
|
static |
Definition at line 121 of file guiutil.cpp.
Referenced by getScaledFontSize().
◆ fontWeightBold
|
static |
Definition at line 140 of file guiutil.cpp.
Referenced by getFontWeightBold(), loadFonts(), setFontWeightBold(), and setupAppearance().
◆ fontWeightNormal
|
static |
Definition at line 138 of file guiutil.cpp.
Referenced by getFontWeightNormal(), loadFonts(), setFontWeightNormal(), and setupAppearance().
◆ mapNormalFontUpdates
|
static |
Definition at line 143 of file guiutil.cpp.
Referenced by setFont(), and updateFonts().
◆ mapStyleToTheme
|
static |
Definition at line 109 of file guiutil.cpp.
Referenced by listStyleSheets(), and listThemes().
◆ mapSupportedWeights
|
static |
Definition at line 145 of file guiutil.cpp.
Referenced by getSupportedWeights(), loadFonts(), and setupAppearance().
◆ osDefaultFont
|
static |
loadFonts stores the SystemDefault font in osDefaultFont to be able to reference it later again
Definition at line 117 of file guiutil.cpp.
Referenced by getFont(), loadFonts(), and updateFonts().
◆ stylesheetDirectory
|
static |
Definition at line 101 of file guiutil.cpp.
Referenced by isStyleSheetDirectoryCustom(), loadStyleSheet(), and setStyleSheetDirectory().
◆ themedColors
|
static |
Definition at line 152 of file guiutil.cpp.
Referenced by getThemedQColor().
◆ themedDarkColors
|
static |
Definition at line 169 of file guiutil.cpp.
Referenced by getThemedQColor().
◆ themedDarkStyles
|
static |
Definition at line 195 of file guiutil.cpp.
Referenced by getThemedStyleQString().
◆ themedStyles
|
static |
Definition at line 186 of file guiutil.cpp.
Referenced by getThemedStyleQString().
◆ traditionalTheme
|
static |
Definition at line 103 of file guiutil.cpp.
Referenced by dashThemeActive().