更新界面

This commit is contained in:
HapeLee committed 2025-07-08 14:52:02 +08:00
1 parent 9e6ed4a770
commit 3516af6a9f
6 files changed
+114 -38

No files matched your search

@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:padding="24dp"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/edit_account"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/web_dav_account" />
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:endIconMode="password_toggle">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/edit_password"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/web_dav_pw"
android:inputType="textPassword" />
</com.google.android.material.textfield.TextInputLayout>
</LinearLayout>
-5
View File
@@ -8,11 +8,6 @@
<item name="android:windowBackground">@android:color/transparent</item>
</style>
<!-- Welcome主题 -->
<style name="AppTheme.Welcome" parent="Base.AppTheme">
<item name="android:windowNoTitle">true</item>
</style>
<style name="Base.AppTheme" parent="Theme.Material3.DynamicColors.DayNight.NoActionBar">
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
<item name="android:windowLightStatusBar">true</item>
+9 -9
View File
@@ -15,16 +15,10 @@
android:summary="@string/web_dav_url_s"
app:iconSpaceReserved="false" />
<io.legato.kazusa.lib.prefs.EditTextPreference
android:key="web_dav_account"
<io.legato.kazusa.lib.prefs.Preference
android:key="web_dav_auth"
android:title="@string/web_dav_account"
android:summary="@string/web_dav_account_s"
app:iconSpaceReserved="false" />
<io.legato.kazusa.lib.prefs.EditTextPreference
android:key="web_dav_password"
android:title="@string/web_dav_pw"
android:summary="@string/web_dav_pw_s"
android:summary="设置 WebDAV 账号和密码"
app:iconSpaceReserved="false" />
<io.legato.kazusa.lib.prefs.EditTextPreference
@@ -41,6 +35,12 @@
app:allowDividerBelow="false"
app:iconSpaceReserved="false" />
<io.legato.kazusa.lib.prefs.Preference
android:key="web_dav_test"
android:title="测试 WebDav 配置"
android:summary="测试 WebDav 服务工作状态"
app:iconSpaceReserved="false"/>
<io.legato.kazusa.lib.prefs.SwitchPreference
android:key="syncBookProgress"
android:defaultValue="true"