Update: 2026-05-15 03:27:21
This commit is contained in:
@@ -211,6 +211,15 @@
|
||||
android:backgroundTint="#2A2A4A"
|
||||
android:text="💳 إدارة الاشتراكات"
|
||||
android:textColor="#FFFFFF"
|
||||
android:layout_marginBottom="8dp" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_settings"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="48dp"
|
||||
android:backgroundTint="#2A2A4A"
|
||||
android:text="⚙️ الإعدادات والفلاتر"
|
||||
android:textColor="#FFFFFF"
|
||||
android:layout_marginBottom="24dp" />
|
||||
|
||||
<!-- Launch Button -->
|
||||
|
||||
170
app/src/main/res/layout/activity_settings.xml
Normal file
170
app/src/main/res/layout/activity_settings.xml
Normal file
@@ -0,0 +1,170 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="?attr/colorSurface"
|
||||
android:fillViewport="true">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:padding="24dp">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:text="⚙️ الإعدادات"
|
||||
android:textColor="?attr/colorPrimary"
|
||||
android:textSize="32sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="32dp"
|
||||
android:text="تخصيص فلاتر البوت والمظهر"
|
||||
android:textColor="?attr/colorOnSurface"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<!-- Filters Section -->
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:text="فلاتر الطلبات"
|
||||
android:textColor="?attr/colorOnSurface"
|
||||
android:textSize="18sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/bg_card"
|
||||
android:orientation="vertical"
|
||||
android:padding="16dp"
|
||||
android:layout_marginBottom="24dp">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="الحد الأدنى للسعر (JOD)"
|
||||
android:textColor="?attr/colorOnSurface" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/et_min_price"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:inputType="numberDecimal"
|
||||
android:text="1.0"
|
||||
android:textColor="?attr/colorOnSurface"
|
||||
android:layout_marginBottom="16dp" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="أقصى وقت لوصول السائق (بالدقائق)"
|
||||
android:textColor="?attr/colorOnSurface" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/et_max_minutes"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:inputType="number"
|
||||
android:text="10"
|
||||
android:textColor="?attr/colorOnSurface"
|
||||
android:layout_marginBottom="16dp" />
|
||||
|
||||
<Switch
|
||||
android:id="@+id/switch_auto_accept"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="تفعيل القبول التلقائي"
|
||||
android:textColor="?attr/colorOnSurface"
|
||||
android:checked="true" />
|
||||
</LinearLayout>
|
||||
|
||||
<!-- Supported Apps Section -->
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:text="التطبيقات المفعلة"
|
||||
android:textColor="?attr/colorOnSurface"
|
||||
android:textSize="18sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/bg_card"
|
||||
android:orientation="vertical"
|
||||
android:padding="16dp"
|
||||
android:layout_marginBottom="24dp">
|
||||
|
||||
<CheckBox
|
||||
android:id="@+id/cb_uber"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Uber (أوبر)"
|
||||
android:textColor="?attr/colorOnSurface"
|
||||
android:checked="true" />
|
||||
|
||||
<CheckBox
|
||||
android:id="@+id/cb_careem"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Careem (كريم)"
|
||||
android:textColor="?attr/colorOnSurface"
|
||||
android:checked="true" />
|
||||
|
||||
<CheckBox
|
||||
android:id="@+id/cb_jeeny"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Jeeny (جيني)"
|
||||
android:textColor="?attr/colorOnSurface"
|
||||
android:checked="true" />
|
||||
</LinearLayout>
|
||||
|
||||
<!-- Appearance Section -->
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:text="المظهر"
|
||||
android:textColor="?attr/colorOnSurface"
|
||||
android:textSize="18sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/bg_card"
|
||||
android:orientation="vertical"
|
||||
android:padding="16dp"
|
||||
android:layout_marginBottom="24dp">
|
||||
|
||||
<Switch
|
||||
android:id="@+id/switch_dark_mode"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="الوضع الليلي (Dark Mode)"
|
||||
android:textColor="?attr/colorOnSurface"
|
||||
android:checked="true" />
|
||||
</LinearLayout>
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_save_settings"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="56dp"
|
||||
android:background="@drawable/bg_button_primary"
|
||||
android:text="💾 حفظ الإعدادات"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="18sp"
|
||||
android:textStyle="bold"
|
||||
android:layout_marginBottom="24dp" />
|
||||
|
||||
</LinearLayout>
|
||||
</ScrollView>
|
||||
@@ -1,14 +1,35 @@
|
||||
<resources xmlns:tools="http://schemas.android.com/tools">
|
||||
<style name="Theme.JordanBot" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
|
||||
<!-- Primary brand color. -->
|
||||
<item name="colorPrimary">#6200EE</item>
|
||||
<item name="colorPrimaryVariant">#3700B3</item>
|
||||
<item name="colorOnPrimary">#FFFFFF</item>
|
||||
<!-- Secondary brand color. -->
|
||||
<item name="colorSecondary">#03DAC5</item>
|
||||
<item name="colorSecondaryVariant">#018786</item>
|
||||
<item name="colorOnSecondary">#000000</item>
|
||||
<!-- Status bar color. -->
|
||||
<item name="android:statusBarColor">?attr/colorPrimaryVariant</item>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<style name="Theme.JordanBot" parent="Theme.AppCompat.DayNight.NoActionBar">
|
||||
<!-- Default mapping to Dark since we rely on system DayNight or override it -->
|
||||
<item name="colorPrimary">#00D4AA</item>
|
||||
<item name="colorPrimaryDark">#00B894</item>
|
||||
<item name="colorAccent">#00D4AA</item>
|
||||
<item name="colorSurface">#1A1A2E</item>
|
||||
<item name="colorOnSurface">#FFFFFF</item>
|
||||
<item name="android:windowBackground">#0F0F1A</item>
|
||||
<item name="android:textColor">#FFFFFF</item>
|
||||
</style>
|
||||
|
||||
<style name="Theme.JordanBot.Light" parent="Theme.AppCompat.Light.NoActionBar">
|
||||
<item name="colorPrimary">#00B894</item>
|
||||
<item name="colorPrimaryDark">#009688</item>
|
||||
<item name="colorAccent">#00B894</item>
|
||||
<item name="colorSurface">#FFFFFF</item>
|
||||
<item name="colorOnSurface">#1A1A2E</item>
|
||||
<item name="android:windowBackground">#F5F5F5</item>
|
||||
<item name="android:textColor">#1A1A2E</item>
|
||||
</style>
|
||||
|
||||
<style name="Theme.JordanBot.Dark" parent="Theme.AppCompat.NoActionBar">
|
||||
<item name="colorPrimary">#00D4AA</item>
|
||||
<item name="colorPrimaryDark">#00B894</item>
|
||||
<item name="colorAccent">#00D4AA</item>
|
||||
<item name="colorSurface">#1A1A2E</item>
|
||||
<item name="colorOnSurface">#FFFFFF</item>
|
||||
<item name="android:windowBackground">#0F0F1A</item>
|
||||
<item name="android:textColor">#FFFFFF</item>
|
||||
</style>
|
||||
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user