diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2022-04-05 22:01:53 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2022-04-05 22:01:53 -0400 |
commit | 49685c39895af67d7ffcc50fdc02150b6ee44f72 (patch) | |
tree | 5c5c262f95a30e58582a285b467d05954ff5f35c /src/components/statusindicator.cpp | |
parent | 9767e1e7fdef9262211ec676b4f0d4c30ff10649 (diff) | |
download | abaddon-portaudio-49685c39895af67d7ffcc50fdc02150b6ee44f72.tar.gz abaddon-portaudio-49685c39895af67d7ffcc50fdc02150b6ee44f72.zip |
fix up a bunch of clang-tidy stuff
mostly changing references, which i hope doesnt break stuff with models (TreeRow, iterators) since they gave me some strange problems in the past
Diffstat (limited to 'src/components/statusindicator.cpp')
-rw-r--r-- | src/components/statusindicator.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/components/statusindicator.cpp b/src/components/statusindicator.cpp index 42eb170..4d7415c 100644 --- a/src/components/statusindicator.cpp +++ b/src/components/statusindicator.cpp @@ -2,10 +2,6 @@ #include "abaddon.hpp" static const constexpr int Diameter = 8; -static const auto OnlineColor = Gdk::RGBA("#43B581"); -static const auto IdleColor = Gdk::RGBA("#FAA61A"); -static const auto DNDColor = Gdk::RGBA("#982929"); -static const auto OfflineColor = Gdk::RGBA("#808080"); StatusIndicator::StatusIndicator(Snowflake user_id) : Glib::ObjectBase("statusindicator") @@ -26,9 +22,6 @@ StatusIndicator::StatusIndicator(Snowflake user_id) CheckStatus(); } -StatusIndicator::~StatusIndicator() { -} - void StatusIndicator::CheckStatus() { const auto status = Abaddon::Get().GetDiscordClient().GetUserStatus(m_id); const auto last_status = m_status; @@ -121,7 +114,7 @@ bool StatusIndicator::on_draw(const Cairo::RefPtr<Cairo::Context> &cr) { const auto color = get_style_context()->get_color(Gtk::STATE_FLAG_NORMAL); cr->set_source_rgb(color.get_red(), color.get_green(), color.get_blue()); - cr->arc(width / 2, height / 2, width / 3, 0.0, 2 * (4 * std::atan(1))); + cr->arc(width / 2.0, height / 2.0, width / 3.0, 0.0, 2 * (4 * std::atan(1))); cr->close_path(); cr->fill_preserve(); cr->stroke(); |