Skip to content

Commit

Permalink
change interface in dark theme
Browse files Browse the repository at this point in the history
  • Loading branch information
kidozh committed Aug 9, 2024
1 parent c9a5c9a commit 361a3bc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 9 additions & 2 deletions lib/widget/ForumThreadWidget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -592,12 +592,19 @@ class ForumThreadState extends State<ForumThreadStatefulWidget>{
return Container(
child: Card(
elevation: 4.0,
color: Theme.of(context).brightness == Brightness.light? Colors.white: Colors.white10,
surfaceTintColor: Theme.of(context).brightness == Brightness.light? Colors.white: Colors.white10,
child: Padding(
padding: EdgeInsets.all(8.0),
padding: EdgeInsets.symmetric(vertical: 8.0, horizontal: 16),
child: Column(
mainAxisSize: MainAxisSize.max,
children: [
Text(S.of(context).contentPostByBlockUserTitle(_forumThread.author),style:Theme.of(context).textTheme.titleLarge),
Text(S.of(context).contentPostByBlockUserTitle(_forumThread.author),
style:TextStyle(
fontSize: FontSize.large.value,
color: Theme.of(context).textTheme.titleMedium?.color,
)
),
Row(
mainAxisSize: MainAxisSize.min,
children: [
Expand Down
2 changes: 1 addition & 1 deletion lib/widget/PostWidget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ class PostState extends State<PostStatefulWidget> {
material: (_, child, platform) => Card(
//surfaceTintColor: Theme.of(context).colorScheme.background,
surfaceTintColor: Theme.of(context).brightness == Brightness.light? Colors.white: Colors.black38,
color: Theme.of(context).brightness == Brightness.light? Colors.white70: Colors.white24,
color: Theme.of(context).brightness == Brightness.light? Colors.white: Colors.white24,
elevation: _post.first ? 0 : 8.0,
child: Padding(
padding: EdgeInsets.symmetric(horizontal: 4.0, vertical: 12.0),
Expand Down

0 comments on commit 361a3bc

Please sign in to comment.