Merge pull request #21123 from skomerko/webui-use-alternating-row-colors

WebUI: Add ability to toggle alternating row colors in tables
This commit is contained in:
Chocobo1 2024-08-04 17:16:01 +08:00 committed by GitHub
commit 49507ad670
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 41 additions and 91 deletions

View file

@ -477,7 +477,6 @@ window.qBittorrent.PropFiles ??= (() => {
torrentFilesTable.populateTable(rootNode);
torrentFilesTable.updateTable(false);
torrentFilesTable.altRow();
if (selectedFiles.length > 0)
torrentFilesTable.reselectRows(selectedFiles);
@ -706,12 +705,10 @@ window.qBittorrent.PropFiles ??= (() => {
const expandNode = function(node) {
_collapseNode(node, false, false, false);
torrentFilesTable.altRow();
};
const collapseNode = function(node) {
_collapseNode(node, true, false, false);
torrentFilesTable.altRow();
};
const expandAllNodes = function() {
@ -721,7 +718,6 @@ window.qBittorrent.PropFiles ??= (() => {
_collapseNode(child, false, true, false);
});
});
torrentFilesTable.altRow();
};
const collapseAllNodes = function() {
@ -731,7 +727,6 @@ window.qBittorrent.PropFiles ??= (() => {
_collapseNode(child, true, true, false);
});
});
torrentFilesTable.altRow();
};
/**