Emphasize artworks from following artists

This commit is contained in:
wgh19
2024-06-14 12:38:50 +08:00
parent 21fe14f88b
commit 790ed54d5b
4 changed files with 30 additions and 2 deletions

View File

@@ -1,4 +1,5 @@
import 'package:fluent_ui/fluent_ui.dart';
import 'package:pixes/appdata.dart';
import 'package:pixes/components/animated_image.dart';
import 'package:pixes/foundation/app.dart';
import 'package:pixes/foundation/history.dart';
@@ -70,6 +71,15 @@ class _IllustWidgetState extends State<IllustWidget> {
child: Card(
padding: EdgeInsets.zero,
margin: EdgeInsets.zero,
borderColor: () {
return widget.illust.author.isFollowed &&
appdata.settings[
'emphasizeArtworksFromFollowingArtists']
? ColorScheme.of(context).primary
: ColorScheme.of(context)
.outlineVariant
.withOpacity(0.64);
}(),
child: GestureDetector(
onTap: widget.onTap ??
() {