diff --git a/yuuna/android/app/src/main/java/app/lrorpilla/yuuna/MainActivity.java b/yuuna/android/app/src/main/java/app/lrorpilla/yuuna/MainActivity.java index 5a59f9fc5..747371171 100644 --- a/yuuna/android/app/src/main/java/app/lrorpilla/yuuna/MainActivity.java +++ b/yuuna/android/app/src/main/java/app/lrorpilla/yuuna/MainActivity.java @@ -87,62 +87,13 @@ public void addDefaultModel() { new String[] { "jidoujisho Yuuna" }, - new String[] {"
{{Term}}

{{Sentence}}"}, - new String[] {"

{{Term}}

{{Sentence}}


{{#Term Audio}}{{Term Audio}}{{/Term Audio}}{{#Sentence Audio}}
{{Sentence Audio}}{{/Sentence Audio}}{{#Image}}
{{Image}}
{{/Image}}{{#Pitch Accent}}
{{Pitch Accent}}
{{/Pitch Accent}}

{{furigana:Furigana}}


{{#Meaning}}

{{Meaning}}


{{/Meaning}}{{#Expanded Meaning}}

{{Expanded Meaning}}

{{/Expanded Meaning}}
{{#Collapsed Meaning}}

{{Collapsed Meaning}}


{{/Collapsed Meaning}}"}, - "p {\n" + - " margin: 0px\n" + - "}\n" + - "\n" + - "h2 {\n" + - " margin: 0px\n" + - "}\n" + - "\n" + - "small {\n" + - " margin: 0px\n" + - "}\n" + - "\n" + - ".card {\n" + - " font-family: arial;\n" + - " font-size: 20px;\n" + - " text-align: center;\n" + - " color: black;\n" + - " background-color: white;\n" + - " white-space: pre-line;\n" + - "}\n" + - "\n" + - "#sentence {\n" + - " font-size: 30px\n" + - "}\n" + - "\n" + - ".context.night_mode {\n" + - " text-decoration: none;\n" + - " color: red;\n" + - "}\n" + - ".context {\n" + - " text-decoration: none;\n" + - " color: red;\n" + - "}\n" + - "\n" + - ".image img {\n" + - " position: static;\n" + - " height: auto;\n" + - " width: auto;\n" + - " max-height: 250px;\n" + - "}\n" + - ".pitch{\n" + - " border-top: solid red 2px;\n" + - " padding-top: 1px;\n" + - "}\n" + - "\n" + - ".pitch_end{\n" + - " border-color: red;\n" + - " border-right: solid red 2px;\n" + - " border-top: solid red 2px; \n" + - " line-height: 1px;\n" + - " margin-right: 1px;\n" + - " padding-right: 1px;\n" + - " padding-top:1px;\n" + - "}", + new String[] { + "
{{Term}}
" + }, + new String[] { + "
{{furigana:Furigana}}
{{#Pitch Accent}}{{Pitch Accent}}{{/Pitch Accent}}\n{{#Meaning}}

{{furigana:Meaning}}

{{/Meaning}}\n{{#Expanded Meaning}}

{{furigana:Expanded Meaning}}

{{/Expanded Meaning}}{{#Collapsed Meaning}}

{{furigana:Collapsed Meaning}}


\n{{/Collapsed Meaning}}\n{{#Image}}
{{Image}}
{{/Image}}\n{{#Term Audio}}{{Term Audio}}{{/Term Audio}}{{#Sentence Audio}}{{Sentence Audio}}{{/Sentence Audio}}
{{Sentence}}
" + }, + ".card {\n font-family: \"Helvetica Neue\", Arial, sans-serif;\n font-size: 16px;\n text-align: center;\n color: #333333;\n background-color: #F6F6F6;\n border-radius: 12px;\n box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);\n padding: 24px;\n margin: 12px;\n border: 1px solid #D9D9D9;\n}\n\n#word {\n font-size: 30px;\n font-weight: bold;\n margin-bottom: 16px;\n}\n\n.details-summary {\n cursor: pointer;\n font-size: 16px;\n text-shadow: 1px 1px #ffffff;\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-bottom: 16px;\n}\n\n.details-summary:hover {\n color: #6495ED;\n}\n\n.details-summary:hover .arrow {\n transform: translateX(4px);\n}\n\n.arrow {\n fill: #777777;\n transition: transform 0.2s ease-in-out;\n margin-right: 8px;\n}\n\n.image img {\n max-width: 100%;\n height: auto;\n border-radius: 12px;\n box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);\n margin-top: 16px;\n margin-bottom: 16px;\n transition: transform 0.2s ease-in-out;\n}\n\n.image:hover img {\n transform: scale(1.05);\n}\n\n.furigana {\n font-size: 22px;\n font-weight: bold;\n line-height: 1.4;\n margin-bottom: 16px;\n text-shadow: 1px 1px #ffffff;\n}\n\n.meaning {\n font-size: 18px;\n line-height: 1.6;\n margin-bottom: 16px;\n text-shadow: 1px 1px #ffffff;\n}\n\n#sentence {\n font-size: 20px;\n line-height: 1.6;\n margin-top: 8px;\n margin-bottom: 8px;\n} \n\n.pitch{\n border-top: solid red 2px;\n padding-top: 1px;\n}\n\n.pitch_end{\n border-color: red;\n border-right: solid red 2px;\n border-top: solid red 2px; \n line-height: 1px;\n margin-right: 1px;\n padding-right: 1px;\n padding-top:1px;\n}", null, null ); diff --git a/yuuna/lib/src/creator/anki_mapping.dart b/yuuna/lib/src/creator/anki_mapping.dart index b2ffd29a0..097ff74b1 100644 --- a/yuuna/lib/src/creator/anki_mapping.dart +++ b/yuuna/lib/src/creator/anki_mapping.dart @@ -61,7 +61,7 @@ class AnkiMapping { enhancements: defaultEnhancementsByLanguage[language.languageCountryCode], actions: defaultActionsByLanguage[language.languageCountryCode], exportMediaTags: true, - useBrTags: false, + useBrTags: true, prependDictionaryNames: true, ); } diff --git a/yuuna/lib/src/models/app_model.dart b/yuuna/lib/src/models/app_model.dart index 3480c332e..500ad9b54 100644 --- a/yuuna/lib/src/models/app_model.dart +++ b/yuuna/lib/src/models/app_model.dart @@ -2275,6 +2275,10 @@ class AppModel with ChangeNotifier { ); _isCreatorOpen = false; + + if (killOnPop) { + shutdown(); + } } /// Whether or not the media item should be killed upon exit. diff --git a/yuuna/pubspec.yaml b/yuuna/pubspec.yaml index 4af41f328..77fb048e5 100644 --- a/yuuna/pubspec.yaml +++ b/yuuna/pubspec.yaml @@ -1,7 +1,7 @@ name: yuuna description: A full-featured immersion language learning suite for mobile. publish_to: 'none' -version: 2.6.2+72 +version: 2.6.3+73 environment: sdk: ">=2.17.0 <3.0.0"