compose: about: Initial migration

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
Aayush Gupta
2025-09-18 15:12:20 +05:30
parent 620ca9cc48
commit 8212566dbf
17 changed files with 407 additions and 470 deletions

View File

@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ SPDX-FileCopyrightText: SVG Repo
~ SPDX-License-Identifier: CC0-1.0
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="200dp"
android:height="200dp"
android:autoMirrored="true"
android:viewportWidth="1024"
android:viewportHeight="1024">
<path
android:fillColor="#2196F3"
android:pathData="M512,512m-448,0a448,448 0,1 0,896 0,448 448,0 1,0 -896,0Z" />
<path
android:fillColor="#FFFFFF"
android:pathData="M469.3,469.3h85.3v234.7h-85.3z" />
<path
android:fillColor="#FFFFFF"
android:pathData="M512,352m-53.3,0a53.3,53.3 0,1 0,106.7 0,53.3 53.3,0 1,0 -106.7,0Z" />
</vector>

View File

@@ -1,12 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ SPDX-FileCopyrightText: SVG Repo
~ SPDX-License-Identifier: CC0-1.0
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:autoMirrored="true"
android:tint="?colorAccent"
android:viewportWidth="960"
android:viewportHeight="960">
android:width="200dp"
android:height="200dp"
android:viewportWidth="1024"
android:viewportHeight="1024">
<path
android:fillColor="@android:color/white"
android:pathData="M478,720Q499,720 513.5,705.5Q528,691 528,670Q528,649 513.5,634.5Q499,620 478,620Q457,620 442.5,634.5Q428,649 428,670Q428,691 442.5,705.5Q457,720 478,720ZM442,566L516,566Q516,533 523.5,514Q531,495 566,462Q592,436 607,412.5Q622,389 622,356Q622,300 581,270Q540,240 484,240Q427,240 391.5,270Q356,300 342,342L408,368Q413,350 430.5,329Q448,308 484,308Q516,308 532,325.5Q548,343 548,364Q548,384 536,401.5Q524,419 506,434Q462,473 452,493Q442,513 442,566ZM480,880Q397,880 324,848.5Q251,817 197,763Q143,709 111.5,636Q80,563 80,480Q80,397 111.5,324Q143,251 197,197Q251,143 324,111.5Q397,80 480,80Q563,80 636,111.5Q709,143 763,197Q817,251 848.5,324Q880,397 880,480Q880,563 848.5,636Q817,709 763,763Q709,817 636,848.5Q563,880 480,880ZM480,800Q614,800 707,707Q800,614 800,480Q800,346 707,253Q614,160 480,160Q346,160 253,253Q160,346 160,480Q160,614 253,707Q346,800 480,800ZM480,480Q480,480 480,480Q480,480 480,480Q480,480 480,480Q480,480 480,480Q480,480 480,480Q480,480 480,480Q480,480 480,480Q480,480 480,480Z" />
android:pathData="M768,938.7H170.7V170.7h426.7l170.7,170.7z"
android:fillColor="#42A5F5"/>
<path
android:pathData="M853.3,853.3H256V85.3h426.7l170.7,170.7z"
android:fillColor="#90CAF9"/>
<path
android:pathData="M821.3,277.3H661.3V117.3z"
android:fillColor="#E1F5FE"/>
<path
android:pathData="M522.7,603.7c0,-100.3 76.8,-93.9 76.8,-153.6 0,-14.9 -4.3,-44.8 -42.7,-44.8 -42.7,0 -44.8,34.1 -44.8,42.7h-57.6c0,-14.9 6.4,-89.6 102.4,-89.6 98.1,0 100.3,76.8 100.3,91.7 0,74.7 -81.1,85.3 -81.1,155.7h-53.3zM518.4,678.4c0,-4.3 0,-32 32,-32 29.9,0 32,27.7 32,32 0,8.5 -4.3,29.9 -32,29.9s-32,-21.3 -32,-29.9z"
android:fillColor="#1976D2"/>
</vector>

View File

@@ -1,102 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Aurora Store
~ Copyright (C) 2021, Rahul Kumar Patel <whyorean@gmail.com>
~
~ Aurora Store is free software: you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation, either version 2 of the License, or
~ (at your option) any later version.
~
~ Aurora Store is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU General Public License for more details.
~
~ You should have received a copy of the GNU General Public License
~ along with Aurora Store. If not, see <http://www.gnu.org/licenses/>.
~
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".view.ui.about.AboutFragment">
<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="?attr/actionBarSize"
app:navigationIcon="@drawable/ic_arrow_back"
app:title="@string/title_about" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
android:weightSum="2">
<RelativeLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:orientation="vertical">
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/img_icon"
android:layout_width="@dimen/icon_size_avatar"
android:layout_height="@dimen/icon_size_avatar"
android:layout_centerHorizontal="true"
android:layout_marginTop="@dimen/margin_xlarge"
android:minWidth="176dp"
app:srcCompat="@drawable/bg_placeholder" />
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/line1"
style="@style/TextAppearance.Aurora.Title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/img_icon"
android:layout_centerHorizontal="true"
android:text="@string/app_name" />
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/line2"
style="@style/TextAppearance.Aurora.Line1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/line1"
android:layout_centerHorizontal="true"
android:gravity="center_vertical"
tools:text="4.0.1" />
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/line3"
style="@style/TextAppearance.Aurora.Line3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/line2"
android:layout_centerHorizontal="true"
android:textAlignment="center" />
</RelativeLayout>
<com.airbnb.epoxy.EpoxyRecyclerView
android:id="@+id/epoxy_recycler"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:clipToPadding="false"
android:orientation="vertical"
android:overScrollMode="never"
android:paddingStart="@dimen/padding_normal"
android:paddingEnd="@dimen/padding_normal"
app:itemSpacing="@dimen/margin_small"
tools:listitem="@layout/view_link" />
</LinearLayout>
</LinearLayout>

