Merge pull request #15769 from now-im/flow

Implement new icon/color theme
This commit is contained in:
sledgehammer999
2022-06-28 23:23:25 +03:00
committed by GitHub
169 changed files with 279 additions and 791 deletions

View File

@@ -417,7 +417,7 @@ window.addEvent('load', function() {
const create_link = function(hash, text, count) {
const html = '<a href="#" onclick="setCategoryFilter(' + hash + ');return false;">'
+ '<img src="icons/inode-directory.svg"/>'
+ '<img src="icons/view-categories.svg"/>'
+ window.qBittorrent.Misc.escapeHtml(text) + ' (' + count + ')' + '</a>';
const el = new Element('li', {
id: hash,
@@ -474,7 +474,7 @@ window.addEvent('load', function() {
const createLink = function(hash, text, count) {
const html = '<a href="#" onclick="setTagFilter(' + hash + ');return false;">'
+ '<img src="icons/inode-directory.svg"/>'
+ '<img src="icons/tags.svg"/>'
+ window.qBittorrent.Misc.escapeHtml(text) + ' (' + count + ')' + '</a>';
const el = new Element('li', {
id: hash,
@@ -528,7 +528,7 @@ window.addEvent('load', function() {
const createLink = function(hash, text, count) {
const html = '<a href="#" onclick="setTrackerFilter(' + hash + ');return false;">'
+ '<img src="icons/network-server.svg"/>'
+ '<img src="icons/trackers.svg"/>'
+ window.qBittorrent.Misc.escapeHtml(text.replace("%1", count)) + '</a>';
const el = new Element('li', {
id: hash,

View File

@@ -449,7 +449,7 @@ window.qBittorrent.ContextMenu = (function() {
Object.each(sortedCategories, function(categoryName) {
const categoryHash = genHash(categoryName);
const el = new Element('li', {
html: '<a href="javascript:torrentSetCategoryFN(\'' + categoryHash + '\');"><img src="icons/inode-directory.svg"/> ' + window.qBittorrent.Misc.escapeHtml(categoryName) + '</a>'
html: '<a href="javascript:torrentSetCategoryFN(\'' + categoryHash + '\');"><img src="icons/view-categories.svg"/> ' + window.qBittorrent.Misc.escapeHtml(categoryName) + '</a>'
});
if (first) {
el.addClass('separator');

View File

@@ -327,7 +327,7 @@ window.qBittorrent.DynamicTable = (function() {
});
const createLi = function(columnName, text) {
const html = '<a href="#' + columnName + '" ><img src="icons/checked.svg"/>' + window.qBittorrent.Misc.escapeHtml(text) + '</a>';
const html = '<a href="#' + columnName + '" ><img src="icons/checked-completed.svg"/>' + window.qBittorrent.Misc.escapeHtml(text) + '</a>';
return new Element('li', {
html: html
});
@@ -947,10 +947,10 @@ window.qBittorrent.DynamicTable = (function() {
state = "uploading";
break;
case "pausedDL":
state = "paused";
state = "media-playback-pause";
break;
case "pausedUP":
state = "completed";
state = "checked-completed";
break;
case "queuedDL":
case "queuedUP":
@@ -961,7 +961,7 @@ window.qBittorrent.DynamicTable = (function() {
case "queuedForChecking":
case "checkingResumeData":
case "moving":
state = "checking";
state = "force-recheck";
break;
case "unknown":
case "missingFiles":
@@ -2180,7 +2180,7 @@ window.qBittorrent.DynamicTable = (function() {
img_path = 'icons/application-rss+xml.svg';
break;
case 'hasError':
img_path = 'icons/unavailable.svg';
img_path = 'icons/task-reject.svg';
break;
case 'isLoading':
img_path = 'images/spinner.gif';