-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d5681fb
commit fc995c5
Showing
20 changed files
with
359 additions
and
203 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,85 +1,58 @@ | ||
<brls:Box | ||
wireframe="false" | ||
axis="column" | ||
focusable="false" | ||
paddingLeft="10" | ||
paddingRight="10" | ||
width="auto" | ||
hideHighlightBackground="true" | ||
height="auto"> | ||
|
||
<brls:Label | ||
width="100%" | ||
height="auto" | ||
fontSize="16" | ||
marginBottom="10" | ||
horizontalAlign="center" | ||
visibility="gone" | ||
id="msg/time" | ||
wireframe="false" | ||
textColor="@theme/font/grey" /> | ||
<brls:Box | ||
marginTop="5" | ||
marginRight="15"> | ||
<brls:Image | ||
id="avatar/talker" | ||
width="40" | ||
height="40" | ||
visibility="invisible" | ||
aspectRatio="1" | ||
scalingType="fit" | ||
borderThickness="4" | ||
borderColor="@theme/color/grey_1" | ||
cornerRadius="100" | ||
image="@res/pictures/default_avatar.png" /> | ||
</brls:Box> | ||
|
||
<brls:Box | ||
id="msg/content_box" | ||
backgroundColor="@theme/color/grey_1" | ||
highlightCornerRadius="16" | ||
cornerRadius="16" | ||
focusable="true" | ||
wireframe="false" | ||
paddingLeft="10" | ||
paddingRight="10" | ||
width="auto" | ||
height="auto"> | ||
|
||
<brls:Box | ||
wireframe="false" | ||
marginRight="15"> | ||
<brls:Image | ||
id="avatar/talker" | ||
width="40" | ||
height="40" | ||
visibility="invisible" | ||
aspectRatio="1" | ||
scalingType="fit" | ||
borderThickness="4" | ||
borderColor="@theme/color/grey_1" | ||
cornerRadius="100" | ||
image="@res/pictures/default_avatar.png" /> | ||
</brls:Box> | ||
|
||
<brls:Box | ||
id="msg/content_box" | ||
backgroundColor="@theme/color/grey_1" | ||
highlightCornerRadius="16" | ||
cornerRadius="16" | ||
visibility="gone" | ||
axis="column" | ||
axis="column" | ||
grow="1" | ||
padding="15"> | ||
<TextBox | ||
id="msg/content" | ||
width="auto" | ||
height="auto" | ||
grow="1" | ||
padding="15"> | ||
<TextBox | ||
id="msg/content" | ||
lineHeight="1.5" | ||
width="100%" /> | ||
</brls:Box> | ||
|
||
<brls:Box | ||
id="msg/picture_box" | ||
visibility="gone" | ||
grow="1"> | ||
<brls:Image | ||
id="msg/picture" | ||
scalingType="fit" | ||
image="@res/pictures/video-card-bg.png" /> | ||
</brls:Box> | ||
|
||
<brls:Box | ||
wireframe="false" | ||
marginLeft="15"> | ||
<brls:Image | ||
id="avatar/mine" | ||
width="40" | ||
height="40" | ||
visibility="invisible" | ||
aspectRatio="1" | ||
scalingType="fit" | ||
borderThickness="4" | ||
borderColor="@theme/color/grey_1" | ||
cornerRadius="100" | ||
image="@res/pictures/default_avatar.png" /> | ||
</brls:Box> | ||
|
||
wireframe="false" /> | ||
</brls:Box> | ||
|
||
<brls:Box | ||
marginTop="5" | ||
marginLeft="15"> | ||
<brls:Image | ||
id="avatar/mine" | ||
width="40" | ||
height="40" | ||
visibility="invisible" | ||
aspectRatio="1" | ||
scalingType="fit" | ||
borderThickness="4" | ||
borderColor="@theme/color/grey_1" | ||
cornerRadius="100" | ||
image="@res/pictures/default_avatar.png" /> | ||
</brls:Box> | ||
</brls:Box> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#pragma once | ||
|
||
#include "view/recycling_grid.hpp" | ||
#include "bilibili/result/inbox_result.h" | ||
|
||
class TextBox; | ||
|
||
typedef std::shared_ptr<bilibili::InboxEmote> InboxEmotePtr; | ||
typedef std::unordered_map<std::string, InboxEmotePtr> IEMap; | ||
|
||
class InboxMsgCard : public RecyclingGridItem { | ||
public: | ||
InboxMsgCard(); | ||
|
||
void setCard(const bilibili::InboxMessageResult& r, const IEMap& m, uint64_t talker); | ||
|
||
void setAvatar(const std::string& face); | ||
|
||
private: | ||
BRLS_BIND(TextBox, textBox, "msg/content"); | ||
BRLS_BIND(brls::Box, msgBox, "msg/content_box"); | ||
BRLS_BIND(brls::Image, talker, "avatar/talker"); | ||
BRLS_BIND(brls::Image, mine, "avatar/mine"); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.