Skip to content

Commit

Permalink
Change font and position to match trickplay. Fix double trickplay bar
Browse files Browse the repository at this point in the history
  • Loading branch information
1hitsong committed Nov 12, 2023
1 parent 3ccf916 commit 8f7b5f8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions components/video/PauseMenu.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<component name="PauseMenu" extends="Group" initialFocus="chapterNext">
<children>
<Label id="itemTitle" font="font:LargeBoldSystemFont" translation="[103,61]" />
<ScrollingLabel id="itemTitle" font="font:LargeBoldSystemFont" translation="[103,61]" maxWidth="1400" />
<Clock id="clock" translation="[1618, 46]" />

<ButtonGroup id="optionControls" itemSpacings="[20]" layoutDirection="horiz" horizAlignment="left" translation="[103,120]">
Expand All @@ -16,12 +16,12 @@
<IconButton id="chapterNext" background="#070707" focusBackground="#00a4dc" padding="16" icon="pkg:/images/icons/nextChapter.png" height="65" width="100" />
</ButtonGroup>

<Rectangle id="progressBarBackground" color="0x00000098" width="1536" height="8" translation="[192,970]">
<Rectangle id="progressBarBackground" color="0x00000098" width="1714" height="8" translation="[103,970]">
<Rectangle id="progressBar" color="#e5e4e2FF" width="0" height="8" />
</Rectangle>

<Label id="videoPositionTime" font="font:SmallestSystemFont" color="0xffffffFF" translation="[192,985]" />
<Label id="videoRemainingTime" font="font:SmallestSystemFont" color="0xffffffFF" horizAlign="right" width="200" translation="[1528,985]" />
<Label id="videoPositionTime" font="font:MediumSystemFont" color="0xffffffFF" translation="[103,985]" />
<Label id="videoRemainingTime" font="font:MediumSystemFont" color="0xffffffFF" horizAlign="right" width="200" translation="[1617,985]" />

<Timer id="inactivityTimer" duration="1" repeat="true" />
</children>
Expand Down
4 changes: 2 additions & 2 deletions components/video/VideoPlayerView.bs
Original file line number Diff line number Diff line change
Expand Up @@ -618,15 +618,15 @@ function onKeyEvent(key as string, press as boolean) as boolean

if not press then return false

if key = "down"
if key = "down" and not m.top.trickPlayBar.visible
if not m.LoadMetaDataTask.isIntro
m.pauseMenu.visible = true
m.pauseMenu.hasFocus = true
m.pauseMenu.setFocus(true)
return true
end if

else if key = "up"
else if key = "up" and not m.top.trickPlayBar.visible
if not m.LoadMetaDataTask.isIntro
m.pauseMenu.visible = true
m.pauseMenu.hasFocus = true
Expand Down

0 comments on commit 8f7b5f8

Please sign in to comment.