Queue UI (#199)
* Refactor long press * Lint fix * Queue UI, refactor PlayQueue to use ContentNode * Add queue notification hint * Play at index * Play queue with highlight * Priority * Comment --------- Co-authored-by: github-action linter <githubaction@githubaction.com>
This commit is contained in:
1 parent
e0709452be
commit
3559a3fff6
24 files changed
+523
-64
No files matched your search
@@ -37,5 +37,5 @@ function SetVideoCount(videoCountText as string)
|
||||
size = label.localBoundingRect()
|
||||
|
||||
rect.width = size.width + 16
|
||||
rect.translation = [rectParent.width - rect.width, 162]
|
||||
rect.translation = [rectParent.width - rect.width, rect.translation[1]]
|
||||
end function
|
||||
@@ -71,6 +71,6 @@ function SetDurationText(text as string)
|
||||
size = label.localBoundingRect()
|
||||
|
||||
rect.width = size.width + 16
|
||||
rect.translation = [rectParent.width - rect.width, 162]
|
||||
rect.translation = [rectParent.width - rect.width, rect.translation[1]]
|
||||
end function
|
||||
|
||||
@@ -25,7 +25,7 @@ function OnNodeReady()
|
||||
|
||||
' TODO:P1 Reload when subscriptions change
|
||||
DisposableObserveFieldScoped(m.invidious, "authToken", FuncName(OnAuthTokenChange))
|
||||
InitializeLongPressTimer()
|
||||
InitializeLongPress(["OK"])
|
||||
end function
|
||||
|
||||
function OnFocusedChildChange() as void
|
||||
@@ -301,7 +301,7 @@ function OnkeyEvent(key as string, press as boolean) as boolean
|
||||
return true
|
||||
end if
|
||||
|
||||
if key = LONG_PRESS_KEY and press
|
||||
if key = OK_LONG_PRESS_KEY and press
|
||||
OnRowItemLongPressed(m.top.rowItemFocused)
|
||||
return true
|
||||
end if
|
||||
|
||||
Reference in new issue
Block a user