diff --git a/firka/assets/images/background.png b/firka/assets/images/background.png deleted file mode 100644 index 4581cfaf..00000000 Binary files a/firka/assets/images/background.png and /dev/null differ diff --git a/firka/assets/images/background.webp b/firka/assets/images/background.webp new file mode 100644 index 00000000..07edf1e0 Binary files /dev/null and b/firka/assets/images/background.webp differ diff --git a/firka/assets/images/carousel/slide1.png b/firka/assets/images/carousel/slide1.png deleted file mode 100644 index d49a8128..00000000 Binary files a/firka/assets/images/carousel/slide1.png and /dev/null differ diff --git a/firka/assets/images/carousel/slide1.webp b/firka/assets/images/carousel/slide1.webp new file mode 100644 index 00000000..9073ae81 Binary files /dev/null and b/firka/assets/images/carousel/slide1.webp differ diff --git a/firka/assets/images/carousel/slide1_background.gif b/firka/assets/images/carousel/slide1_background.gif deleted file mode 100644 index 3e361a0a..00000000 Binary files a/firka/assets/images/carousel/slide1_background.gif and /dev/null differ diff --git a/firka/assets/images/carousel/slide1_background.webp b/firka/assets/images/carousel/slide1_background.webp new file mode 100644 index 00000000..007225e0 Binary files /dev/null and b/firka/assets/images/carousel/slide1_background.webp differ diff --git a/firka/assets/images/carousel/slide2.png b/firka/assets/images/carousel/slide2.png deleted file mode 100644 index bde8cd09..00000000 Binary files a/firka/assets/images/carousel/slide2.png and /dev/null differ diff --git a/firka/assets/images/carousel/slide2.webp b/firka/assets/images/carousel/slide2.webp new file mode 100644 index 00000000..e1f8ea34 Binary files /dev/null and b/firka/assets/images/carousel/slide2.webp differ diff --git a/firka/assets/images/carousel/slide2_background.gif b/firka/assets/images/carousel/slide2_background.gif deleted file mode 100644 index 3b9994ec..00000000 Binary files a/firka/assets/images/carousel/slide2_background.gif and /dev/null differ diff --git a/firka/assets/images/carousel/slide2_background.webp b/firka/assets/images/carousel/slide2_background.webp new file mode 100644 index 00000000..0ee2051e Binary files /dev/null and b/firka/assets/images/carousel/slide2_background.webp differ diff --git a/firka/assets/images/carousel/slide3.png b/firka/assets/images/carousel/slide3.png deleted file mode 100644 index ee843b83..00000000 Binary files a/firka/assets/images/carousel/slide3.png and /dev/null differ diff --git a/firka/assets/images/carousel/slide3.webp b/firka/assets/images/carousel/slide3.webp new file mode 100644 index 00000000..bfc2f707 Binary files /dev/null and b/firka/assets/images/carousel/slide3.webp differ diff --git a/firka/assets/images/carousel/slide3_foreground.gif b/firka/assets/images/carousel/slide3_foreground.gif deleted file mode 100644 index d4a38846..00000000 Binary files a/firka/assets/images/carousel/slide3_foreground.gif and /dev/null differ diff --git a/firka/assets/images/carousel/slide3_foreground.webp b/firka/assets/images/carousel/slide3_foreground.webp new file mode 100644 index 00000000..f4eb03d8 Binary files /dev/null and b/firka/assets/images/carousel/slide3_foreground.webp differ diff --git a/firka/assets/images/carousel/slide4.png b/firka/assets/images/carousel/slide4.png deleted file mode 100644 index 985df734..00000000 Binary files a/firka/assets/images/carousel/slide4.png and /dev/null differ diff --git a/firka/assets/images/carousel/slide4.webp b/firka/assets/images/carousel/slide4.webp new file mode 100644 index 00000000..4d5085e3 Binary files /dev/null and b/firka/assets/images/carousel/slide4.webp differ diff --git a/firka/assets/images/carousel/slide4_background.gif b/firka/assets/images/carousel/slide4_background.gif deleted file mode 100644 index 79552fee..00000000 Binary files a/firka/assets/images/carousel/slide4_background.gif and /dev/null differ diff --git a/firka/assets/images/carousel/slide4_background.webp b/firka/assets/images/carousel/slide4_background.webp new file mode 100644 index 00000000..9c2ac2cc Binary files /dev/null and b/firka/assets/images/carousel/slide4_background.webp differ diff --git a/firka/assets/images/icons/ace.png b/firka/assets/images/icons/ace.png deleted file mode 100644 index 34cbfcd6..00000000 Binary files a/firka/assets/images/icons/ace.png and /dev/null differ diff --git a/firka/assets/images/icons/ace.webp b/firka/assets/images/icons/ace.webp new file mode 100644 index 00000000..0d637ea2 Binary files /dev/null and b/firka/assets/images/icons/ace.webp differ diff --git a/firka/assets/images/icons/ace_f.png b/firka/assets/images/icons/ace_f.png deleted file mode 100644 index f2191b6b..00000000 Binary files a/firka/assets/images/icons/ace_f.png and /dev/null differ diff --git a/firka/assets/images/icons/ace_f.webp b/firka/assets/images/icons/ace_f.webp new file mode 100644 index 00000000..036310a3 Binary files /dev/null and b/firka/assets/images/icons/ace_f.webp differ diff --git a/firka/assets/images/icons/bi.png b/firka/assets/images/icons/bi.png deleted file mode 100644 index 361a6860..00000000 Binary files a/firka/assets/images/icons/bi.png and /dev/null differ diff --git a/firka/assets/images/icons/bi.webp b/firka/assets/images/icons/bi.webp new file mode 100644 index 00000000..9e0b476c Binary files /dev/null and b/firka/assets/images/icons/bi.webp differ diff --git a/firka/assets/images/icons/bi_f.png b/firka/assets/images/icons/bi_f.png deleted file mode 100644 index 1d977d03..00000000 Binary files a/firka/assets/images/icons/bi_f.png and /dev/null differ diff --git a/firka/assets/images/icons/bi_f.webp b/firka/assets/images/icons/bi_f.webp new file mode 100644 index 00000000..01968425 Binary files /dev/null and b/firka/assets/images/icons/bi_f.webp differ diff --git a/firka/assets/images/icons/cactus.png b/firka/assets/images/icons/cactus.png deleted file mode 100644 index cce3554d..00000000 Binary files a/firka/assets/images/icons/cactus.png and /dev/null differ diff --git a/firka/assets/images/icons/cactus.webp b/firka/assets/images/icons/cactus.webp new file mode 100644 index 00000000..79149869 Binary files /dev/null and b/firka/assets/images/icons/cactus.webp differ diff --git a/firka/assets/images/icons/cc.png b/firka/assets/images/icons/cc.png deleted file mode 100644 index ca254e5f..00000000 Binary files a/firka/assets/images/icons/cc.png and /dev/null differ diff --git a/firka/assets/images/icons/cc.webp b/firka/assets/images/icons/cc.webp new file mode 100644 index 00000000..80ca54ff Binary files /dev/null and b/firka/assets/images/icons/cc.webp differ diff --git a/firka/assets/images/icons/enby.png b/firka/assets/images/icons/enby.png deleted file mode 100644 index 11e7908c..00000000 Binary files a/firka/assets/images/icons/enby.png and /dev/null differ diff --git a/firka/assets/images/icons/enby.webp b/firka/assets/images/icons/enby.webp new file mode 100644 index 00000000..5b6f0b1f Binary files /dev/null and b/firka/assets/images/icons/enby.webp differ diff --git a/firka/assets/images/icons/enby_f.png b/firka/assets/images/icons/enby_f.png deleted file mode 100644 index d5d350a0..00000000 Binary files a/firka/assets/images/icons/enby_f.png and /dev/null differ diff --git a/firka/assets/images/icons/enby_f.webp b/firka/assets/images/icons/enby_f.webp new file mode 100644 index 00000000..1b9c96f6 Binary files /dev/null and b/firka/assets/images/icons/enby_f.webp differ diff --git a/firka/assets/images/icons/fidesz.png b/firka/assets/images/icons/fidesz.png deleted file mode 100644 index 35b46250..00000000 Binary files a/firka/assets/images/icons/fidesz.png and /dev/null differ diff --git a/firka/assets/images/icons/fidesz.webp b/firka/assets/images/icons/fidesz.webp new file mode 100644 index 00000000..aeb1d7dc Binary files /dev/null and b/firka/assets/images/icons/fidesz.webp differ diff --git a/firka/assets/images/icons/filc.png b/firka/assets/images/icons/filc.png deleted file mode 100644 index a6d76eff..00000000 Binary files a/firka/assets/images/icons/filc.png and /dev/null differ diff --git a/firka/assets/images/icons/filc.webp b/firka/assets/images/icons/filc.webp new file mode 100644 index 00000000..ad644b34 Binary files /dev/null and b/firka/assets/images/icons/filc.webp differ diff --git a/firka/assets/images/icons/filco.png b/firka/assets/images/icons/filco.png deleted file mode 100644 index 7d07368a..00000000 Binary files a/firka/assets/images/icons/filco.png and /dev/null differ diff --git a/firka/assets/images/icons/filco.webp b/firka/assets/images/icons/filco.webp new file mode 100644 index 00000000..c55b9246 Binary files /dev/null and b/firka/assets/images/icons/filco.webp differ diff --git a/firka/assets/images/icons/galaxy.png b/firka/assets/images/icons/galaxy.png deleted file mode 100644 index 094daf12..00000000 Binary files a/firka/assets/images/icons/galaxy.png and /dev/null differ diff --git a/firka/assets/images/icons/galaxy.webp b/firka/assets/images/icons/galaxy.webp new file mode 100644 index 00000000..6ee2acf7 Binary files /dev/null and b/firka/assets/images/icons/galaxy.webp differ diff --git a/firka/assets/images/icons/gay.png b/firka/assets/images/icons/gay.png deleted file mode 100644 index 4a9ac4fb..00000000 Binary files a/firka/assets/images/icons/gay.png and /dev/null differ diff --git a/firka/assets/images/icons/gay.webp b/firka/assets/images/icons/gay.webp new file mode 100644 index 00000000..ae05c928 Binary files /dev/null and b/firka/assets/images/icons/gay.webp differ diff --git a/firka/assets/images/icons/gay_f.png b/firka/assets/images/icons/gay_f.png deleted file mode 100644 index 3d1b2e62..00000000 Binary files a/firka/assets/images/icons/gay_f.png and /dev/null differ diff --git a/firka/assets/images/icons/gay_f.webp b/firka/assets/images/icons/gay_f.webp new file mode 100644 index 00000000..f82f3636 Binary files /dev/null and b/firka/assets/images/icons/gay_f.webp differ diff --git a/firka/assets/images/icons/kreta.png b/firka/assets/images/icons/kreta.png deleted file mode 100644 index d829e9e7..00000000 Binary files a/firka/assets/images/icons/kreta.png and /dev/null differ diff --git a/firka/assets/images/icons/kreta.webp b/firka/assets/images/icons/kreta.webp new file mode 100644 index 00000000..3471783f Binary files /dev/null and b/firka/assets/images/icons/kreta.webp differ diff --git a/firka/assets/images/icons/lesb.png b/firka/assets/images/icons/lesb.png deleted file mode 100644 index 6ce35763..00000000 Binary files a/firka/assets/images/icons/lesb.png and /dev/null differ diff --git a/firka/assets/images/icons/lesb.webp b/firka/assets/images/icons/lesb.webp new file mode 100644 index 00000000..83b634ae Binary files /dev/null and b/firka/assets/images/icons/lesb.webp differ diff --git a/firka/assets/images/icons/lesb_f.png b/firka/assets/images/icons/lesb_f.png deleted file mode 100644 index 85836b1a..00000000 Binary files a/firka/assets/images/icons/lesb_f.png and /dev/null differ diff --git a/firka/assets/images/icons/lesb_f.webp b/firka/assets/images/icons/lesb_f.webp new file mode 100644 index 00000000..a4b70ce6 Binary files /dev/null and b/firka/assets/images/icons/lesb_f.webp differ diff --git a/firka/assets/images/icons/lgbtq.png b/firka/assets/images/icons/lgbtq.png deleted file mode 100644 index b030f4e6..00000000 Binary files a/firka/assets/images/icons/lgbtq.png and /dev/null differ diff --git a/firka/assets/images/icons/lgbtq.webp b/firka/assets/images/icons/lgbtq.webp new file mode 100644 index 00000000..69a2ea1a Binary files /dev/null and b/firka/assets/images/icons/lgbtq.webp differ diff --git a/firka/assets/images/icons/lgbtq_f.png b/firka/assets/images/icons/lgbtq_f.png deleted file mode 100644 index 8aeb0988..00000000 Binary files a/firka/assets/images/icons/lgbtq_f.png and /dev/null differ diff --git a/firka/assets/images/icons/lgbtq_f.webp b/firka/assets/images/icons/lgbtq_f.webp new file mode 100644 index 00000000..7f4f8a22 Binary files /dev/null and b/firka/assets/images/icons/lgbtq_f.webp differ diff --git a/firka/assets/images/icons/lgbtqp.png b/firka/assets/images/icons/lgbtqp.png deleted file mode 100644 index 575170a3..00000000 Binary files a/firka/assets/images/icons/lgbtqp.png and /dev/null differ diff --git a/firka/assets/images/icons/lgbtqp.webp b/firka/assets/images/icons/lgbtqp.webp new file mode 100644 index 00000000..fbb4cf71 Binary files /dev/null and b/firka/assets/images/icons/lgbtqp.webp differ diff --git a/firka/assets/images/icons/lgbtqp_f.png b/firka/assets/images/icons/lgbtqp_f.png deleted file mode 100644 index dde53456..00000000 Binary files a/firka/assets/images/icons/lgbtqp_f.png and /dev/null differ diff --git a/firka/assets/images/icons/lgbtqp_f.webp b/firka/assets/images/icons/lgbtqp_f.webp new file mode 100644 index 00000000..94f65411 Binary files /dev/null and b/firka/assets/images/icons/lgbtqp_f.webp differ diff --git a/firka/assets/images/icons/mkkp.png b/firka/assets/images/icons/mkkp.png deleted file mode 100644 index 2377f461..00000000 Binary files a/firka/assets/images/icons/mkkp.png and /dev/null differ diff --git a/firka/assets/images/icons/mkkp.webp b/firka/assets/images/icons/mkkp.webp new file mode 100644 index 00000000..1cbc4461 Binary files /dev/null and b/firka/assets/images/icons/mkkp.webp differ diff --git a/firka/assets/images/icons/modern.png b/firka/assets/images/icons/modern.png deleted file mode 100644 index 88578528..00000000 Binary files a/firka/assets/images/icons/modern.png and /dev/null differ diff --git a/firka/assets/images/icons/modern.webp b/firka/assets/images/icons/modern.webp new file mode 100644 index 00000000..4c27b6d3 Binary files /dev/null and b/firka/assets/images/icons/modern.webp differ diff --git a/firka/assets/images/icons/o1g.png b/firka/assets/images/icons/o1g.png deleted file mode 100644 index 82c3b0c0..00000000 Binary files a/firka/assets/images/icons/o1g.png and /dev/null differ diff --git a/firka/assets/images/icons/o1g.webp b/firka/assets/images/icons/o1g.webp new file mode 100644 index 00000000..b762745e Binary files /dev/null and b/firka/assets/images/icons/o1g.webp differ diff --git a/firka/assets/images/icons/original.png b/firka/assets/images/icons/original.png deleted file mode 100644 index e2cdbffc..00000000 Binary files a/firka/assets/images/icons/original.png and /dev/null differ diff --git a/firka/assets/images/icons/original.webp b/firka/assets/images/icons/original.webp new file mode 100644 index 00000000..7760a112 Binary files /dev/null and b/firka/assets/images/icons/original.webp differ diff --git a/firka/assets/images/icons/paper.png b/firka/assets/images/icons/paper.png deleted file mode 100644 index 2e6b7759..00000000 Binary files a/firka/assets/images/icons/paper.png and /dev/null differ diff --git a/firka/assets/images/icons/paper.webp b/firka/assets/images/icons/paper.webp new file mode 100644 index 00000000..bf2385f9 Binary files /dev/null and b/firka/assets/images/icons/paper.webp differ diff --git a/firka/assets/images/icons/pixel.png b/firka/assets/images/icons/pixel.png deleted file mode 100644 index e0444e88..00000000 Binary files a/firka/assets/images/icons/pixel.png and /dev/null differ diff --git a/firka/assets/images/icons/pixel.webp b/firka/assets/images/icons/pixel.webp new file mode 100644 index 00000000..b2838ede Binary files /dev/null and b/firka/assets/images/icons/pixel.webp differ diff --git a/firka/assets/images/icons/pixelized.png b/firka/assets/images/icons/pixelized.png deleted file mode 100644 index c189ff4b..00000000 Binary files a/firka/assets/images/icons/pixelized.png and /dev/null differ diff --git a/firka/assets/images/icons/pixelized.webp b/firka/assets/images/icons/pixelized.webp new file mode 100644 index 00000000..03a10a32 Binary files /dev/null and b/firka/assets/images/icons/pixelized.webp differ diff --git a/firka/assets/images/icons/refilc.png b/firka/assets/images/icons/refilc.png deleted file mode 100644 index 3c96f946..00000000 Binary files a/firka/assets/images/icons/refilc.png and /dev/null differ diff --git a/firka/assets/images/icons/refilc.webp b/firka/assets/images/icons/refilc.webp new file mode 100644 index 00000000..235d900e Binary files /dev/null and b/firka/assets/images/icons/refilc.webp differ diff --git a/firka/assets/images/icons/refulc.png b/firka/assets/images/icons/refulc.png deleted file mode 100644 index 27470542..00000000 Binary files a/firka/assets/images/icons/refulc.png and /dev/null differ diff --git a/firka/assets/images/icons/refulc.webp b/firka/assets/images/icons/refulc.webp new file mode 100644 index 00000000..a0285f56 Binary files /dev/null and b/firka/assets/images/icons/refulc.webp differ diff --git a/firka/assets/images/icons/repont.png b/firka/assets/images/icons/repont.png deleted file mode 100644 index ffd98d6a..00000000 Binary files a/firka/assets/images/icons/repont.png and /dev/null differ diff --git a/firka/assets/images/icons/repont.webp b/firka/assets/images/icons/repont.webp new file mode 100644 index 00000000..393c441b Binary files /dev/null and b/firka/assets/images/icons/repont.webp differ diff --git a/firka/assets/images/icons/trans.png b/firka/assets/images/icons/trans.png deleted file mode 100644 index 605f50cb..00000000 Binary files a/firka/assets/images/icons/trans.png and /dev/null differ diff --git a/firka/assets/images/icons/trans.webp b/firka/assets/images/icons/trans.webp new file mode 100644 index 00000000..0211e059 Binary files /dev/null and b/firka/assets/images/icons/trans.webp differ diff --git a/firka/assets/images/icons/trans_f.png b/firka/assets/images/icons/trans_f.png deleted file mode 100644 index ec4040bc..00000000 Binary files a/firka/assets/images/icons/trans_f.png and /dev/null differ diff --git a/firka/assets/images/icons/trans_f.webp b/firka/assets/images/icons/trans_f.webp new file mode 100644 index 00000000..53e04429 Binary files /dev/null and b/firka/assets/images/icons/trans_f.webp differ diff --git a/firka/assets/images/icons/void_icon.png b/firka/assets/images/icons/void_icon.png deleted file mode 100644 index 85876056..00000000 Binary files a/firka/assets/images/icons/void_icon.png and /dev/null differ diff --git a/firka/assets/images/icons/void_icon.webp b/firka/assets/images/icons/void_icon.webp new file mode 100644 index 00000000..c33a0f65 Binary files /dev/null and b/firka/assets/images/icons/void_icon.webp differ diff --git a/firka/assets/images/icons/xmas1.png b/firka/assets/images/icons/xmas1.png deleted file mode 100644 index 57197f3f..00000000 Binary files a/firka/assets/images/icons/xmas1.png and /dev/null differ diff --git a/firka/assets/images/icons/xmas1.webp b/firka/assets/images/icons/xmas1.webp new file mode 100644 index 00000000..d52a7793 Binary files /dev/null and b/firka/assets/images/icons/xmas1.webp differ diff --git a/firka/assets/images/icons/xmas2.png b/firka/assets/images/icons/xmas2.png deleted file mode 100644 index f66dabbc..00000000 Binary files a/firka/assets/images/icons/xmas2.png and /dev/null differ diff --git a/firka/assets/images/icons/xmas2.webp b/firka/assets/images/icons/xmas2.webp new file mode 100644 index 00000000..8bc2e89c Binary files /dev/null and b/firka/assets/images/icons/xmas2.webp differ diff --git a/firka/assets/images/icons/xmas3.png b/firka/assets/images/icons/xmas3.png deleted file mode 100644 index 35388b4c..00000000 Binary files a/firka/assets/images/icons/xmas3.png and /dev/null differ diff --git a/firka/assets/images/icons/xmas3.webp b/firka/assets/images/icons/xmas3.webp new file mode 100644 index 00000000..ee4a50dc Binary files /dev/null and b/firka/assets/images/icons/xmas3.webp differ diff --git a/firka/assets/images/logos/colored_logo.png b/firka/assets/images/logos/colored_logo.png deleted file mode 100644 index 63456bc2..00000000 Binary files a/firka/assets/images/logos/colored_logo.png and /dev/null differ diff --git a/firka/assets/images/logos/colored_logo.webp b/firka/assets/images/logos/colored_logo.webp new file mode 100644 index 00000000..65650211 Binary files /dev/null and b/firka/assets/images/logos/colored_logo.webp differ diff --git a/firka/flutter_launcher_icons.yaml b/firka/flutter_launcher_icons.yaml index 7342d0fc..bec69ebf 100644 --- a/firka/flutter_launcher_icons.yaml +++ b/firka/flutter_launcher_icons.yaml @@ -1,7 +1,7 @@ flutter_launcher_icons: generate: true android: "launcher_icon" - image_path: "assets/images/logos/colored_logo.png" + image_path: "assets/images/logos/colored_logo.webp" adaptive_icon_monochrome: "assets/images/logos/monochrome_logo.png" adaptive_icon_background: "assets/images/logos/colored_logo_without_mustache.png" adaptive_icon_foreground: "assets/images/logos/colored_logo_only_mustache.png" diff --git a/firka/lib/helpers/profile_picture.dart b/firka/lib/helpers/profile_picture.dart index bad898b8..ccb0068b 100644 --- a/firka/lib/helpers/profile_picture.dart +++ b/firka/lib/helpers/profile_picture.dart @@ -16,7 +16,7 @@ Future pickProfilePicture( var dataDir = await getApplicationDocumentsDirectory(); var bytes = encodePng(resized); - await File(p.join(dataDir.path, "profile.png")).writeAsBytes(bytes); + await File(p.join(dataDir.path, "profile.webp")).writeAsBytes(bytes); data.profilePicture = bytes; } diff --git a/firka/lib/main.dart b/firka/lib/main.dart index 0fb4a612..ab77812d 100644 --- a/firka/lib/main.dart +++ b/firka/lib/main.dart @@ -176,7 +176,7 @@ Future initializeApp() async { } final dataDir = await getApplicationDocumentsDirectory(); - var pfpFile = File(p.join(dataDir.path, "profile.png")); + var pfpFile = File(p.join(dataDir.path, "profile.webp")); if (await pfpFile.exists()) { init.profilePicture = await pfpFile.readAsBytes(); diff --git a/firka/lib/ui/phone/screens/login/login_screen.dart b/firka/lib/ui/phone/screens/login/login_screen.dart index 3d74d739..967206f1 100644 --- a/firka/lib/ui/phone/screens/login/login_screen.dart +++ b/firka/lib/ui/phone/screens/login/login_screen.dart @@ -49,14 +49,14 @@ class _LoginScreenState extends State { final firkaBundle = FirkaBundle(); await precacheAssets(firkaBundle, [ - "assets/images/carousel/slide1.png", - "assets/images/carousel/slide1_background.gif", - "assets/images/carousel/slide2.png", - "assets/images/carousel/slide2_background.gif", - "assets/images/carousel/slide3.png", - "assets/images/carousel/slide3_foreground.gif", - "assets/images/carousel/slide4.png", - "assets/images/carousel/slide4_background.gif" + "assets/images/carousel/slide1.webp", + "assets/images/carousel/slide1_background.webp", + "assets/images/carousel/slide2.webp", + "assets/images/carousel/slide2_background.webp", + "assets/images/carousel/slide3.webp", + "assets/images/carousel/slide3_foreground.webp", + "assets/images/carousel/slide4.webp", + "assets/images/carousel/slide4_background.webp" ]); setState(() { @@ -79,8 +79,8 @@ class _LoginScreenState extends State { { 'title': widget.data.l10n.title1, 'subtitle': widget.data.l10n.subtitle1, - 'picture': 'assets/images/carousel/slide1.png', - 'background': 'assets/images/carousel/slide1_background.gif', + 'picture': 'assets/images/carousel/slide1.webp', + 'background': 'assets/images/carousel/slide1_background.webp', 'foreground': '', 'rotation': 180.00, // „Mi nekünk két szám típusunk van, int (egy 32 bites szám) meg a double (egy 64 bites tört szám), KURVA ANYÁDAT” @@ -91,8 +91,8 @@ class _LoginScreenState extends State { { 'title': widget.data.l10n.title2, 'subtitle': widget.data.l10n.subtitle2, - 'picture': 'assets/images/carousel/slide2.png', - 'background': 'assets/images/carousel/slide2_background.gif', + 'picture': 'assets/images/carousel/slide2.webp', + 'background': 'assets/images/carousel/slide2_background.webp', 'foreground': '', 'rotation': 180.00, //Mivel radiáns, és nullával nem lehet osztani (remélem tudtad), ezért ha eggyel osztunk akkor egy marad @@ -103,9 +103,9 @@ class _LoginScreenState extends State { { 'title': widget.data.l10n.title3, 'subtitle': widget.data.l10n.subtitle3, - 'picture': 'assets/images/carousel/slide3.png', + 'picture': 'assets/images/carousel/slide3.webp', 'background': '', - 'foreground': 'assets/images/carousel/slide3_foreground.gif', + 'foreground': 'assets/images/carousel/slide3_foreground.webp', 'rotation': 180.0, 'scale': 0.8, 'x': 0.00, @@ -114,8 +114,8 @@ class _LoginScreenState extends State { { 'title': widget.data.l10n.title4, 'subtitle': widget.data.l10n.subtitle4, - 'picture': 'assets/images/carousel/slide4.png', - 'background': 'assets/images/carousel/slide4_background.gif', + 'picture': 'assets/images/carousel/slide4.webp', + 'background': 'assets/images/carousel/slide4_background.webp', 'foreground': '', 'rotation': 180.00, 'scale': 1.35, @@ -147,7 +147,7 @@ class _LoginScreenState extends State { image: DecorationImage( image: CacheMemoryImageProvider( DefaultAssetBundle.of(context), - 'assets/images/logos/colored_logo.png'), + 'assets/images/logos/colored_logo.webp'), fit: BoxFit.cover, ), shape: RoundedRectangleBorder( diff --git a/firka/lib/ui/phone/screens/settings/settings_screen.dart b/firka/lib/ui/phone/screens/settings/settings_screen.dart index 42624076..09b33d7b 100644 --- a/firka/lib/ui/phone/screens/settings/settings_screen.dart +++ b/firka/lib/ui/phone/screens/settings/settings_screen.dart @@ -234,7 +234,7 @@ class _SettingsScreenState extends State { widgets.add(Container( decoration: BoxDecoration( image: DecorationImage( - image: AssetImage('assets/images/background.png'), + image: AssetImage('assets/images/background.webp'), fit: BoxFit.cover), borderRadius: BorderRadius.all(Radius.circular(16)), ), @@ -249,7 +249,7 @@ class _SettingsScreenState extends State { borderRadius: const BorderRadius.all(Radius.circular(16.0)), child: Image.asset( - "assets/images/icons/$activeIcon.png", + "assets/images/icons/$activeIcon.webp", width: 74, height: 74, ), @@ -304,7 +304,7 @@ class _SettingsScreenState extends State { borderRadius: const BorderRadius.all(Radius.circular(12.0)), child: Image.asset( - "assets/images/icons/$icon.png", + "assets/images/icons/$icon.webp", width: 48, height: 48, ), @@ -315,7 +315,7 @@ class _SettingsScreenState extends State { borderRadius: const BorderRadius.all(Radius.circular(16.0)), child: Image.asset( - "assets/images/icons/$icon.png", + "assets/images/icons/$icon.webp", width: 54, height: 54, ), diff --git a/firka/lib/ui/phone/screens/wear_login/wear_login_screen.dart b/firka/lib/ui/phone/screens/wear_login/wear_login_screen.dart index a18b232a..dbe2897c 100644 --- a/firka/lib/ui/phone/screens/wear_login/wear_login_screen.dart +++ b/firka/lib/ui/phone/screens/wear_login/wear_login_screen.dart @@ -130,7 +130,7 @@ class _WearLoginScreenState extends State { decoration: ShapeDecoration( image: const DecorationImage( image: AssetImage( - 'assets/images/logos/colored_logo.png'), + 'assets/images/logos/colored_logo.webp'), fit: BoxFit.cover, ), shape: RoundedRectangleBorder( diff --git a/firka/pubspec.yaml b/firka/pubspec.yaml index 08e1c53c..606d55c3 100644 --- a/firka/pubspec.yaml +++ b/firka/pubspec.yaml @@ -87,11 +87,11 @@ flutter: generate: true uses-material-design: true assets: - - assets/images/logos/colored_logo.png + - assets/images/logos/colored_logo.webp - assets/images/logos/dave.svg - assets/images/carousel/ - assets/images/icons/ - - assets/images/background.png + - assets/images/background.webp - assets/images/wear_pair.svg - assets/icons/ - assets/majesticons/