Skip to content

Commit 2ab8c42

Browse files
committed
v4.18-pre
1 parent 77d59d1 commit 2ab8c42

File tree

10 files changed

+26
-19
lines changed

10 files changed

+26
-19
lines changed

.idea/deploymentTargetSelector.xml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/src/main/java/org/teslasoft/assistant/ui/adapters/AISetAdapter.kt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ class AISetAdapter(private val mContext: Context, private val dataArray: ArrayLi
8484

8585
ui = mView?.findViewById(R.id.ui)
8686
window = mView?.findViewById(R.id.window)
87-
window?.background = getAccentDrawable(AppCompatResources.getDrawable(mContext, R.drawable.btn_accent_tonal_selector_v8)!!)
8887
setIcon = mView?.findViewById(R.id.set_icon)
8988
setName = mView?.findViewById(R.id.set_name)
9089
setDescription = mView?.findViewById(R.id.set_description)
@@ -94,6 +93,14 @@ class AISetAdapter(private val mContext: Context, private val dataArray: ArrayLi
9493
btnCreateChat = mView?.findViewById(R.id.btn_create_chat)
9594
btnGetApiKey = mView?.findViewById(R.id.btn_get_api_key)
9695

96+
val drawable = ResourcesCompat.getDrawable(mContext.resources, R.drawable.avd_static, null)
97+
drawable?.alpha = 230
98+
setIcon?.background = getAccentDrawable(drawable!!)
99+
100+
val drawableBg = ResourcesCompat.getDrawable(mContext.resources, R.drawable.btn_accent_tonal_selector_v8, null)
101+
drawableBg?.alpha = 100
102+
window?.background = getAccentDrawable(drawableBg!!)
103+
97104
setName?.text = dataArray[position]["name"]
98105
setDescription?.text = dataArray[position]["desc"]
99106
setOwner?.text = mContext.getString(R.string.label_provided_by) + " " + dataArray[position]["owner"]

app/src/main/res/drawable/avd_static_v3.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@
3131
<path
3232
android:name="path"
3333
android:pathData="M 10 0 C 7.349 0 4.804 1.054 2.929 2.929 C 1.054 4.804 0 7.349 0 10 C 0 12.651 1.054 15.196 2.929 17.071 C 4.804 18.946 7.349 20 10 20 C 12.651 20 15.196 18.946 17.071 17.071 C 18.946 15.196 20 12.651 20 10 C 20 7.349 18.946 4.804 17.071 2.929 C 15.196 1.054 12.651 0 10 0 Z M 10 30 C 7.349 30 4.804 31.054 2.929 32.929 C 1.054 34.804 0 37.349 0 40 C 0 42.651 1.054 45.196 2.929 47.071 C 4.804 48.946 7.349 50 10 50 C 12.651 50 15.196 48.946 17.071 47.071 C 18.946 45.196 20 42.651 20 40 C 20 37.349 18.946 34.804 17.071 32.929 C 15.196 31.054 12.651 30 10 30 Z M 40 30 C 37.349 30 34.804 31.054 32.929 32.929 C 31.054 34.804 30 37.349 30 40 C 30 42.651 31.054 45.196 32.929 47.071 C 34.804 48.946 37.349 50 40 50 C 42.651 50 45.196 48.946 47.071 47.071 C 48.946 45.196 50 42.651 50 40 C 50 37.349 48.946 34.804 47.071 32.929 C 45.196 31.054 42.651 30 40 30 Z M 40 0 C 37.349 0 34.804 1.054 32.929 2.929 C 31.054 4.804 30 7.349 30 10 C 30 12.651 31.054 15.196 32.929 17.071 C 34.804 18.946 37.349 20 40 20 C 42.651 20 45.196 18.946 47.071 17.071 C 48.946 15.196 50 12.651 50 10 C 50 7.349 48.946 4.804 47.071 2.929 C 45.196 1.054 42.651 0 40 0 Z"
34-
android:fillColor="@color/accent_200"/>
34+
android:fillColor="@color/accent_100"/>
3535
<path
3636
android:name="path_1"
3737
android:pathData="M 15.412 1.567 C 24.815 6.922 35.003 1.339 35.003 1.339 L 40.162 9.632 L 9.73 9.828 Z M 48.431 15.362 C 43.076 24.766 48.659 34.953 48.659 34.953 L 40.366 40.112 L 40.17 9.68 Z M 34.629 48.41 C 25.225 43.055 15.037 48.639 15.037 48.639 L 9.879 40.345 L 40.31 40.149 Z M 1.586 34.616 C 6.94 25.212 1.357 15.025 1.357 15.025 L 9.651 9.866 L 9.846 40.297 Z"
38-
android:fillColor="@color/accent_200"/>
38+
android:fillColor="@color/accent_100"/>
3939
<path
4040
android:name="path_2"
4141
android:pathData="M 6.4 6.53 L 43.557 6.53 L 43.557 41.99 L 6.4 41.99 Z"
42-
android:fillColor="@color/accent_200"/>
42+
android:fillColor="@color/accent_100"/>
4343
</group>
4444
</vector>

app/src/main/res/drawable/btn_accent_tonal_selector_v8.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<item>
55
<shape>
66
<corners android:radius="32dp" />
7-
<solid android:color="@color/accent_100" />
7+
<solid android:color="@color/accent_250" />
88
</shape>
99
</item>
1010
</ripple>

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,7 @@
235235

236236
<androidx.constraintlayout.widget.ConstraintLayout
237237
android:layout_width="match_parent"
238-
android:layout_height="match_parent"
239-
android:background="@drawable/btn_accent_assistant_actions">
238+
android:layout_height="match_parent">
240239

241240
<ImageButton
242241
android:id="@+id/btn_assistant_settings"

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

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,15 @@
4040

4141
<com.google.android.material.floatingactionbutton.FloatingActionButton
4242
android:id="@+id/btn_import"
43-
style="?attr/floatingActionButtonSurfaceStyle"
43+
style="?attr/extendedFloatingActionButtonPrimaryStyle"
4444
android:layout_width="wrap_content"
4545
android:layout_height="wrap_content"
4646
android:layout_marginEnd="24dp"
47-
android:layout_marginBottom="24dp"
47+
android:layout_marginBottom="20dp"
4848
android:clickable="true"
4949
android:contentDescription="@string/btn_import_chat"
5050
android:tooltipText="@string/btn_import_chat"
51+
app:backgroundTint="@color/fab"
5152
app:elevation="6dp"
5253
app:icon="@drawable/ic_download"
5354
app:layout_constraintBottom_toTopOf="@+id/btn_add"
@@ -150,15 +151,15 @@
150151
android:id="@+id/bulk_actions_container"
151152
android:layout_width="0dp"
152153
android:layout_height="56dp"
153-
android:layout_marginStart="16dp"
154-
android:layout_marginTop="24dp"
155-
android:layout_marginEnd="16dp"
154+
android:layout_marginStart="24dp"
155+
android:layout_marginTop="16dp"
156+
android:layout_marginEnd="24dp"
156157
android:background="@drawable/btn_accent_tonal_unmodifiable"
157158
android:elevation="6dp"
158159
android:visibility="gone"
159160
app:layout_constraintEnd_toEndOf="parent"
160161
app:layout_constraintStart_toStartOf="parent"
161-
app:layout_constraintTop_toBottomOf="@+id/activity_chats_title">
162+
app:layout_constraintTop_toBottomOf="@+id/btn_settings_">
162163

163164
<ImageButton
164165
android:id="@+id/btn_bulk_select_all"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@
155155
</LinearLayout>
156156

157157
<com.google.android.material.floatingactionbutton.FloatingActionButton
158-
style="?attr/floatingActionButtonSurfaceStyle"
158+
style="?attr/extendedFloatingActionButtonPrimaryStyle"
159159
android:id="@+id/btn_tokenize"
160160
android:layout_width="wrap_content"
161161
android:layout_height="wrap_content"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
android:id="@+id/set_icon"
4444
android:layout_width="150dp"
4545
android:layout_height="150dp"
46-
android:background="@drawable/avd_static_v3"
46+
android:background="@drawable/avd_static"
4747
android:padding="48dp"
4848
android:src="@drawable/chatgpt_icon"
4949
app:layout_constraintEnd_toEndOf="parent"

app/src/main/res/values-night-v31/colors.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<color name="icon_500">@android:color/system_accent1_500</color>
1818
<color name="icon_700">@android:color/system_accent1_700</color>
1919
<color name="icon_900">@android:color/system_accent1_900</color>
20-
<color name="fab">@android:color/system_accent2_700</color>
20+
<color name="fab">@android:color/system_neutral2_800</color>
2121
<color name="icon_background">@android:color/system_neutral1_800</color>
2222
<color name="icon_foreground">@android:color/system_accent1_100</color>
2323
<color name="bottom_navbar">@android:color/system_neutral2_900</color>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<color name="icon_500">@android:color/system_accent1_500</color>
1818
<color name="icon_700">@android:color/system_accent1_700</color>
1919
<color name="icon_900">@android:color/system_accent1_900</color>
20-
<color name="fab">@android:color/system_accent2_100</color>
20+
<color name="fab">@android:color/system_neutral2_50</color>
2121
<color name="bottom_navbar">@color/accent_900</color>
2222
<color name="icon_background">@android:color/system_accent1_100</color>
2323
<color name="icon_foreground">@android:color/system_neutral2_700</color>

0 commit comments

Comments
 (0)