Skip to content

Commit

Permalink
替换LuCI默认的文件和文件夹类型图标,这将在暗色模式下更美观
Browse files Browse the repository at this point in the history
  • Loading branch information
SpeedPartner committed Mar 26, 2023
1 parent 002f480 commit b4e8e9b
Show file tree
Hide file tree
Showing 11 changed files with 56 additions and 0 deletions.
28 changes: 28 additions & 0 deletions htdocs/luci-static/argon/css/cascade.css
Original file line number Diff line number Diff line change
Expand Up @@ -947,6 +947,34 @@ form.inline + form.inline,
.cbi-value-field .cbi-button-neutral {
min-width: 2.5rem !important;
}
/* Replace LuCI's default file and folder type icons */
img[src="/luci-static/resources/cbi/reload.gif"] {
content: url("/luci-static/argon/img/reload.webp");
}
img[src="/luci-static/resources/cbi/file.gif"] {
content: url("/luci-static/argon/img/file.webp");
}
img[src="/luci-static/resources/cbi/add.gif"] {
content: url("/luci-static/argon/img/add.webp");
}
img[src="/luci-static/resources/cbi/remove.gif"] {
content: url("/luci-static/argon/img/remove.webp");
}
img[src="/luci-static/resources/cbi/edit.gif"] {
content: url("/luci-static/argon/img/edit.webp");
}
img[src="/luci-static/resources/cbi/fieldadd.gif"] {
content: url("/luci-static/argon/img/fieldadd.webp");
}
img[src="/luci-static/resources/cbi/link.gif"] {
content: url("/luci-static/argon/img/link.webp");
}
img[src="/luci-static/resources/cbi/find.gif"] {
content: url("/luci-static/argon/img/find.webp");
}
img[src="/luci-static/resources/cbi/folder.gif"] {
content: url("/luci-static/argon/img/folder.webp");
}
/* input */
.cbi-value input[type="password"],
.cbi-value input[type="text"] {
Expand Down
Binary file added htdocs/luci-static/argon/img/add.webp
Binary file not shown.
Binary file added htdocs/luci-static/argon/img/edit.webp
Binary file not shown.
Binary file added htdocs/luci-static/argon/img/fieldadd.webp
Binary file not shown.
Binary file added htdocs/luci-static/argon/img/file.webp
Binary file not shown.
Binary file added htdocs/luci-static/argon/img/find.webp
Binary file not shown.
Binary file added htdocs/luci-static/argon/img/folder.webp
Binary file not shown.
Binary file added htdocs/luci-static/argon/img/link.webp
Binary file not shown.
Binary file added htdocs/luci-static/argon/img/reload.webp
Binary file not shown.
Binary file added htdocs/luci-static/argon/img/remove.webp
Binary file not shown.
28 changes: 28 additions & 0 deletions htdocs/luci-static/argon/less/cascade.less
Original file line number Diff line number Diff line change
Expand Up @@ -1134,6 +1134,34 @@ form.inline+form.inline,
min-width: 2.5rem !important;
}

/* Replace LuCI's default file and folder type icons */
img[src="/luci-static/resources/cbi/reload.gif"] {
content: url("/luci-static/argon/img/reload.webp");
}
img[src="/luci-static/resources/cbi/file.gif"] {
content: url("/luci-static/argon/img/file.webp");
}
img[src="/luci-static/resources/cbi/add.gif"] {
content: url("/luci-static/argon/img/add.webp");
}
img[src="/luci-static/resources/cbi/remove.gif"] {
content: url("/luci-static/argon/img/remove.webp");
}
img[src="/luci-static/resources/cbi/edit.gif"] {
content: url("/luci-static/argon/img/edit.webp");
}
img[src="/luci-static/resources/cbi/fieldadd.gif"] {
content: url("/luci-static/argon/img/fieldadd.webp");
}
img[src="/luci-static/resources/cbi/link.gif"] {
content: url("/luci-static/argon/img/link.webp");
}
img[src="/luci-static/resources/cbi/find.gif"] {
content: url("/luci-static/argon/img/find.webp");
}
img[src="/luci-static/resources/cbi/folder.gif"] {
content: url("/luci-static/argon/img/folder.webp");
}

/* input */
.cbi-value input[type="password"],
Expand Down

1 comment on commit b4e8e9b

@SpeedPartner
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

更改预览:
icon1
icon2

Please sign in to comment.