Skip to content

Commit 3d2d3dc

Browse files
committed
UI fix
1 parent f37f551 commit 3d2d3dc

7 files changed

Lines changed: 77 additions & 1 deletion

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<shape xmlns:android="http://schemas.android.com/apk/res/android"
3+
android:shape="rectangle" >
4+
5+
<gradient
6+
android:angle="45"
7+
android:endColor="#000000"
8+
android:centerColor="#191B1C"
9+
android:startColor="#000"
10+
android:type="linear" />
11+
12+
</shape>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<shape xmlns:android="http://schemas.android.com/apk/res/android"
3+
android:shape="rectangle" >
4+
5+
<gradient
6+
android:angle="45"
7+
android:endColor="#0829CD"
8+
android:centerColor="#009EED"
9+
android:startColor="#0829CD"
10+
android:type="linear" />
11+
12+
</shape>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<shape xmlns:android="http://schemas.android.com/apk/res/android"
3+
android:shape="rectangle" >
4+
5+
<gradient
6+
android:angle="45"
7+
android:endColor="#BC0000"
8+
android:centerColor="#150202"
9+
android:startColor="#BC0000"
10+
android:type="linear" />
11+
12+
</shape>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
2+
android:width="800dp"
3+
android:height="800dp"
4+
android:viewportWidth="32"
5+
android:viewportHeight="32">
6+
<path
7+
android:pathData="M12.15,28.012v-0.85c0.019,-0.069 0.05,-0.131 0.063,-0.2 0.275,-1.788 1.762,-3.2 3.506,-3.319 1.95,-0.137 3.6,0.975 4.137,2.787 0.069,0.238 0.119,0.488 0.181,0.731v0.85c-0.019,0.056 -0.05,0.106 -0.056,0.169 -0.269,1.65 -1.456,2.906 -3.081,3.262 -0.125,0.025 -0.25,0.063 -0.375,0.094h-0.85c-0.056,-0.019 -0.113,-0.05 -0.169,-0.056 -1.625,-0.262 -2.862,-1.419 -3.237,-3.025 -0.037,-0.156 -0.081,-0.3 -0.119,-0.444zM20.038,3.988l-0,0.85c-0.019,0.069 -0.05,0.131 -0.056,0.2 -0.281,1.8 -1.775,3.206 -3.538,3.319 -1.944,0.125 -3.588,-1 -4.119,-2.819 -0.069,-0.231 -0.119,-0.469 -0.175,-0.7v-0.85c0.019,-0.056 0.05,-0.106 0.063,-0.162 0.3,-1.625 1.244,-2.688 2.819,-3.194 0.206,-0.069 0.425,-0.106 0.637,-0.162h0.85c0.056,0.019 0.113,0.05 0.169,0.056 1.631,0.269 2.863,1.419 3.238,3.025 0.038,0.15 0.075,0.294 0.113,0.437zM20.037,15.575v0.85c-0.019,0.069 -0.05,0.131 -0.063,0.2 -0.281,1.794 -1.831,3.238 -3.581,3.313 -1.969,0.087 -3.637,-1.1 -4.106,-2.931 -0.05,-0.194 -0.094,-0.387 -0.137,-0.581v-0.85c0.019,-0.069 0.05,-0.131 0.063,-0.2 0.275,-1.794 1.831,-3.238 3.581,-3.319 1.969,-0.094 3.637,1.1 4.106,2.931 0.05,0.2 0.094,0.394 0.137,0.588z"
8+
android:fillColor="#000000"/>
9+
</vector>

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

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,26 @@
7979
android:layout_weight="1"
8080
/>
8181
</LinearLayout>
82+
<TextView
83+
android:id="@+id/textView_title1"
84+
android:layout_width="wrap_content"
85+
android:layout_height="wrap_content"
86+
android:text="Select Note Header Color"
87+
android:textColor="@color/yellow"
88+
android:textStyle="bold"
89+
android:textSize="16sp"
90+
android:layout_marginTop="16dp" />
8291

92+
<!-- Add Spinner for color selection -->
93+
<Spinner
94+
android:id="@+id/color_spinner"
95+
android:layout_width="match_parent"
96+
android:layout_height="wrap_content"
97+
android:layout_marginTop="8dp"
98+
android:textColor="@color/yellow"
99+
android:textStyle="bold"
100+
android:background="@drawable/border"
101+
android:textAlignment="center"
102+
android:entries="@array/color_options" /> <!-- Define color_options array in your resources -->
83103

84-
</LinearLayout>
104+
</LinearLayout>

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<resources>
2+
<array name="color_options">
3+
<item>Default</item>
4+
<item>Faded Black</item>
5+
<item>Faded Grey</item>
6+
<item>Faded Red</item>
7+
<item>Faded Blue</item>
8+
</array>
9+
</resources>

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,6 @@
4848

4949

5050

51+
52+
5153
</resources>

0 commit comments

Comments
 (0)