improve settings items

This commit is contained in:
sk 2022-12-23 21:35:16 +01:00
parent f55bd6d6cd
commit c4ad325e5c
4 changed files with 20 additions and 14 deletions

View File

@ -1,11 +1,10 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:orientation="horizontal" android:orientation="horizontal"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="48dp" android:layout_height="wrap_content"
android:paddingHorizontal="16dp" android:minHeight="48dp"
android:gravity="center_vertical" android:gravity="center_vertical"
android:layoutDirection="locale"> android:layoutDirection="locale">
@ -13,6 +12,7 @@
android:id="@+id/icon" android:id="@+id/icon"
android:layout_width="24dp" android:layout_width="24dp"
android:layout_height="24dp" android:layout_height="24dp"
android:layout_marginStart="16dp"
android:layout_marginEnd="32dp" android:layout_marginEnd="32dp"
android:importantForAccessibility="no" android:importantForAccessibility="no"
android:tint="?android:textColorPrimary" android:tint="?android:textColorPrimary"
@ -21,10 +21,11 @@
<TextView <TextView
android:id="@+id/text" android:id="@+id/text"
android:layout_height="wrap_content"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
android:layout_marginEnd="8dp" android:layout_marginEnd="8dp"
android:paddingVertical="8dp"
android:gravity="center_vertical" android:gravity="center_vertical"
android:textColor="?android:textColorPrimary" android:textColor="?android:textColorPrimary"
android:textSize="16sp" /> android:textSize="16sp" />
@ -33,6 +34,9 @@
android:id="@+id/button" android:id="@+id/button"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="32dp" android:layout_height="32dp"
android:layout_weight="0"
android:layout_marginEnd="16dp"
android:maxWidth="140dp"
android:background="@drawable/bg_inline_button" android:background="@drawable/bg_inline_button"
android:elevation="0dp" android:elevation="0dp"
android:ellipsize="middle" android:ellipsize="middle"

View File

@ -3,7 +3,8 @@
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:orientation="horizontal" android:orientation="horizontal"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="48dp" android:layout_height="wrap_content"
android:minHeight="48dp"
android:gravity="center_vertical" android:gravity="center_vertical"
android:layoutDirection="locale"> android:layoutDirection="locale">
@ -22,6 +23,7 @@
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
android:paddingVertical="8dp"
android:textSize="16sp" android:textSize="16sp"
android:textColor="?android:textColorPrimary" android:textColor="?android:textColorPrimary"
tools:text="@string/theme_true_black"/> tools:text="@string/theme_true_black"/>

View File

@ -5,6 +5,7 @@
android:paddingHorizontal="16dp" android:paddingHorizontal="16dp"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:minHeight="48dp"
android:gravity="center_vertical" android:gravity="center_vertical"
android:layoutDirection="locale"> android:layoutDirection="locale">
<TextView <TextView
@ -12,7 +13,6 @@
android:layout_width="0dp" android:layout_width="0dp"
android:layout_weight="1" android:layout_weight="1"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:minHeight="48dp"
android:paddingVertical="8dp" android:paddingVertical="8dp"
android:paddingEnd="16dp" android:paddingEnd="16dp"
android:gravity="center_vertical" android:gravity="center_vertical"

View File

