-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WebUI: Add missing icons #21162
WebUI: Add missing icons #21162
Conversation
@@ -1563,6 +1563,7 @@ window.addEventListener("DOMContentLoaded", () => { | |||
const id = "uploadPage"; | |||
new MochaUI.Window({ | |||
id: id, | |||
icon: "images/qbittorrent-tray.svg", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added it like this to all mocha windows but down the line common properties / callbacks should probably be contained in some base object and then spread during window creation.
87b1420
to
0348e14
Compare
@skomerko |
0348e14
to
351eff5
Compare
@skomerko |
@@ -52,6 +52,11 @@ tr.dynamicTableHeader { | |||
white-space: nowrap; | |||
} | |||
|
|||
.dynamicTable tr.selected img, | |||
.dynamicTable tr:hover img { | |||
filter: var(--color-icon-hover); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will fix it, thanks for catching it.
@@ -540,23 +540,29 @@ ul.filterList { | |||
padding-left: 0; | |||
} | |||
|
|||
ul.filterList li:hover img, | |||
ul.filterList .selectedFilter img { | |||
filter: var(--color-icon-hover); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe use other filter? Like
filter: var(--color-icon-hover); | |
filter: drop-shadow(0 0 1px #000); |
Or more tricky
filter: var(--color-icon-hover); | |
filter: drop-shadow(0 1px 0 #000) drop-shadow(0 -1px 0 #000) drop-shadow(1px 0 0 #000) drop-shadow(-1px 0 0 #000); |
if we want it to be solid.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR adds missing icons to WebUI (in tabs, buttons, etc.).
To achieve better icon contrast on hover/selection (+ to change color for some icons in dark mode) I decided to use filter property. It is not ideal but right now it's probably the best way to do this with minimal amount of changes. There are many different SVG techniques but for now I kept everything in the same style and it just works.