From ecc52a81a52d4ad2c18e83e8ec24cd3aff6a3533 Mon Sep 17 00:00:00 2001 From: scorpion-26 <58082714+scorpion-26@users.noreply.github.com> Date: Wed, 3 May 2023 23:21:21 +0200 Subject: [PATCH] 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 --- src/AudioFlyin.cpp | 4 ++-- src/Bar.cpp | 4 ++-- src/BluetoothDevices.cpp | 2 +- src/System.cpp | 8 ++++---- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/AudioFlyin.cpp b/src/AudioFlyin.cpp index 527bd14..efb5d9e 100644 --- a/src/AudioFlyin.cpp +++ b/src/AudioFlyin.cpp @@ -47,11 +47,11 @@ namespace AudioFlyin muted = info.sinkMuted; if (info.sinkMuted) { - icon->SetText("ﱝ"); + icon->SetText("󰝟"); } else { - icon->SetText("墳"); + icon->SetText("󰕾 "); } } } diff --git a/src/Bar.cpp b/src/Bar.cpp index ff55778..589e8f3 100644 --- a/src/Bar.cpp +++ b/src/Bar.cpp @@ -103,13 +103,13 @@ namespace Bar else if (info.devices.empty()) { btIconText->SetClass("bt-label-on"); - btIconText->SetText(""); + btIconText->SetText("󰂯"); btDevText->SetText(""); } else { btIconText->SetClass("bt-label-connected"); - btIconText->SetText(""); + btIconText->SetText("󰂱"); std::string btDev; std::string tooltip; for (auto& dev : info.devices) diff --git a/src/BluetoothDevices.cpp b/src/BluetoothDevices.cpp index a6e3f9f..dc87b0c 100644 --- a/src/BluetoothDevices.cpp +++ b/src/BluetoothDevices.cpp @@ -256,7 +256,7 @@ namespace BluetoothDevices headerBox->SetClass("bt-header-box"); { auto headerText = Widget::Create(); - headerText->SetText(" Bluetooth"); + headerText->SetText("󰂯 Bluetooth"); headerBox->AddChild(std::move(headerText)); auto headerRefresh = Widget::Create