-
Notifications
You must be signed in to change notification settings - Fork 864
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
Added Button to Show Original Title and Thumbnail for DeArrow #6164
base: development
Are you sure you want to change the base?
Conversation
Even though it feels kind of working for desktop |
I agree with @PikachuEXE here, maybe it would be better suited inside the dropdown? |
Didn't know it was available on mobile. What's the best way to test on mobile? |
@absidue I think putting it in the dropdown menu would make it too cumbersome to use this feature. |
If you don't want to move it to the dropdown where the rest of the options are then you'll have to stick with your current solution but undo the change to shrink the buttons. |
I think that we shouldn't put this in the dropdown and keep this as is. Some differences im seeing compared to #3900 (comment) title moves around on hover VirtualBoxVM_uhd6mYOPQa.mp4button has different sizes VirtualBoxVM_48KHtSzYNe.mp4 |
Head branch was pushed to by a user without write access
@efb4f5ff-1298-471a-8973-3d47447115dc I see the title also moving on hover in #3900 (comment)? About the button size, in the DeArrow extension there are two different button sizes. brave.mov |
I have changed back the button padding to its original size. Thinking of adding a new setting in the DeArrow setting to enable this toggle to see original title/thumbnail. |
I think https://fontawesome.com/icons/circle-dot?f=classic&s=solid is a better representation of the DeArrow button that is used on the YT side. Dot enabled color should be based on the secondary color theme firefox_s0pK2XtSBu.mp4Title moves around on hover VirtualBoxVM_GJQZKbc0BW.mp4Doenst hover here firefox_w2XRWfIjM2.mp4 |
Head branch was pushed to by a user without write access
Head branch was pushed to by a user without write access
class="deArrowToggleButton" | ||
:class="{alwaysVisible: deArrowTogglePinned}" | ||
:icon="['fas', 'dot-circle']" | ||
:color="deArrowChangedContent ? 'var(--primary-color)' : '#808080'" |
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
&.primary {
background-color: var(--primary-color);
color: var(--text-with-main-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 do filter: 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.
deArrowShowOriginalAlwaysOn: function () { | ||
return this.$store.getters.getDeArrowShowOriginalAlwaysOn | ||
}, |
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.
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 comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah that is leftover, my bad
VirtualBoxVM_LU41sPu3t4.mp4 |
question: Why is there a "Show Original" toggle that's disabled by default? Is this degree of optionality important? |
Head branch was pushed to by a user without write access
Co-authored-by: Jason <[email protected]>
Head branch was pushed to by a user without write access
Head branch was pushed to by a user without write access
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.
LGTM! Really nicely put together I hope we will see more wonderful contributions from you :)
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.
Sorry for this :(
Noticed this one when spamming the DeArrow icon. Characters from the video next to it will highlight when spamming the icon.
VirtualBoxVM_FEra9TLJWk.mp4
@efb4f5ff-1298-471a-8973-3d47447115dc Screen.Recording.2024-11-26.at.06.47.11.mp4 |
Hmm im a bit confused as it doesnt happen here VirtualBoxVM_cTienpH8RG.mp4 |
I confirm mouse clicks would select nearby test for some reason in dev |
I think this happens because of |
Added Button to Show Original Title and Thumbnail for DeArrow
Pull Request Type
Related issue
closes #3900
Description
If DeArrow is enabled for title or/and thumbnail, when hovering over the video info area, a button is added next to the video title when the video is part of a list. This button switches the title or/and thumbnails back to its original version and vice versa.
Video
after.mov
Testing
Desktop
Additional context