mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-01 13:18:06 -06:00
Replace png icons with svg
This commit is contained in:
committed by
sledgehammer999
parent
45d4d22055
commit
5cd5cc71a8
@@ -239,7 +239,7 @@ window.addEvent('load', function() {
|
||||
|
||||
var create_link = function(hash, text, count) {
|
||||
var html = '<a href="#" onclick="setCategoryFilter(' + hash + ');return false;">'
|
||||
+ '<img src="theme/inode-directory"/>'
|
||||
+ '<img src="images/qbt-theme/inode-directory.svg"/>'
|
||||
+ escapeHtml(text) + ' (' + count + ')' + '</a>';
|
||||
var el = new Element('li', {
|
||||
id: hash,
|
||||
@@ -421,11 +421,11 @@ window.addEvent('load', function() {
|
||||
}
|
||||
|
||||
if (serverState.connection_status == "connected")
|
||||
$('connectionStatus').src = 'images/skin/connected.png';
|
||||
$('connectionStatus').src = 'images/skin/connected.svg';
|
||||
else if (serverState.connection_status == "firewalled")
|
||||
$('connectionStatus').src = 'images/skin/firewalled.png';
|
||||
$('connectionStatus').src = 'images/skin/firewalled.svg';
|
||||
else
|
||||
$('connectionStatus').src = 'images/skin/disconnected.png';
|
||||
$('connectionStatus').src = 'images/skin/disconnected.svg';
|
||||
|
||||
if (queueing_enabled != serverState.queueing) {
|
||||
queueing_enabled = serverState.queueing;
|
||||
|
||||
@@ -356,10 +356,10 @@ var TorrentsTableContextMenu = new Class({
|
||||
var categoryList = $('contextCategoryList');
|
||||
categoryList.empty();
|
||||
categoryList.appendChild(new Element('li', {
|
||||
html: '<a href="javascript:torrentNewCategoryFN();"><img src="theme/list-add" alt="QBT_TR(New...)QBT_TR[CONTEXT=TransferListWidget]"/> QBT_TR(New...)QBT_TR[CONTEXT=TransferListWidget]</a>'
|
||||
html: '<a href="javascript:torrentNewCategoryFN();"><img src="images/qbt-theme/list-add.svg" alt="QBT_TR(New...)QBT_TR[CONTEXT=TransferListWidget]"/> QBT_TR(New...)QBT_TR[CONTEXT=TransferListWidget]</a>'
|
||||
}));
|
||||
categoryList.appendChild(new Element('li', {
|
||||
html: '<a href="javascript:torrentSetCategoryFN(0);"><img src="theme/edit-clear" alt="QBT_TR(Reset)QBT_TR[CONTEXT=TransferListWidget]"/> QBT_TR(Reset)QBT_TR[CONTEXT=TransferListWidget]</a>'
|
||||
html: '<a href="javascript:torrentSetCategoryFN(0);"><img src="images/qbt-theme/edit-clear.svg" alt="QBT_TR(Reset)QBT_TR[CONTEXT=TransferListWidget]"/> QBT_TR(Reset)QBT_TR[CONTEXT=TransferListWidget]</a>'
|
||||
}));
|
||||
|
||||
var sortedCategories = [];
|
||||
@@ -372,7 +372,7 @@ var TorrentsTableContextMenu = new Class({
|
||||
Object.each(sortedCategories, function(categoryName) {
|
||||
var categoryHash = genHash(categoryName);
|
||||
var el = new Element('li', {
|
||||
html: '<a href="javascript:torrentSetCategoryFN(\'' + categoryHash + '\');"><img src="theme/inode-directory"/> ' + escapeHtml(categoryName) + '</a>'
|
||||
html: '<a href="javascript:torrentSetCategoryFN(\'' + categoryHash + '\');"><img src="images/qbt-theme/inode-directory.svg"/> ' + escapeHtml(categoryName) + '</a>'
|
||||
});
|
||||
if (first) {
|
||||
el.addClass('separator');
|
||||
|
||||
@@ -292,7 +292,7 @@ var DynamicTable = new Class({
|
||||
});
|
||||
|
||||
var createLi = function(columnName, text) {
|
||||
var html = '<a href="#' + columnName + '" ><img src="theme/checked"/>' + escapeHtml(text) + '</a>';
|
||||
var html = '<a href="#' + columnName + '" ><img src="images/qbt-theme/checked.svg"/>' + escapeHtml(text) + '</a>';
|
||||
return new Element('li', {
|
||||
html: html
|
||||
});
|
||||
@@ -834,7 +834,7 @@ var TorrentsTable = new Class({
|
||||
break; // do nothing
|
||||
}
|
||||
|
||||
var img_path = 'images/skin/' + state + '.png';
|
||||
var img_path = 'images/skin/' + state + '.svg';
|
||||
|
||||
if (td.getChildren('img').length) {
|
||||
var img = td.getChildren('img')[0];
|
||||
|
||||
Reference in New Issue
Block a user