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
Add some missing style and minor bugfix #2996
Conversation
This comment has been minimized.
This comment has been minimized.
AUTOMERGE: (FAIL)
|
You can reopen this PR when you push something again |
src/js/tabs/led_strip.js
Outdated
@@ -1121,7 +1144,7 @@ led_strip.initialize = function (callback, scrollPosition) { | |||
return mc.color; | |||
} | |||
} | |||
return ""; | |||
return 3; //Throttle is the default |
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.
3 what?
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.
3 is the index of the throttle in the list.
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 be more specific, What list?
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.
Sorry missed that one in previous review
99bb4d6
to
95250b0
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
src/js/tabs/led_strip.js
Outdated
if (!areOverlaysActive(activeFunction)) $('.overlays').hide(); | ||
if (!areModifiersActive(activeFunction)) $('.modifiers').hide(); | ||
if (!areBlinkersActive(activeFunction)) $('.blinkers').hide(); | ||
if (!isWarningActive(activeFunction)) $('.warningOverlay').hide(); | ||
if (!isVtxActive(activeFunction)) $('.vtxOverlay').hide(); |
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.
if (!areOverlaysActive(activeFunction)) $('.overlays').hide(); | |
if (!areModifiersActive(activeFunction)) $('.modifiers').hide(); | |
if (!areBlinkersActive(activeFunction)) $('.blinkers').hide(); | |
if (!isWarningActive(activeFunction)) $('.warningOverlay').hide(); | |
if (!isVtxActive(activeFunction)) $('.vtxOverlay').hide(); | |
$('.overlays').toggle(areOverlaysActive(activeFunction); | |
$('.modifiers').toggle(areModifiersActive(activeFunction); | |
$('.blinkers').toggle(areBlinkersActive(activeFunction); | |
$('.warningOverlay').toggle(isWarningActive(activeFunction); | |
$('vtxOverlay').toggle(isVtxActive(activeFunction); |
Also remove the 5 paragraphs below
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's not working, I tested.
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.
I found a better solution, please check.
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.
Using toggle is a much better and dense solution,
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.
You were right, it's working now.
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Do you want to test this code? Here you have an automated build: |
Mac works as expected... |
I added the missing styles to the selectable lists, those white boxes in dark mode just hurt my eyes so I made this fix. The
Larson scanner
and theBlink always
overlays didn't worked with each other properly so they toggle each other, only one of them can be used at a time. I noticed that the channel based color modifier doesn't have default value so I nominated the Throttle for this. Also updated deprecated .change() function.While I was making this fix it stood out that the switch animations doesn't work if I select anyting on the Led table. It is not related to my code, I tried to fix it but I couldn't. If anybody has time I would appreciate a fix for this.Edit: I could fix it.