mirror of
https://github.com/izzy2lost/PSX2.git
synced 2026-07-05 15:18:36 -07:00
theme stuff
This commit is contained in:
@@ -11,6 +11,7 @@ import android.os.Bundle;
|
||||
import android.text.TextUtils;
|
||||
import android.net.Uri;
|
||||
import android.view.InputDevice;
|
||||
import android.view.InputEvent;
|
||||
import android.view.KeyEvent;
|
||||
import android.view.MotionEvent;
|
||||
import android.view.View;
|
||||
@@ -88,6 +89,10 @@ public class MainActivity extends AppCompatActivity implements GamesCoverDialogF
|
||||
applyConstraintsForOrientation(newConfig.orientation);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private void applyConstraintsForOrientation(int orientation) {
|
||||
// Views present in both layouts
|
||||
View quick = findViewById(R.id.ll_quick_actions);
|
||||
@@ -365,6 +370,10 @@ public class MainActivity extends AppCompatActivity implements GamesCoverDialogF
|
||||
getOnBackPressedDispatcher().addCallback(this, callback);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private void makeButtonTouch() {
|
||||
MaterialButton btn_file = findViewById(R.id.btn_file);
|
||||
if(btn_file != null) {
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="960"
|
||||
android:viewportHeight="960"
|
||||
android:tint="?attr/colorControlNormal">
|
||||
<path
|
||||
android:fillColor="@android:color/white"
|
||||
android:pathData="M480,640L280,440L336,382L440,486L440,160L520,160L520,486L624,382L680,440L480,640ZM240,800Q207,800 183.5,776.5Q160,753 160,720L160,600L240,600L240,720Q240,720 240,720Q240,720 240,720L720,720Q720,720 720,720Q720,720 720,720L720,600L800,600L800,720Q800,753 776.5,776.5Q753,800 720,800L240,800Z"/>
|
||||
</vector>
|
||||
@@ -4,6 +4,86 @@
|
||||
android:height="512dp"
|
||||
android:viewportWidth="512"
|
||||
android:viewportHeight="512">
|
||||
|
||||
<!-- 0) BACKGROUND CIRCLE with radial gradient (bulge/lift) -->
|
||||
<path
|
||||
android:name="bg_circle"
|
||||
android:pathData="M256,16a240,240 0 1,1 0,480a240,240 0 1,1 0,-480z">
|
||||
<aapt:attr name="android:fillColor">
|
||||
<gradient
|
||||
android:type="radial"
|
||||
android:centerX="256"
|
||||
android:centerY="256"
|
||||
android:gradientRadius="260">
|
||||
<!-- center highlight -->
|
||||
<item android:offset="0" android:color="#FFE3F3FF"/>
|
||||
<item android:offset="0.55" android:color="#FF66CCFF"/>
|
||||
<!-- edge darker to imply curvature -->
|
||||
<item android:offset="1" android:color="#FF28397A"/>
|
||||
</gradient>
|
||||
</aapt:attr>
|
||||
</path>
|
||||
|
||||
<!-- 1) OUTER RIM (subtle edge darkening to enhance lift) -->
|
||||
<path
|
||||
android:name="outer_rim"
|
||||
android:pathData="M256,20a236,236 0 1,1 0,472a236,236 0 1,1 0,-472z"
|
||||
android:strokeWidth="8"
|
||||
android:fillColor="#00000000">
|
||||
<aapt:attr name="android:strokeColor">
|
||||
<gradient
|
||||
android:type="linear"
|
||||
android:startX="256"
|
||||
android:startY="16"
|
||||
android:endX="256"
|
||||
android:endY="496">
|
||||
<!-- lighter at top rim, darker at bottom rim -->
|
||||
<item android:offset="0" android:color="#40FFFFFF"/>
|
||||
<item android:offset="0.55" android:color="#10000000"/>
|
||||
<item android:offset="1" android:color="#40000000"/>
|
||||
</gradient>
|
||||
</aapt:attr>
|
||||
</path>
|
||||
|
||||
<!-- 2) INNER SHADOW RING (gives the inner edge a soft recess) -->
|
||||
<path
|
||||
android:name="inner_ring"
|
||||
android:pathData="M256,44a212,212 0 1,1 0,424a212,212 0 1,1 0,-424z"
|
||||
android:strokeWidth="20"
|
||||
android:fillColor="#00000000">
|
||||
<aapt:attr name="android:strokeColor">
|
||||
<gradient
|
||||
android:type="linear"
|
||||
android:startX="256"
|
||||
android:startY="44"
|
||||
android:endX="256"
|
||||
android:endY="468">
|
||||
<item android:offset="0" android:color="#20FFFFFF"/>
|
||||
<item android:offset="0.5" android:color="#00000000"/>
|
||||
<item android:offset="1" android:color="#20000000"/>
|
||||
</gradient>
|
||||
</aapt:attr>
|
||||
</path>
|
||||
|
||||
<!-- 3) TOP GLOSS BAND (semi-transparent shine on upper half) -->
|
||||
<path
|
||||
android:name="gloss_band"
|
||||
android:pathData="M40,64H472V248H40Z">
|
||||
<aapt:attr name="android:fillColor">
|
||||
<gradient
|
||||
android:type="linear"
|
||||
android:startX="256"
|
||||
android:startY="64"
|
||||
android:endX="256"
|
||||
android:endY="248">
|
||||
<item android:offset="0" android:color="#66FFFFFF"/>
|
||||
<item android:offset="0.6" android:color="#22FFFFFF"/>
|
||||
<item android:offset="1" android:color="#00FFFFFF"/>
|
||||
</gradient>
|
||||
</aapt:attr>
|
||||
</path>
|
||||
|
||||
<!-- ======= USER'S FOREGROUND STROKE LOGO (PSX2) ======= -->
|
||||
<path
|
||||
android:pathData="M53,173.2L53,281.2"
|
||||
android:strokeAlpha="0.85"
|
||||
@@ -58,13 +138,28 @@
|
||||
android:strokeColor="#2aa7ff"
|
||||
android:fillAlpha="0.85"
|
||||
android:strokeLineCap="round"/>
|
||||
|
||||
<!-- gradient strokes (your original neon gradient lines) -->
|
||||
<path
|
||||
android:pathData="M53,173.2L53,281.2"
|
||||
android:strokeLineJoin="round"
|
||||
android:strokeWidth="8.1"
|
||||
android:fillColor="#00000000"
|
||||
android:strokeLineCap="round">
|
||||
<aapt:attr name="android:strokeColor">
|
||||
<gradient
|
||||
android:startX="53"
|
||||
android:startY="173.2"
|
||||
android:endX="53"
|
||||
android:endY="281.2"
|
||||
android:type="linear">
|
||||
<item android:offset="0" android:color="#FF66CCFF"/>
|
||||
<item android:offset="0.5" android:color="#FF33A1FF"/>
|
||||
<item android:offset="1" android:color="#FF7C52FF"/>
|
||||
</gradient>
|
||||
</aapt:attr>
|
||||
</path>
|
||||
|
||||
<path
|
||||
android:pathData="M53,173.2L116,173.2L116,218.2L53,218.2"
|
||||
android:strokeLineJoin="round"
|
||||
@@ -72,7 +167,7 @@
|
||||
android:fillColor="#00000000"
|
||||
android:strokeLineCap="round">
|
||||
<aapt:attr name="android:strokeColor">
|
||||
<gradient
|
||||
<gradient
|
||||
android:startX="53"
|
||||
android:startY="173.2"
|
||||
android:endX="116"
|
||||
@@ -84,6 +179,7 @@
|
||||
</gradient>
|
||||
</aapt:attr>
|
||||
</path>
|
||||
|
||||
<path
|
||||
android:pathData="M242,182.2C197,177.7 161,195.7 170,213.7C179,231.7 224,227.2 233,245.2C242,263.2 206,281.2 161,272.2"
|
||||
android:strokeLineJoin="round"
|
||||
@@ -91,7 +187,7 @@
|
||||
android:fillColor="#00000000"
|
||||
android:strokeLineCap="round">
|
||||
<aapt:attr name="android:strokeColor">
|
||||
<gradient
|
||||
<gradient
|
||||
android:startX="161"
|
||||
android:startY="181.5"
|
||||
android:endX="242"
|
||||
@@ -103,6 +199,7 @@
|
||||
</gradient>
|
||||
</aapt:attr>
|
||||
</path>
|
||||
|
||||
<path
|
||||
android:pathData="M278,173.2L359,281.2"
|
||||
android:strokeLineJoin="round"
|
||||
@@ -110,11 +207,11 @@
|
||||
android:fillColor="#00000000"
|
||||
android:strokeLineCap="round">
|
||||
<aapt:attr name="android:strokeColor">
|
||||
<gradient
|
||||
<gradient
|
||||
android:startX="278"
|
||||
android:startY="173.2"
|
||||
android:endX="359"
|
||||
android:endY="173.2"
|
||||
android:endY="281.2"
|
||||
android:type="linear">
|
||||
<item android:offset="0" android:color="#FF66CCFF"/>
|
||||
<item android:offset="0.5" android:color="#FF33A1FF"/>
|
||||
@@ -122,6 +219,7 @@
|
||||
</gradient>
|
||||
</aapt:attr>
|
||||
</path>
|
||||
|
||||
<path
|
||||
android:pathData="M359,173.2L278,281.2"
|
||||
android:strokeLineJoin="round"
|
||||
@@ -129,11 +227,11 @@
|
||||
android:fillColor="#00000000"
|
||||
android:strokeLineCap="round">
|
||||
<aapt:attr name="android:strokeColor">
|
||||
<gradient
|
||||
<gradient
|
||||
android:startX="278"
|
||||
android:startY="173.2"
|
||||
android:endX="359"
|
||||
android:endY="173.2"
|
||||
android:endY="281.2"
|
||||
android:type="linear">
|
||||
<item android:offset="0" android:color="#FF66CCFF"/>
|
||||
<item android:offset="0.5" android:color="#FF33A1FF"/>
|
||||
@@ -141,6 +239,7 @@
|
||||
</gradient>
|
||||
</aapt:attr>
|
||||
</path>
|
||||
|
||||
<path
|
||||
android:pathData="M386,200.2C422,177.7 467,177.7 476,200.2C482.75,218.2 458,231.7 431,242.95C404,254.2 390.5,265.45 390.5,278.95L476,278.95"
|
||||
android:strokeLineJoin="round"
|
||||
@@ -148,11 +247,11 @@
|
||||
android:fillColor="#00000000"
|
||||
android:strokeLineCap="round">
|
||||
<aapt:attr name="android:strokeColor">
|
||||
<gradient
|
||||
<gradient
|
||||
android:startX="386"
|
||||
android:startY="183.32"
|
||||
android:endX="477.12"
|
||||
android:endY="183.32"
|
||||
android:endY="278.95"
|
||||
android:type="linear">
|
||||
<item android:offset="0" android:color="#FF66CCFF"/>
|
||||
<item android:offset="0.5" android:color="#FF33A1FF"/>
|
||||
@@ -160,6 +259,8 @@
|
||||
</gradient>
|
||||
</aapt:attr>
|
||||
</path>
|
||||
|
||||
<!-- thin purple accents (original) -->
|
||||
<path
|
||||
android:pathData="M53,173.2L53,281.2"
|
||||
android:strokeAlpha="0.25"
|
||||
@@ -208,4 +309,5 @@
|
||||
android:fillColor="#00000000"
|
||||
android:strokeColor="#8f61ff"
|
||||
android:strokeLineCap="round"/>
|
||||
</vector>
|
||||
|
||||
</vector>
|
||||
@@ -25,6 +25,7 @@
|
||||
android:gravity="center"
|
||||
android:text=""
|
||||
app:icon="@drawable/settings_24px"
|
||||
app:iconTint="@color/md_theme_tertiary"
|
||||
app:iconGravity="textStart"
|
||||
app:iconSize="24dp"
|
||||
app:iconPadding="0dp"
|
||||
@@ -47,6 +48,7 @@
|
||||
android:gravity="center"
|
||||
android:text=""
|
||||
app:icon="@drawable/visibility_off_24px"
|
||||
app:iconTint="@color/md_theme_tertiary"
|
||||
app:iconGravity="textStart"
|
||||
app:iconSize="24dp"
|
||||
app:iconPadding="0dp"
|
||||
@@ -66,7 +68,7 @@
|
||||
app:iconSize="24dp"
|
||||
app:iconGravity="textStart"
|
||||
app:iconPadding="0dp"
|
||||
app:iconTint="@null"
|
||||
app:iconTint="@color/md_theme_tertiary"
|
||||
app:rippleColor="#40ffffff"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
android:gravity="center"
|
||||
android:text=""
|
||||
app:icon="@drawable/settings_24px"
|
||||
app:iconTint="@color/md_theme_tertiary"
|
||||
app:iconGravity="textStart"
|
||||
app:iconSize="24dp"
|
||||
app:iconPadding="0dp"
|
||||
@@ -88,6 +89,7 @@
|
||||
android:gravity="center"
|
||||
android:text=""
|
||||
app:icon="@drawable/visibility_off_24px"
|
||||
app:iconTint="@color/md_theme_tertiary"
|
||||
app:iconGravity="textStart"
|
||||
app:iconSize="24dp"
|
||||
app:iconPadding="0dp"
|
||||
@@ -107,7 +109,7 @@
|
||||
app:iconSize="24dp"
|
||||
app:iconGravity="textStart"
|
||||
app:iconPadding="0dp"
|
||||
app:iconTint="@null"
|
||||
app:iconTint="@color/md_theme_tertiary"
|
||||
app:rippleColor="#40ffffff"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<?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:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
@@ -23,7 +24,7 @@
|
||||
android:contentDescription="Home"
|
||||
android:padding="4dp"
|
||||
android:src="@drawable/ic_home"
|
||||
android:tint="@color/brand_primary" />
|
||||
android:tint="#883DA4" />
|
||||
|
||||
<View
|
||||
android:layout_width="0dp"
|
||||
@@ -35,7 +36,13 @@
|
||||
style="@style/PSX2.ElevatedTransparentButton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Download Covers" />
|
||||
android:text="Download Covers"
|
||||
android:textColor="#883DA4"
|
||||
app:icon="@drawable/download_24px"
|
||||
app:iconTint="#883DA4"
|
||||
app:iconGravity="textStart"
|
||||
app:iconPadding="8dp"
|
||||
app:iconSize="24dp" />
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
|
||||
Reference in New Issue
Block a user