mirror of
https://github.com/aristocratos/btop.git
synced 2024-09-30 00:57:37 +13:00
More const bool cleanup
This commit is contained in:
parent
afeef173fc
commit
8331cb36f8
2 changed files with 10 additions and 7 deletions
|
@ -228,10 +228,13 @@ namespace Draw {
|
||||||
}
|
}
|
||||||
|
|
||||||
string createBox(const int x, const int y, const int width,
|
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) {
|
const string title, const string title2, const int num) {
|
||||||
string out;
|
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 tty_mode = Config::getB("tty_mode");
|
||||||
auto rounded = Config::getB("rounded_corners");
|
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)));
|
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
|
//* Create a box and return as a string
|
||||||
string createBox(const int x, const int y, const int width,
|
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);
|
const string title = "", const string title2 = "", const int num = 0);
|
||||||
|
|
||||||
bool update_clock(bool force = false);
|
bool update_clock(bool force = false);
|
||||||
|
|
Loading…
Reference in a new issue