Skip to content

Commit

Permalink
Merge pull request #451 from DanXi-Dev/better-stickers
Browse files Browse the repository at this point in the history
Better stickers
  • Loading branch information
w568w authored Nov 28, 2024
2 parents 70dd52a + 8db7104 commit 8e7c9c6
Show file tree
Hide file tree
Showing 50 changed files with 4 additions and 5 deletions.
Binary file removed assets/graphics/stickers/dx_angry.jpg
Binary file not shown.
Binary file added assets/graphics/stickers/dx_angry.webp
Binary file not shown.
Binary file removed assets/graphics/stickers/dx_call.jpg
Binary file not shown.
Binary file added assets/graphics/stickers/dx_call.webp
Binary file not shown.
Binary file removed assets/graphics/stickers/dx_cate.jpg
Binary file not shown.
Binary file added assets/graphics/stickers/dx_cate.webp
Binary file not shown.
Binary file removed assets/graphics/stickers/dx_caught.jpg
Binary file not shown.
Binary file added assets/graphics/stickers/dx_caught.webp
Binary file not shown.
Binary file removed assets/graphics/stickers/dx_confused.jpg
Binary file not shown.
Binary file added assets/graphics/stickers/dx_confused.webp
Binary file not shown.
Binary file removed assets/graphics/stickers/dx_craving.jpg
Binary file not shown.
Binary file added assets/graphics/stickers/dx_craving.webp
Binary file not shown.
Binary file removed assets/graphics/stickers/dx_dying.jpg
Binary file not shown.
Binary file added assets/graphics/stickers/dx_dying.webp
Binary file not shown.
Binary file removed assets/graphics/stickers/dx_egg.jpg
Binary file not shown.
Binary file added assets/graphics/stickers/dx_egg.webp
Binary file not shown.
Binary file removed assets/graphics/stickers/dx_fright.jpg
Binary file not shown.
Binary file added assets/graphics/stickers/dx_fright.webp
Binary file not shown.
Binary file removed assets/graphics/stickers/dx_heart.jpg
Binary file not shown.
Binary file added assets/graphics/stickers/dx_heart.webp
Binary file not shown.
Binary file removed assets/graphics/stickers/dx_hug.jpg
Binary file not shown.
Binary file added assets/graphics/stickers/dx_hug.webp
Binary file not shown.
Binary file removed assets/graphics/stickers/dx_kiss.jpg
Binary file not shown.
Binary file added assets/graphics/stickers/dx_kiss.webp
Binary file not shown.
Binary file removed assets/graphics/stickers/dx_like.jpg
Binary file not shown.
Binary file added assets/graphics/stickers/dx_like.webp
Binary file not shown.
Binary file removed assets/graphics/stickers/dx_murderous.jpg
Binary file not shown.
Binary file added assets/graphics/stickers/dx_murderous.webp
Binary file not shown.
Binary file removed assets/graphics/stickers/dx_onlooker.jpg
Binary file not shown.
Binary file added assets/graphics/stickers/dx_onlooker.webp
Binary file not shown.
Binary file removed assets/graphics/stickers/dx_overwhelm.jpg
Binary file not shown.
Binary file added assets/graphics/stickers/dx_overwhelm.webp
Binary file not shown.
Binary file removed assets/graphics/stickers/dx_roll.jpg
Binary file not shown.
Binary file added assets/graphics/stickers/dx_roll.webp
Binary file not shown.
Binary file removed assets/graphics/stickers/dx_roped.jpg
Binary file not shown.
Binary file added assets/graphics/stickers/dx_roped.webp
Binary file not shown.
Binary file removed assets/graphics/stickers/dx_sleep.jpg
Binary file not shown.
Binary file added assets/graphics/stickers/dx_sleep.webp
Binary file not shown.
Binary file removed assets/graphics/stickers/dx_swim.jpg
Binary file not shown.
Binary file added assets/graphics/stickers/dx_swim.webp
Binary file not shown.
Binary file removed assets/graphics/stickers/dx_thrill.jpg
Binary file not shown.
Binary file added assets/graphics/stickers/dx_thrill.webp
Binary file not shown.
Binary file removed assets/graphics/stickers/dx_touch_fish.jpg
Binary file not shown.
Binary file added assets/graphics/stickers/dx_touch_fish.webp
Binary file not shown.
Binary file removed assets/graphics/stickers/dx_twin.jpg
Binary file not shown.
Binary file added assets/graphics/stickers/dx_twin.webp
Binary file not shown.
Binary file removed assets/graphics/stickers/dx_worn.jpg
Binary file not shown.
Binary file added assets/graphics/stickers/dx_worn.webp
Binary file not shown.
7 changes: 3 additions & 4 deletions lib/page/forum/hole_editor.dart
Original file line number Diff line number Diff line change
Expand Up @@ -354,9 +354,8 @@ class BBSEditorWidgetState extends State<BBSEditorWidget> {
rowGap: 8,
columnGap: 8,
children: Stickers.values.map((e) {
return SizedBox(
width: 60,
height: 60,
return Container(
alignment: Alignment.center,
child: InkWell(
onTap: () {
var cursorPosition =
Expand All @@ -372,7 +371,7 @@ class BBSEditorWidgetState extends State<BBSEditorWidget> {
getStickerAssetPath(e.name)!,
width: 60,
height: 60,
fit: BoxFit.cover,
fit: BoxFit.contain,
),
),
);
Expand Down
2 changes: 1 addition & 1 deletion lib/util/stickers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ String? getStickerAssetPath(String stickerName) {
try {
Stickers sticker = Stickers.values.firstWhere(
(e) => e.name.toString() == stickerName);
return "assets/graphics/stickers/${sticker.name}.jpg";
return "assets/graphics/stickers/${sticker.name}.webp";
} catch (error) {
return null;
}
Expand Down

0 comments on commit 8e7c9c6

Please sign in to comment.