Skip to content

Commit

Permalink
Comment: support criticism feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
xfangfang committed Oct 8, 2024
1 parent 81c7a11 commit ccba234
Show file tree
Hide file tree
Showing 22 changed files with 286 additions and 55 deletions.
4 changes: 4 additions & 0 deletions resources/svg/bpx-svg-sprite-disliked-active.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions resources/svg/bpx-svg-sprite-disliked.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions resources/svg/comment-disagree-active.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions resources/svg/comment-disagree-grey.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions resources/xml/fragment/player_comment_action.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,16 @@
highlightCornerRadius="48"
SVG="@res/svg/bpx-svg-sprite-reply.svg"/>

<SVGImage
focusable="true"
id="comment/action/svg/dislike"
margin="14"
width="48"
height="48"
cornerRadius="48"
highlightCornerRadius="48"
SVG="@res/svg/bpx-svg-sprite-disliked.svg"/>

<SVGImage
focusable="true"
id="comment/action/svg/like"
Expand Down
10 changes: 10 additions & 0 deletions resources/xml/fragment/player_comment_action_dynamic.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,16 @@
highlightCornerRadius="48"
SVG="@res/svg/bpx-svg-sprite-reply.svg"/>

<SVGImage
focusable="true"
id="comment/action/svg/dislike"
margin="8"
width="48"
height="48"
cornerRadius="48"
highlightCornerRadius="48"
SVG="@res/svg/bpx-svg-sprite-disliked.svg"/>

<SVGImage
focusable="true"
id="comment/action/svg/like"
Expand Down
125 changes: 125 additions & 0 deletions resources/xml/fragment/player_comment_action_dynamic_sm.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
<brls:Box
width="auto"
height="auto"
justifyContent="center"
hideClickAnimation="true"
id="player/cancel"
alignItems="center">

<brls:Box
id="comment/action/box"
positionType="absolute"
positionTop="60"
positionLeft="0"
justifyContent="center"
width="20%">
<brls:Box
axis="column"
cornerRadius="30"
backgroundColor="@theme/brls/background">
<brls:Box
height="60"
justifyContent="flexStart"
alignItems="center">

<SVGImage
focusable="true"
id="comment/action/svg/dislike"
margin="8"
width="48"
height="48"
cornerRadius="48"
highlightCornerRadius="48"
SVG="@res/svg/bpx-svg-sprite-disliked.svg"/>

<SVGImage
focusable="true"
id="comment/action/svg/like"
margin="8"
width="48"
height="48"
cornerRadius="48"
highlightCornerRadius="48"
SVG="@res/svg/bpx-svg-sprite-liked.svg"/>

<SVGImage
focusable="true"
id="comment/action/svg/gallery"
margin="8"
width="48"
height="48"
cornerRadius="48"
highlightCornerRadius="48"
visibility="gone"
SVG="@res/svg/bpx-svg-sprite-fullpage.svg"/>
</brls:Box>
<brls:Box
height="60"
justifyContent="flexStart"
alignItems="center">

<SVGImage
focusable="true"
id="comment/action/svg/delete"
margin="8"
width="48"
height="48"
cornerRadius="48"
highlightCornerRadius="48"
visibility="gone"
SVG="@res/svg/bpx-svg-sprite-delete.svg"/>

<SVGImage
focusable="true"
id="comment/action/svg/reply"
margin="8"
width="48"
height="48"
cornerRadius="48"
highlightCornerRadius="48"
SVG="@res/svg/bpx-svg-sprite-reply.svg"/>
</brls:Box>
</brls:Box>

</brls:Box>

<brls:Box
width="60%"
height="100%"
id="box/background"
backgroundColor="@theme/brls/background">
<brls:Label
fontSize="24"
text="@i18n/wiliwili/player/single_comment/detail"
positionType="absolute"
positionTop="20"
positionLeft="20"/>

<brls:ScrollingFrame
width="60%"
height="auto"
focusable="true"
marginTop="60"
grow="1.0">

<brls:Box
axis="column"
paddingLeft="20"
paddingRight="30"
grow="1.0">
<VideoComment
id="comment/action/comment"
focusable="false"
hideClickAnimation="true"/>
</brls:Box>

</brls:ScrollingFrame>
</brls:Box>

<ButtonClose
id="button/close"
positionType="absolute"
positionTop="10"
positionRight="10"/>

</brls:Box>
8 changes: 7 additions & 1 deletion resources/xml/views/video_comment.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,16 @@
<brls:Label
id="comment/label/like"
marginLeft="4"
marginRight="10"
marginRight="30"
textColor="@theme/font/grey"
fontSize="16"
text="29"/>
<SVGImage
id="comment/svg/dislike"
width="24"
height="24"
marginRight="30"
SVG="@res/svg/comment-disagree-grey.svg"/>
<SVGImage
id="comment/svg/reply"
width="24"
Expand Down
Loading

0 comments on commit ccba234

Please sign in to comment.