![]() Registered Member ![]()
|
Is there any way to change the color of active torrents in the download list? Unfortunately KTorrent does not offer any option to do it directly, so maybe it is possible through config files.
Or, as a last resource, changing it directly in the source code. After running grep -H -r "green" ktorrent-4.3.1/ (and removing mentions to .po files) that's the result:
Do you know what file to change? Thanks. |
![]() Administrator ![]()
|
It seems that KTorrent (or libktcore at least) does have a "greenRatio" option somewhere. Try searching for that in the configuration interface and increasing it to a very high or improbable number (like 1000 or so). If you can't find it, can you post a link to that *.kcfg file and i'll see if I can determine where in the configuration file that key should be written.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
But it seems that this "greenRatio" is used for ratio (in torrent world, that is ratio of downloaded data to uploaded data) only, so most likely changing it won't change color of active torrent name.
Best regards
Mirosław Zalewski |
![]() Administrator ![]()
|
In this case, I would advise investigating the ktorrent-4.3.1/ktorrent/view/viewmodel.cpp file first, followed by the ktorrent-4.3.1/plugins/infowidget/infowidgetplugin.cpp files.
While models usually do not control the visualisation, particularly in appearance matters, it may be that the model does exert some control here. Alternatively, the control could lie in a custom delegate.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered users: bancha, Bing [Bot], Google [Bot], Sogou [Bot]