mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
fix formatting issues
This commit is contained in:
parent
b74f3c7aaa
commit
ce8c13788a
@ -96,7 +96,7 @@ void waybar::modules::MPD::setLabel() {
|
|||||||
auto format = config_["format-disconnected"].isString()
|
auto format = config_["format-disconnected"].isString()
|
||||||
? config_["format-disconnected"].asString()
|
? config_["format-disconnected"].asString()
|
||||||
: "disconnected";
|
: "disconnected";
|
||||||
if(format.empty()) {
|
if (format.empty()) {
|
||||||
label_.set_markup(format);
|
label_.set_markup(format);
|
||||||
label_.show();
|
label_.show();
|
||||||
} else {
|
} else {
|
||||||
@ -183,7 +183,7 @@ void waybar::modules::MPD::setLabel() {
|
|||||||
fmt::arg("consumeIcon", consumeIcon), fmt::arg("randomIcon", randomIcon),
|
fmt::arg("consumeIcon", consumeIcon), fmt::arg("randomIcon", randomIcon),
|
||||||
fmt::arg("repeatIcon", repeatIcon), fmt::arg("singleIcon", singleIcon),
|
fmt::arg("repeatIcon", repeatIcon), fmt::arg("singleIcon", singleIcon),
|
||||||
fmt::arg("filename", filename));
|
fmt::arg("filename", filename));
|
||||||
if(text.empty()) {
|
if (text.empty()) {
|
||||||
label_.hide();
|
label_.hide();
|
||||||
} else {
|
} else {
|
||||||
label_.show();
|
label_.show();
|
||||||
|
@ -299,7 +299,7 @@ auto waybar::modules::Pulseaudio::update() -> void {
|
|||||||
format, fmt::arg("desc", desc_), fmt::arg("volume", volume_),
|
format, fmt::arg("desc", desc_), fmt::arg("volume", volume_),
|
||||||
fmt::arg("format_source", format_source), fmt::arg("source_volume", source_volume_),
|
fmt::arg("format_source", format_source), fmt::arg("source_volume", source_volume_),
|
||||||
fmt::arg("source_desc", source_desc_), fmt::arg("icon", getIcon(volume_, getPulseIcon())));
|
fmt::arg("source_desc", source_desc_), fmt::arg("icon", getIcon(volume_, getPulseIcon())));
|
||||||
if(text.empty()) {
|
if (text.empty()) {
|
||||||
label_.hide();
|
label_.hide();
|
||||||
} else {
|
} else {
|
||||||
label_.set_markup(text);
|
label_.set_markup(text);
|
||||||
|
@ -111,7 +111,7 @@ auto Sndio::update() -> void {
|
|||||||
}
|
}
|
||||||
|
|
||||||
auto text = fmt::format(format, fmt::arg("volume", vol), fmt::arg("raw_value", volume_));
|
auto text = fmt::format(format, fmt::arg("volume", vol), fmt::arg("raw_value", volume_));
|
||||||
if(text.empty()) {
|
if (text.empty()) {
|
||||||
label_.hide();
|
label_.hide();
|
||||||
} else {
|
} else {
|
||||||
label_.set_markup(text);
|
label_.set_markup(text);
|
||||||
|
Loading…
Reference in New Issue
Block a user