修复:AVNC原生界面与Flutter界面样式不符

1.更新Android端material库为1.11.0
2.在Android端启用动态颜色
3.更改主题样式为Material3
4.为两个原生页面启用边倒边沉浸
5.修改Android端项目名称为TinyComputer(顺手改了, 默认为android)
This commit is contained in:
王泳淇
2024-04-02 14:57:50 +08:00
parent 3e443ceedc
commit d0a539d6dc
9 changed files with 45 additions and 11 deletions

View File

@@ -31,29 +31,29 @@
Note: Some custom ROMs don't respect/support the splash theme introduced in API 31.
On such devices, we still rely on the above mentioned workaround.
-->
<style name="App.SplashTheme" parent="Theme.MaterialComponents.DayNight.NoActionBar" />
<style name="App.SplashTheme" parent="Theme.Material3.DayNight.NoActionBar" />
<style name="App.SplashTheme.Light" parent="Theme.MaterialComponents.Light.NoActionBar" />
<style name="App.SplashTheme.Light" parent="Theme.Material3.Light.NoActionBar" />
<style name="App.SplashTheme.Dark" parent="Theme.MaterialComponents.NoActionBar" />
<style name="App.SplashTheme.Dark" parent="Theme.Material3.Dark.NoActionBar" />
<!--
This base theme is used for configuration-specific styling (e.g. night mode, API 23)
-->
<style name="App.BaseTheme" parent="Theme.MaterialComponents.DayNight.NoActionBar" />
<style name="App.BaseTheme" parent="Theme.Material3.DayNight.NoActionBar" />
<!--
This is the main theme.
-->
<style name="App.Theme" parent="App.BaseTheme">
<item name="appBarLayoutStyle">@style/Widget.MaterialComponents.AppBarLayout.Surface</item>
<item name="appBarLayoutStyle">@style/Widget.Material3.AppBarLayout</item>
</style>
<style name="AlertDialog.Dimmed" parent="ThemeOverlay.MaterialComponents.MaterialAlertDialog">
<style name="AlertDialog.Dimmed" parent="ThemeOverlay.Material3.MaterialAlertDialog">
<item name="android:backgroundDimAmount">.6</item>
</style>
<style name="UrlBar" parent="Widget.MaterialComponents.Toolbar">
<style name="UrlBar" parent="Widget.Material3.Toolbar">
<item name="android:background">@drawable/bg_urlbar</item>
<item name="android:layout_marginStart">@dimen/margin_normal</item>
<item name="android:layout_marginEnd">@dimen/margin_normal</item>
@@ -138,7 +138,7 @@
<item name="android:minWidth">50dp</item>
<item name="android:gravity">center</item>
<item name="android:background">?attr/selectableItemBackgroundBorderless</item>
<item name="android:textAppearance">@style/TextAppearance.MaterialComponents.Body2</item>
<item name="android:textAppearance">@style/TextAppearance.Material3.BodyMedium</item>
</style>
<style name="VirtualKey.Compact">