Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/KDE/labplot
/ isDarkMode
Method
isDarkMode
src/frontend/GuiTools.cpp:49–51 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
47
};
48
49
bool GuiTools::isDarkMode() {
50
return (QApplication::palette().color(QPalette::Base).lightness() < 128);
51
}
52
53
/*!
54
fills the ComboBox \c combobox with the six possible Qt::PenStyles, the color \c color is used.
Callers
nothing calls this directly
Calls
1
color
Method · 0.45
Tested by
no test coverage detected