@ -38,7 +38,7 @@
<string name="sk_disable_marquee">Laufschrift in Titelleisten deaktivieren</string> <string name="sk_disable_marquee">Laufschrift in Titelleisten deaktivieren</string>
<string name="sk_settings_contribute">Zu Megalodon beitragen</string> <string name="sk_settings_contribute">Zu Megalodon beitragen</string>
<string name="sk_settings_show_federated_timeline">Föderierte Timeline anzeigen</string> <string name="sk_settings_show_federated_timeline">Föderierte Timeline anzeigen</string>
<string name="sk_notify_posts">Beitrags-Benachrichtigungen</string> <string name="sk_notify_posts">Beitrags-Benachrichtigungen</string>
<string name="sk_settings_color_palette">Farbschema</string> <string name="sk_settings_color_palette">Farbschema</string>
<string name="sk_color_palette_pink">Pink</string> <string name="sk_color_palette_pink">Pink</string>
<string name="sk_color_palette_purple">Violett</string> <string name="sk_color_palette_purple">Violett</string>
@ -58,13 +58,13 @@
<string name="sk_clear_recent_languages">Zuletzt verwendete Sprachen leeren</string> <string name="sk_clear_recent_languages">Zuletzt verwendete Sprachen leeren</string>
<string name="sk_welcome_title">Willkommen!</string> <string name="sk_welcome_title">Willkommen!</string>
<string name="sk_example_domain">beispiel.social</string> <string name="sk_example_domain">beispiel.social</string>
<string name="sk_welcome_text">Der Hai sagt Hi! Um anzufangen, bitte gib den Domain-Namen deiner Heim-Instanz unten ein.</string> <string name="sk_welcome_text">Der Hai sagt Hi! Um anzufangen, bitte gib den Domain-Namen deiner Heim-Instanz unten ein.</string>
<string name="sk_color_palette_material3">System</string> <string name="sk_color_palette_material3">System</string>
<string name="sk_color_palette_red">Rot</string> <string name="sk_color_palette_red">Rot</string>
<string name="sk_settings_profile">Profil einrichten</string> <string name="sk_settings_profile">Profil einrichten</string>
<string name="sk_settings_posting">Einstellungen für Beiträge</string> <string name="sk_settings_posting">Einstellungen für Beiträge</string>
<string name="sk_settings_filters">Filter konfigurieren</string> <string name="sk_settings_filters">Filter konfigurieren</string>
<string name="sk_settings_auth">Sicherheitseinstellungen</string> <string name="sk_settings_auth">Sicherheits-Einstellungen</string>
<string name="sk_settings_rules">Regelwerk</string> <string name="sk_settings_rules">Regelwerk</string>
<string name="sk_settings_about">Über die App</string> <string name="sk_settings_about">Über die App</string>
<string name="sk_settings_donate">Spenden</string> <string name="sk_settings_donate">Spenden</string>
@ -73,13 +73,13 @@
<string name="sk_delete_notification_confirm">Benachrichtigung wirklich löschen\?</string> <string name="sk_delete_notification_confirm">Benachrichtigung wirklich löschen\?</string>
<string name="sk_clear_all_notifications_confirm_action">Alle löschen</string> <string name="sk_clear_all_notifications_confirm_action">Alle löschen</string>
<string name="sk_enable_delete_notifications">Löschen von Benachrichtigungen aktivieren</string> <string name="sk_enable_delete_notifications">Löschen von Benachrichtigungen aktivieren</string>
<string name="sk_settings_publish_button_text">Veröffentlichen-Button-Text</string> <string name="sk_settings_publish_button_text">Veröffentlichen-Button-Text</string>
<string name="sk_settings_hide_translate_in_timeline">Übersetzen-Button in der Timeline ausblenden</string> <string name="sk_settings_hide_translate_in_timeline">Übersetzen-Button in der Timeline ausblenden</string>
<string name="sk_delete_notification">Benachrichtigung löschen</string> <string name="sk_delete_notification">Benachrichtigung löschen</string>
<string name="sk_clear_all_notifications">Alle Benachrichtigungen löschen</string> <string name="sk_clear_all_notifications">Alle Benachrichtigungen löschen</string>
<string name="sk_settings_publish_button_text_title">Veröffentlichen-Button-Text anpassen</string> <string name="sk_settings_publish_button_text_title">Veröffentlichen-Button-Text anpassen</string>
<string name="sk_clear_all_notifications_confirm">Wirklich alle Benachrichtigungen löschen\?</string> <string name="sk_clear_all_notifications_confirm">Wirklich alle Benachrichtigungen löschen\?</string>
<string name="sk_settings_translation_availability_note_available">%s unterstützt Übersetzung!</string> <string name="sk_settings_translation_availability_note_available">%s unterstützt Übersetzung!</string>
<string name="sk_settings_translation_availability_note_unavailable">%s scheint keine Übersetzung zu unterstützen.</string> <string name="sk_settings_translation_availability_note_unavailable">%s scheint keine Übersetzung zu unterstützen.</string>
<string name="sk_loading_fediverse_resource_title">Es wird im Fediverse nachgeschlagen</string> <string name="sk_loading_fediverse_resource_title">Suche im Fediverse</string>
</resources> </resources>