mirror of
https://github.com/scorpion-26/gBar.git
synced 2024-11-24 20:22:10 +00:00
Update all deprecated Material Design icons
All Material Design icons should now use their new code points. This unbreaks gBar with Nerd Fonts v3.0.0
This commit is contained in:
parent
be47a62880
commit
ecc52a81a5
4 changed files with 9 additions and 9 deletions
|
@ -47,11 +47,11 @@ namespace AudioFlyin
|
||||||
muted = info.sinkMuted;
|
muted = info.sinkMuted;
|
||||||
if (info.sinkMuted)
|
if (info.sinkMuted)
|
||||||
{
|
{
|
||||||
icon->SetText("ﱝ");
|
icon->SetText("");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
icon->SetText("墳");
|
icon->SetText(" ");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -103,13 +103,13 @@ namespace Bar
|
||||||
else if (info.devices.empty())
|
else if (info.devices.empty())
|
||||||
{
|
{
|
||||||
btIconText->SetClass("bt-label-on");
|
btIconText->SetClass("bt-label-on");
|
||||||
btIconText->SetText("");
|
btIconText->SetText("");
|
||||||
btDevText->SetText("");
|
btDevText->SetText("");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
btIconText->SetClass("bt-label-connected");
|
btIconText->SetClass("bt-label-connected");
|
||||||
btIconText->SetText("");
|
btIconText->SetText("");
|
||||||
std::string btDev;
|
std::string btDev;
|
||||||
std::string tooltip;
|
std::string tooltip;
|
||||||
for (auto& dev : info.devices)
|
for (auto& dev : info.devices)
|
||||||
|
|
|
@ -256,7 +256,7 @@ namespace BluetoothDevices
|
||||||
headerBox->SetClass("bt-header-box");
|
headerBox->SetClass("bt-header-box");
|
||||||
{
|
{
|
||||||
auto headerText = Widget::Create<Text>();
|
auto headerText = Widget::Create<Text>();
|
||||||
headerText->SetText(" Bluetooth");
|
headerText->SetText(" Bluetooth");
|
||||||
headerBox->AddChild(std::move(headerText));
|
headerBox->AddChild(std::move(headerText));
|
||||||
|
|
||||||
auto headerRefresh = Widget::Create<Button>();
|
auto headerRefresh = Widget::Create<Button>();
|
||||||
|
|
|
@ -416,19 +416,19 @@ namespace System
|
||||||
{
|
{
|
||||||
if (dev.type == "input-keyboard")
|
if (dev.type == "input-keyboard")
|
||||||
{
|
{
|
||||||
return " ";
|
return " ";
|
||||||
}
|
}
|
||||||
else if (dev.type == "input-mouse")
|
else if (dev.type == "input-mouse")
|
||||||
{
|
{
|
||||||
return " ";
|
return " ";
|
||||||
}
|
}
|
||||||
else if (dev.type == "audio-headset")
|
else if (dev.type == "audio-headset")
|
||||||
{
|
{
|
||||||
return " ";
|
return " ";
|
||||||
}
|
}
|
||||||
else if (dev.type == "input-gaming")
|
else if (dev.type == "input-gaming")
|
||||||
{
|
{
|
||||||
return "調 ";
|
return " ";
|
||||||
}
|
}
|
||||||
return " ";
|
return " ";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue