-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Added Button to Show Original Title and Thumbnail for DeArrow #6164
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
Changes from 7 commits
f953f08
604388c
37abd5c
e9a7342
12b3d73
a7e0918
2e35ccc
6481c3a
1f41814
501bf04
13fa7f9
bc9dc98
362f134
7c93d7f
d48c57e
91afdb4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,6 +46,12 @@ export default defineComponent({ | |
useDeArrowThumbnails: function () { | ||
return this.$store.getters.getUseDeArrowThumbnails | ||
}, | ||
deArrowShowOriginal: function () { | ||
return this.$store.getters.getDeArrowShowOriginal | ||
}, | ||
deArrowShowOriginalAlwaysOn: function () { | ||
return this.$store.getters.getDeArrowShowOriginalAlwaysOn | ||
}, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It looks like this value doesn't exists in the store and is also not used in the component. This is presumably a leftover from previous iterations of this pull request? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah that is leftover, my bad |
||
deArrowThumbnailGeneratorUrl: function () { | ||
return this.$store.getters.getDeArrowThumbnailGeneratorUrl | ||
}, | ||
|
@@ -85,6 +91,8 @@ export default defineComponent({ | |
'updateSponsorBlockShowSkippedToast', | ||
'updateUseDeArrowTitles', | ||
'updateUseDeArrowThumbnails', | ||
'updateDeArrowShowOriginal', | ||
'updateDeArrowShowOriginalAlwaysOn', | ||
'updateDeArrowThumbnailGeneratorUrl' | ||
]) | ||
} | ||
|
Uh oh!
There was an error while loading. Please reload this page.
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.
Please use the existing theme variables, don't hardcode colours, as it has to be usable with all app-wide themes. Additionally the ft-icon-button component already has a
theme
property for changing the colours of it, please use that instead of introducing another way to do the same thing.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 tried using the primary theme in
ft-icon-button
but the colours are reversed. I don't think I should create a new theme or change the current one. Not sure how to proceed.ft-icon-button.scss
Current


If I reverse
color
withbackground-color
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.
One fix would be to use the
--favorite-icon-color
as the "enabled" mode color, as that's one we already have set as a universal "other" state. You could also dofilter: grayscale(1);
for the disabled state and the primary/secondary icon color for the enabled state, which would match better with the existing DeArrow web UI.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.
In the end I just ended up using
<font-awesome-icon>
and creating a custom css class for the button because the main and hover colours are different.