Skip to content

Commit

Permalink
Merge pull request #1031 from StoyanDimitrov/master
Browse files Browse the repository at this point in the history
Left align the Progress column title
  • Loading branch information
vktr committed Nov 23, 2020
2 parents ffba918 + 0c35385 commit 688721e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/picotorrent/ui/torrentdetailspeerspanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ TorrentDetailsPeersPanel::TorrentDetailsPeersPanel(wxWindow* parent, wxWindowID
m_peersView->AppendTextColumn(i18n("flags"), PeerListModel::Column::Flags, wxDATAVIEW_CELL_INERT, FromDIP(80));
m_peersView->AppendTextColumn(i18n("dl"), PeerListModel::Column::DownloadRate, wxDATAVIEW_CELL_INERT, FromDIP(80), wxALIGN_RIGHT);
m_peersView->AppendTextColumn(i18n("ul"), PeerListModel::Column::UploadRate, wxDATAVIEW_CELL_INERT, FromDIP(80), wxALIGN_RIGHT);
m_peersView->AppendProgressColumn(i18n("progress"), PeerListModel::Column::Progress, wxDATAVIEW_CELL_INERT, FromDIP(100));
m_peersView->AppendProgressColumn(i18n("progress"), PeerListModel::Column::Progress, wxDATAVIEW_CELL_INERT, FromDIP(100), wxALIGN_LEFT);

// Ugly hack to prevent the last "real" column from stretching.
m_peersView->AppendColumn(new wxDataViewColumn(wxEmptyString, new wxDataViewTextRenderer(), PeerListModel::Column::_Max, 0));
Expand Down
3 changes: 2 additions & 1 deletion src/picotorrent/ui/torrentfilelistview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ TorrentFileListView::TorrentFileListView(wxWindow* parent, wxWindowID id)
i18n("progress"),
FileStorageModel::Columns::Progress,
wxDATAVIEW_CELL_INERT,
FromDIP(80));
FromDIP(80),
wxALIGN_LEFT);

AppendTextColumn(
i18n("priority"),
Expand Down

0 comments on commit 688721e

Please sign in to comment.