Skip to content

Commit

Permalink
chore: Improve code style
Browse files Browse the repository at this point in the history
  • Loading branch information
XMLHexagram committed Jan 4, 2025
1 parent 6d085c9 commit ed5b8f6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ void main(List<String> arguments) async {
final isWindows10 = windowsInfo.productName.startsWith('Windows 10');
isWindows11 = windowsInfo.productName.startsWith('Windows 11');

if (isWindows10 && appTheme.windowEffect == WindowEffect.mica) {
if ((isWindows10 && appTheme.windowEffect == WindowEffect.mica) ||
Platform.isIOS) {
appTheme.windowEffect = WindowEffect.solid;
}
} catch (e) {
Expand Down Expand Up @@ -390,7 +391,7 @@ class _RuneState extends State<Rune> {
final theme = FluentTheme.of(context);

Widget content = Container(
color: (appTheme.windowEffect == WindowEffect.solid || Platform.isIOS)
color: appTheme.windowEffect == WindowEffect.solid
? theme.micaBackgroundColor
: Colors.transparent,
child: Directionality(
Expand Down

0 comments on commit ed5b8f6

Please sign in to comment.