Skip to content

Commit

Permalink
Pitch missing theme in reader
Browse files Browse the repository at this point in the history
  • Loading branch information
arianneorpilla committed Mar 16, 2023
1 parent 48b613f commit 9de0fbd
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions yuuna/lib/src/language/implementations/japanese_language.dart
Original file line number Diff line number Diff line change
Expand Up @@ -161,19 +161,22 @@ class JapaneseLanguage extends Language {
}) {
List<Widget> listWidgets = [];

Color foregroundColor = Theme.of(context).appBarTheme.foregroundColor!;
Color color = Theme.of(context).brightness == Brightness.dark
? Colors.white
: Colors.black;

Widget getAccentTop(String text) {
return Container(
padding: const EdgeInsets.only(top: 1),
decoration: BoxDecoration(
border: Border(
top: BorderSide(color: foregroundColor),
top: BorderSide(color: color),
),
),
child: Text(
text,
style: TextStyle(
color: color,
fontSize: appModel.dictionaryFontSize,
),
),
Expand All @@ -185,13 +188,14 @@ class JapaneseLanguage extends Language {
padding: const EdgeInsets.only(top: 1),
decoration: BoxDecoration(
border: Border(
top: BorderSide(color: foregroundColor),
right: BorderSide(color: foregroundColor),
top: BorderSide(color: color),
right: BorderSide(color: color),
),
),
child: Text(
text,
style: TextStyle(
color: color,
fontSize: appModel.dictionaryFontSize,
),
),
Expand All @@ -209,6 +213,7 @@ class JapaneseLanguage extends Language {
child: Text(
text,
style: TextStyle(
color: color,
fontSize: appModel.dictionaryFontSize,
),
),
Expand Down Expand Up @@ -258,6 +263,7 @@ class JapaneseLanguage extends Language {
Text(
' [$downstep] ',
style: TextStyle(
color: color,
fontSize: appModel.dictionaryFontSize,
),
),
Expand Down

0 comments on commit 9de0fbd

Please sign in to comment.