diff --git a/src/picotorrent/ui/mainframe.cpp b/src/picotorrent/ui/mainframe.cpp index d019ca64..e29e05eb 100644 --- a/src/picotorrent/ui/mainframe.cpp +++ b/src/picotorrent/ui/mainframe.cpp @@ -67,7 +67,7 @@ MainFrame::MainFrame(std::shared_ptr env, std::shared_ptr m_menuItemFilters(nullptr), m_ipc(std::make_unique(this)) { - m_console = new Console(this, wxID_ANY, m_torrentListModel,m_cfg); + m_console = new Console(this, wxID_ANY, m_torrentListModel, m_cfg); m_splitter->SetWindowStyleFlag( m_splitter->GetWindowStyleFlag() | wxSP_LIVE_UPDATE); diff --git a/src/picotorrent/ui/widgets/pieceprogressbar.cpp b/src/picotorrent/ui/widgets/pieceprogressbar.cpp index c1406d49..e39ec5a8 100644 --- a/src/picotorrent/ui/widgets/pieceprogressbar.cpp +++ b/src/picotorrent/ui/widgets/pieceprogressbar.cpp @@ -15,7 +15,7 @@ PieceProgressBar::PieceProgressBar(wxWindow* parent, wxWindowID id, std::shared_ Connect(wxEVT_ERASE_BACKGROUND, wxEraseEventHandler(PieceProgressBar::OnEraseBackground)); Connect(wxEVT_PAINT, wxPaintEventHandler(PieceProgressBar::OnPaint)); Connect(wxEVT_SIZE, wxSizeEventHandler(PieceProgressBar::OnSize)); - bg_color = (cfg -> IsDarkMode()) ? wxColour(32,32,32) : wxColour(255,255,255); + BGColour = (cfg -> IsDarkMode()) ? wxColour(32,32,32) : wxColour(255,255,255); } void PieceProgressBar::UpdateBitfield(lt::typed_bitfield const& field) @@ -50,7 +50,7 @@ void PieceProgressBar::RenderProgress(wxDC& dc) wxMemoryDC memDC; memDC.SelectObject(prg); - memDC.SetBrush(bg_color); + memDC.SetBrush(BGColour); memDC.SetPen(darkBorder); memDC.DrawRectangle({ 0, 0 }, prg.GetSize()); @@ -75,7 +75,7 @@ void PieceProgressBar::RenderProgress(wxDC& dc) } else { - dc.SetBrush(bg_color); + dc.SetBrush(BGColour); dc.SetPen(wxColor(190, 190, 190)); dc.DrawRectangle(this->GetClientRect()); } diff --git a/src/picotorrent/ui/widgets/pieceprogressbar.hpp b/src/picotorrent/ui/widgets/pieceprogressbar.hpp index e0438f30..46f378f8 100644 --- a/src/picotorrent/ui/widgets/pieceprogressbar.hpp +++ b/src/picotorrent/ui/widgets/pieceprogressbar.hpp @@ -26,7 +26,7 @@ namespace pt::UI::Widgets private: void RenderProgress(wxDC& dc); - wxColour bg_color; + wxColour BGColour; libtorrent::typed_bitfield m_bitfield; }; }