View File

@@ -1,92 +0,0 @@
<?xml version="1.0" encoding="utf-8"?><!--
~ Aurora Store
~ Copyright (C) 2021, Rahul Kumar Patel <whyorean@gmail.com>
~
~ Aurora Store is free software: you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation, either version 2 of the License, or
~ (at your option) any later version.
~
~ Aurora Store is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU General Public License for more details.
~
~ You should have received a copy of the GNU General Public License
~ along with Aurora Store. If not, see <http://www.gnu.org/licenses/>.
~
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:weightSum="3"
tools:context=".view.ui.about.AboutFragment">
<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="?attr/actionBarSize"
app:navigationIcon="@drawable/ic_arrow_back"
app:title="@string/title_about" />
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/img_icon"
android:layout_width="@dimen/icon_size"
android:layout_height="@dimen/icon_size"
android:layout_centerHorizontal="true"
android:layout_marginTop="@dimen/margin_small"
app:srcCompat="@drawable/bg_placeholder" />
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/line1"
style="@style/TextAppearance.Aurora.Title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/img_icon"
android:layout_centerHorizontal="true"
android:text="@string/app_name" />
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/line2"
style="@style/TextAppearance.Aurora.Line1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/line1"
android:layout_centerHorizontal="true"
tools:text="4.0.1 (30)" />
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/line3"
style="@style/TextAppearance.Aurora.Line3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/line2"
android:layout_centerHorizontal="true"
android:layout_marginBottom="@dimen/margin_small"
android:textAlignment="center" />
</RelativeLayout>
<com.airbnb.epoxy.EpoxyRecyclerView
android:id="@+id/epoxy_recycler"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clipToPadding="false"
android:orientation="vertical"
android:overScrollMode="never"
android:paddingHorizontal="@dimen/padding_small"
android:paddingTop="@dimen/padding_small"
android:paddingBottom="@dimen/height_bottom_adj"
app:itemSpacing="@dimen/margin_small"
tools:listitem="@layout/view_link" />
</LinearLayout>

View File

@@ -1,75 +0,0 @@
<?xml version="1.0" encoding="utf-8"?><!--
~ Aurora Store
~ Copyright (C) 2021, Rahul Kumar Patel <whyorean@gmail.com>
~
~ Aurora Store is free software: you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation, either version 2 of the License, or
~ (at your option) any later version.
~
~ Aurora Store is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU General Public License for more details.
~
~ You should have received a copy of the GNU General Public License
~ along with Aurora Store. If not, see <http://www.gnu.org/licenses/>.
~
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?android:selectableItemBackground"
android:orientation="horizontal"
android:padding="@dimen/padding_small">
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/img_icon"
android:layout_width="@dimen/icon_size_default"
android:layout_height="@dimen/icon_size_default"
android:layout_gravity="center_vertical"
tools:src="@drawable/ic_menu_about" />
<View
android:layout_width="@dimen/margin_xxsmall"
android:layout_height="match_parent"
android:layout_marginStart="@dimen/margin_xlarge"
android:layout_marginEnd="@dimen/margin_xlarge"
android:background="@drawable/divider_line"
android:backgroundTint="?colorControlHighlight" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<com.google.android.material.textview.MaterialTextView
android:id="@+id/line1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:singleLine="true"
android:textAppearance="@style/TextAppearance.Aurora.SubTitle"
tools:text="Title" />
<com.google.android.material.textview.MaterialTextView
android:id="@+id/line2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:maxLines="2"
android:textAppearance="@style/TextAppearance.Aurora.Line2"
tools:text="Subtitle" />
<com.google.android.material.textview.MaterialTextView
android:id="@+id/line3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:maxLines="2"
android:textAppearance="@style/TextAppearance.Aurora.Line3"
android:textColor="?colorAccent"
android:textIsSelectable="true"
android:visibility="gone"
tools:text="Link" />
</LinearLayout>
</LinearLayout>

View File

@@ -56,11 +56,6 @@
android:name="com.aurora.store.view.ui.updates.UpdatesFragment"
android:label="@string/title_updates"
tools:layout="@layout/fragment_updates" />
<fragment
android:id="@+id/aboutFragment"
android:name="com.aurora.store.view.ui.about.AboutFragment"
android:label="@string/title_about"
tools:layout="@layout/fragment_about" />
<fragment
android:id="@+id/appsGamesFragment"
android:name="com.aurora.store.view.ui.all.AppsGamesFragment"