replace plugin.png with scalable icon
This commit is contained in:
parent
2dac797704
commit
b16c57d29c
|
@ -746,9 +746,9 @@ class Pref_Prefs extends Handler_Protected {
|
||||||
dojoType=\"dijit.form.CheckBox\" $checked
|
dojoType=\"dijit.form.CheckBox\" $checked
|
||||||
type=\"checkbox\"></td>";
|
type=\"checkbox\"></td>";
|
||||||
|
|
||||||
$plugin_icon = $checked ? "plugin.png" : "plugin_disabled.png";
|
$icon_class = $checked ? "plugin-enabled" : "plugin-disabled";
|
||||||
|
|
||||||
print "<td><label><img src='images/$plugin_icon' alt=''> $name</label></td>";
|
print "<td><label><i class='material-icons $icon_class'>settings</i> $name</label></td>";
|
||||||
print "<td>" . htmlspecialchars($about[1]);
|
print "<td>" . htmlspecialchars($about[1]);
|
||||||
if (@$about[4]) {
|
if (@$about[4]) {
|
||||||
print " — <a target=\"_blank\" rel=\"noopener noreferrer\" class=\"visibleLink\"
|
print " — <a target=\"_blank\" rel=\"noopener noreferrer\" class=\"visibleLink\"
|
||||||
|
@ -801,13 +801,13 @@ class Pref_Prefs extends Handler_Protected {
|
||||||
|
|
||||||
print "<tr class='$rowclass'>";
|
print "<tr class='$rowclass'>";
|
||||||
|
|
||||||
$plugin_icon = $checked ? "plugin.png" : "plugin_disabled.png";
|
$icon_class = $checked ? "plugin-enabled" : "plugin-disabled";
|
||||||
|
|
||||||
print "<td align='center'><input id='FPCHK-$name' name='plugins[]' value='$name' onclick='Tables.onRowChecked(this);'
|
print "<td align='center'><input id='FPCHK-$name' name='plugins[]' value='$name' onclick='Tables.onRowChecked(this);'
|
||||||
dojoType=\"dijit.form.CheckBox\" $checked $disabled
|
dojoType=\"dijit.form.CheckBox\" $checked $disabled
|
||||||
type=\"checkbox\"></td>";
|
type=\"checkbox\"></td>";
|
||||||
|
|
||||||
print "<td><label for='FPCHK-$name'><img src='images/$plugin_icon' alt=''> $name</label></td>";
|
print "<td><label for='FPCHK-$name'><i class='material-icons $icon_class'>settings</i> $name</label></td>";
|
||||||
print "<td><label for='FPCHK-$name'>" . htmlspecialchars($about[1]) . "</label>";
|
print "<td><label for='FPCHK-$name'>" . htmlspecialchars($about[1]) . "</label>";
|
||||||
if (@$about[4]) {
|
if (@$about[4]) {
|
||||||
print " — <a target=\"_blank\" rel=\"noopener noreferrer\" class=\"visibleLink\"
|
print " — <a target=\"_blank\" rel=\"noopener noreferrer\" class=\"visibleLink\"
|
||||||
|
|
|
@ -1484,6 +1484,12 @@ body.ttrss_prefs table.prefUserList td {
|
||||||
body.ttrss_prefs table.prefPluginsList label {
|
body.ttrss_prefs table.prefPluginsList label {
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
body.ttrss_prefs table.prefPluginsList i.plugin-enabled {
|
||||||
|
color: #69C671;
|
||||||
|
}
|
||||||
|
body.ttrss_prefs table.prefPluginsList i.plugin-disabled {
|
||||||
|
color: #999;
|
||||||
|
}
|
||||||
body.ttrss_prefs table.prefPluginsList label img {
|
body.ttrss_prefs table.prefPluginsList label img {
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
|
@ -1934,7 +1940,7 @@ body.ttrss_zoom div.post div.content pre {
|
||||||
font-family: 'Material Icons';
|
font-family: 'Material Icons';
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-size: 24px;
|
font-size: 18px;
|
||||||
/* Preferred icon size */
|
/* Preferred icon size */
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
|
@ -1943,6 +1949,7 @@ body.ttrss_zoom div.post div.content pre {
|
||||||
word-wrap: normal;
|
word-wrap: normal;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
direction: ltr;
|
direction: ltr;
|
||||||
|
vertical-align: middle;
|
||||||
/* Support for all WebKit browsers. */
|
/* Support for all WebKit browsers. */
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
/* Support for Safari and Chrome. */
|
/* Support for Safari and Chrome. */
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -42,7 +42,7 @@ body.ttrss_prefs,
|
||||||
font-family: 'Material Icons';
|
font-family: 'Material Icons';
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-size: 24px; /* Preferred icon size */
|
font-size: 18px; /* Preferred icon size */
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
text-transform: none;
|
text-transform: none;
|
||||||
|
@ -50,6 +50,7 @@ body.ttrss_prefs,
|
||||||
word-wrap: normal;
|
word-wrap: normal;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
direction: ltr;
|
direction: ltr;
|
||||||
|
vertical-align: middle;
|
||||||
|
|
||||||
/* Support for all WebKit browsers. */
|
/* Support for all WebKit browsers. */
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
|
|
|
@ -122,10 +122,20 @@ body.ttrss_prefs {
|
||||||
cursor : pointer;
|
cursor : pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
table.prefPluginsList label {
|
table.prefPluginsList{
|
||||||
|
label {
|
||||||
white-space : nowrap;
|
white-space : nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
i.plugin-enabled {
|
||||||
|
color : #69C671;
|
||||||
|
}
|
||||||
|
|
||||||
|
i.plugin-disabled {
|
||||||
|
color : #999;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
table.prefPluginsList label img {
|
table.prefPluginsList label img {
|
||||||
vertical-align : middle;
|
vertical-align : middle;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1484,6 +1484,12 @@ body.ttrss_prefs table.prefUserList td {
|
||||||
body.ttrss_prefs table.prefPluginsList label {
|
body.ttrss_prefs table.prefPluginsList label {
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
body.ttrss_prefs table.prefPluginsList i.plugin-enabled {
|
||||||
|
color: #69C671;
|
||||||
|
}
|
||||||
|
body.ttrss_prefs table.prefPluginsList i.plugin-disabled {
|
||||||
|
color: #999;
|
||||||
|
}
|
||||||
body.ttrss_prefs table.prefPluginsList label img {
|
body.ttrss_prefs table.prefPluginsList label img {
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
|
@ -1934,7 +1940,7 @@ body.ttrss_zoom div.post div.content pre {
|
||||||
font-family: 'Material Icons';
|
font-family: 'Material Icons';
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-size: 24px;
|
font-size: 18px;
|
||||||
/* Preferred icon size */
|
/* Preferred icon size */
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
|
@ -1943,6 +1949,7 @@ body.ttrss_zoom div.post div.content pre {
|
||||||
word-wrap: normal;
|
word-wrap: normal;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
direction: ltr;
|
direction: ltr;
|
||||||
|
vertical-align: middle;
|
||||||
/* Support for all WebKit browsers. */
|
/* Support for all WebKit browsers. */
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
/* Support for Safari and Chrome. */
|
/* Support for Safari and Chrome. */
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue