Skip to content

Commit 2d8d1b0

Browse files
committed
make switch smaller
Signed-off-by: alperozturk <alper_ozturk@proton.me>
1 parent 76ca0e6 commit 2d8d1b0

File tree

2 files changed

+26
-10
lines changed

2 files changed

+26
-10
lines changed

app/src/main/res/layout/internal_two_way_sync_layout.xml

Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,37 @@
55
~ SPDX-FileCopyrightText: 2024 Tobias Kaminsky <tobias@kaminsky.me>
66
~ SPDX-License-Identifier: AGPL-3.0-or-later
77
-->
8-
<LinearLayout
9-
xmlns:android="http://schemas.android.com/apk/res/android"
8+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
109
xmlns:tools="http://schemas.android.com/tools"
10+
xmlns:app="http://schemas.android.com/apk/res-auto"
1111
android:orientation="vertical"
1212
android:layout_width="match_parent"
1313
android:layout_height="match_parent">
1414

15-
<com.google.android.material.materialswitch.MaterialSwitch
16-
android:id="@+id/twoWaySyncToggle"
17-
android:layout_marginStart="@dimen/standard_half_padding"
18-
android:text="@string/prefs_two_way_sync"
19-
android:textSize="@dimen/splash_text_size"
20-
android:layout_width="wrap_content"
15+
<LinearLayout
16+
android:layout_gravity="center"
17+
android:layout_marginTop="@dimen/alternate_margin"
2118
android:layout_marginBottom="@dimen/alternate_margin"
22-
android:layout_height="wrap_content" />
19+
android:layout_marginHorizontal="@dimen/standard_half_padding"
20+
android:orientation="horizontal"
21+
android:layout_width="match_parent"
22+
android:layout_height="wrap_content">
23+
24+
<com.google.android.material.textview.MaterialTextView
25+
android:text="@string/prefs_two_way_sync_switch_title"
26+
android:textSize="@dimen/txt_size_16sp"
27+
android:layout_weight="9"
28+
android:layout_width="0dp"
29+
android:layout_height="wrap_content"/>
30+
31+
<com.google.android.material.materialswitch.MaterialSwitch
32+
android:id="@+id/twoWaySyncToggle"
33+
android:scaleX="0.7"
34+
android:scaleY="0.7"
35+
android:layout_width="wrap_content"
36+
android:layout_height="wrap_content" />
37+
38+
</LinearLayout>
2339

2440
<com.google.android.material.textfield.TextInputLayout
2541
android:id="@+id/two_way_sync_interval_layout"

app/src/main/res/values/strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
<string name="prefs_value_theme_dark">Dark</string>
116116
<string name="prefs_value_theme_system">Follow system</string>
117117
<string name="prefs_theme_title">Theme</string>
118-
<string name="prefs_two_way_sync">Two Way Sync</string>
118+
<string name="prefs_two_way_sync_switch_title">Enable Sync</string>
119119
<string name="prefs_two_way_sync_interval">Interval</string>
120120

121121
<string name="two_way_sync_interval_15_min">15 minutes</string>

0 commit comments

Comments
 (0)