mirror of
https://github.com/aristocratos/btop.git
synced 2024-06-28 11:00:47 +12:00
More const bool cleanup
This commit is contained in:
parent
afeef173fc
commit
8331cb36f8
|
@ -228,10 +228,13 @@ namespace Draw {
|
|||
}
|
||||
|
||||
string createBox(const int x, const int y, const int width,
|
||||
const int height, string line_color, const bool fill,
|
||||
const int height, string line_color, bool fill,
|
||||
const string title, const string title2, const int num) {
|
||||
string out;
|
||||
if (line_color.empty()) line_color = Theme::c("div_line");
|
||||
|
||||
if (line_color.empty())
|
||||
line_color = Theme::c("div_line");
|
||||
|
||||
auto tty_mode = Config::getB("tty_mode");
|
||||
auto rounded = Config::getB("rounded_corners");
|
||||
const string numbering = (num == 0) ? "" : Theme::c("hi_fg") + (tty_mode ? std::to_string(num) : Symbols::superscript.at(clamp(num, 0, 9)));
|
||||
|
|
|
@ -80,7 +80,7 @@ namespace Draw {
|
|||
|
||||
//* Create a box and return as a string
|
||||
string createBox(const int x, const int y, const int width,
|
||||
const int height, string line_color="", const bool fill=false,
|
||||
const int height, string line_color = "", bool fill = false,
|
||||
const string title = "", const string title2 = "", const int num = 0);
|
||||
|
||||
bool update_clock(bool force = false);
|
||||
|
|
Loading…
Reference in a new issue